Why does lsp-mode start so many workspaces? #3919
-
It seems that when I start lsp-mode in a project, lsp-mode will also initialize a bunch of other projects that I haven't touched (and that I'm not going to touch). The other projects seem entirely unrelated and I do not have any open buffers in them. Why is this happening and can I disable it? To be fair, I don't know whether it's causing any performance issues, but it does start a bunch of language servers, so I imagine it's not great anyway 🤷🏼 Also, is it possible to stop a language server workspace from the lsp session overview? lsp-describe-session shows all the workspaces (including the aforementioned ones that I don't think should be active), and I'd like to be able to shut them down from there. I'd be happy to provide more context, but this is about all the information I have at the moment. If there's any steps I can take to provide more data, let me know 😄 Any input would be much appreciated! Thank you 🙏🏼 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
When the server is multiroot(supports several folders) we open all of the folders with the same server and we persist that. Some servers have a flag to disable that behavior, for others it is not exposed. |
Beta Was this translation helpful? Give feedback.
When the server is multiroot(supports several folders) we open all of the folders with the same server and we persist that. Some servers have a flag to disable that behavior, for others it is not exposed.