small fixes

This commit is contained in:
yeger 2018-11-11 17:11:27 -05:00
parent 4f62a757d0
commit 382b023ba5
3 changed files with 7 additions and 7 deletions

View File

@ -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 documents truth is
now managed by the client and the server must not try to read the documents truth using the documents uri. Open in this sense
means it is managed by the client. It doesnt 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 servers 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 symbols location range nor the symbols 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.
"""

View File

@ -1,3 +1,4 @@
from lsp import json_rpc_client
# content of test_sample.py
def func(x):
return x + 1

View File

@ -1,4 +1,3 @@
# content of: tox.ini , put in same dir as setup.py
[tox]
envlist = py27,py36