diff --git a/lsp/json_rpc_client.py b/lsp/json_rpc_client.py index ec331d5..8e103a8 100644 --- a/lsp/json_rpc_client.py +++ b/lsp/json_rpc_client.py @@ -207,12 +207,12 @@ class LspClient(object): def didOpen(self, textDocument): - """` - The document open notification is sent from the client to the server to signal newly opened text documents. The document’s truth is - now managed by the client and the server must not try to read the document’s truth using the document’s uri. Open in this sense - means it is managed by the client. It doesn’t necessarily mean that its content is presented in an editor. An open notification must + """ + The document open notification is sent from the client to the server to signal newly opened text documents. The document's truth is + now managed by the client and the server must not try to read the document's truth using the document's uri. Open in this sense + means it is managed by the client. It doesn't necessarily mean that its content is presented in an editor. An open notification must not be sent more than once without a corresponding close notification send before. This means open and close notification must be - balanced and the max open count for a particular textDocument is one. Note that a server’s ability to fulfill requests is independent + balanced and the max open count for a particular textDocument is one. Note that a server's ability to fulfill requests is independent of whether a text document is open or closed. The DidOpenTextDocumentParams contain the language id the document is associated with. If the language Id of a document changes, the @@ -227,7 +227,7 @@ class LspClient(object): def documentSymbol(self, textDocument): """ The document symbol request is sent from the client to the server to return a flat list of all symbols found in a given text document. - Neither the symbol’s location range nor the symbol’s container name should be used to infer a hierarchy. + Neither the symbol's location range nor the symbol's container name should be used to infer a hierarchy. :param TextDocumentItem textDocument: The text document. """ diff --git a/tests/test_a.py b/tests/test_a.py index 3c2a97a..a9fd22b 100644 --- a/tests/test_a.py +++ b/tests/test_a.py @@ -1,3 +1,4 @@ +from lsp import json_rpc_client # content of test_sample.py def func(x): return x + 1 diff --git a/tox.ini b/tox.ini index 8f6f12d..681a04a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,4 +1,3 @@ -# content of: tox.ini , put in same dir as setup.py [tox] envlist = py27,py36