Skip to content

LSP working outside of the workspace #189

Discussion options

You must be logged in to vote

Looks like it does work outside the workspace, but files have to be saved locally if I am using TextDocuments.

const documents: TextDocuments<TextDocument> = new TextDocuments(TextDocument);

// Make the text document manager listen on the connection
// for open, change and close text document events
documents.listen(connection);

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by worksofliam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant