LSP working outside of the workspace #189
-
I am starting to build a new LSP, but my first goal is to get it to work outside of the workspace. Another extension registers a file system provider but register them into a workspace, but instead has a view to open files from it. I can't seem to get the sample LSP (provided by Microsoft) to work on plain text files opened outside the workspace. For example:
I have tried playing with the Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
From what I understand, an LSP should be able to work outside the workspace. If I open a plain ts/js file without a workspace open, I still get the usual content assist and so on. |
Beta Was this translation helpful? Give feedback.
-
Looks like it does work outside the workspace, but files have to be saved locally if I am using
They actually documented here, but didn't read the guide... I just cloned! |
Beta Was this translation helpful? Give feedback.
Looks like it does work outside the workspace, but files have to be saved locally if I am using
TextDocuments
.They actually documented here, but didn't read the guide... I just cloned!
https://code.visualstudio.com/api/language-extensions/language-server-extension-guide#incremental-text-document-synchronization