Skip to content

Changing workspaces? #569

Answered by msujew
Sahasrara asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Sahasrara

I'm assuming that will tell the language server to go scan that folder/s for code to use in autocomplete suggestions.

Depends on the language server, but that's usually correct.

How can I change the workspace folders after creating the MonacoLanguageClient?

It depends on the language server you're using:

  1. If it supports the workspace/didChangeWorkspaceFolders request, you should just be able to send that one.
  2. Otherwise, you'll need to probably restart the language server/client and instruct it to use the correct workspace folder.

How can you monitor the progress of workspace indexing?

There is no LSP method for doing that. If you have direct control over the language…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Sahasrara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants