You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per @debaumer's comment, language servers should be able to fulfill requests regardless of whether or not the text document is open.
For example, pyls will raise a KeyError if you call hover on a document that has not been opened yet. According to the above, this seems to be incorrect behavior - pyls should be able to read this document from disk and fulfill the hover request.
The text was updated successfully, but these errors were encountered:
ggilmore
changed the title
pyls incorrectly requires that textDocument/didOpen be called before fufilling any requests
pyls incorrectly requires that textDocument/didOpen be called before fufilling any requests
Mar 21, 2018
See this issue in the official LSP repo: microsoft/language-server-protocol#177
Per @debaumer's comment, language servers should be able to fulfill requests regardless of whether or not the text document is open.
For example,
pyls
will raise aKeyError
if you callhover
on a document that has not been opened yet. According to the above, this seems to be incorrect behavior - pyls should be able to read this document from disk and fulfill the hover request.The text was updated successfully, but these errors were encountered: