Skip to content

Is it possible to run a single LSP instance and/or cache for multiple users on the same project and computer? #343

Answered by nberth
GitMensch asked this question in Q&A
Discussion options

You must be logged in to vote

The LSP protocol itself is not designed to support multiple clients per server, and there does not seem to be any plan to extend it to add such a feature (cf microsoft/language-server-protocol#1160 — IMHO thankfully, given the technical intricacies that such an extension to the protocol would bring).

So the only remaining option is to store the cache in a shared location (like in the project itself) and access it via multiple LSP servers. At the moment that's not supported (the cache itself is a single file that's juste blindly read on LSP server startup and written on shutdown), but I think moving towards a different storage scheme for the cache would not be too complicated.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GitMensch
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