-
Notifications
You must be signed in to change notification settings - Fork 28.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we have multiple language servers per workspace #48227
Comments
Yes, even if the server uses stdio for communication. Every server can have its own stdio the client reads and writes from. Do you see any problems. On a normal web workspace you have a html, css, json, TS/JS and ESLint server running. Closing the issue. Please ping if something is still unclear. |
@dbaeumer We haven't tried this yet, but plan on starting something that would require us to implement this technique. |
In principal yes, but you would need to route the request to the right server using `patterns' for the document selector / filter. There is an example here that uses a separate server per workspace folder which could be taken as a base: https://github.com/Microsoft/vscode-extension-samples/tree/master/lsp-multi-server-sample |
Hmm, let me lay it out better. Anyways, from what you've told me, we should just try this out. |
@DonJayamanne that should actually work since you are simply dispatching different requests to different servers. |
Is it possible to somehow have multiple language servers per workspace?
I believe I know the answer (due to the simple fact that the stdin/stdout streams would end up being used by multiple lsps and this could be a problem).
The text was updated successfully, but these errors were encountered: