I have multiple projects (git-repos). I have opened these in one multi-root workspace using Add Folder to Workspace...
. Since these are all Clojure projects, and I have Calva
installed, VSCode identified the correct LSP server clojure-lsp
. But VS Code starts one LSP server for each folder/project in my multi-root workspace. I want only one.
How can I tell VS Code to start only one LSP server for all folders in my workspace?
2
Answers
At the time of this writing, this is not supported. See multi root support? #280. If you look at their projects page, that issue ticket is currently placed in the "Low priority" lane.
You can show your support for the issue ticket by giving a thumbs up reaction to the issue. But please don’t make a "me too" comment. "me too" comments generally come off as annoying to repo maintainers because they clutter up discussion and don’t contribute anything of significant value.
Some quotes from the discussion there:
lucywang000:
ericdallo:
bpringe:
bpringe:
snoe
To make one clojure-lsp serve all folders in your workspace, you can use a single deps.edn file at the top level that references the other projects as local dependencies.
Clojure-lsp’s repo is an example of this. If I open this repo in Calva version 2.0.337 (the latest version at the time of this writing), only one clojure-lsp server is started.