small fixes
This commit is contained in:
parent
4f62a757d0
commit
382b023ba5
@ -207,12 +207,12 @@ class LspClient(object):
|
|||||||
|
|
||||||
|
|
||||||
def didOpen(self, textDocument):
|
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
|
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
|
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
|
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
|
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.
|
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
|
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):
|
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.
|
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.
|
:param TextDocumentItem textDocument: The text document.
|
||||||
"""
|
"""
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
from lsp import json_rpc_client
|
||||||
# content of test_sample.py
|
# content of test_sample.py
|
||||||
def func(x):
|
def func(x):
|
||||||
return x + 1
|
return x + 1
|
||||||
|
Loading…
Reference in New Issue
Block a user