emacs-lsp / lsp-java

lsp-mode :heart: java
https://emacs-lsp.github.io/lsp-java
GNU General Public License v3.0
643 stars 89 forks source link

support for multiple JDT LS in a single emacs process #171

Open acewin opened 4 years ago

acewin commented 4 years ago

jdt ls supports multi-root workspaces, however sometimes it is desirable to have multiple workspaces each running its own language servers. Running multiple emacs instances and setting distinct value for lsp-session-file and lsp-workspace-directory seems to work, but it would be great if a single emacs process to work with multiple workspaces.

filing per discussion here:

yyoncho commented 4 years ago

FYI I am working on synchronizing the lsp-mode folders with treemacs projects - https://github.com/emacs-lsp/lsp-treemacs/tree/sync . In treemacs you can have workspace (which is a set of projects). When enabled the sync mode will monitor when treemacs workspace has changed and it will add/remove the new folders which will kind of cover the switch workspace scenario.

citypilgrim commented 2 years ago

Hi! Could I check if there are any updates on this?

yyoncho commented 2 years ago

ATM there is lsp-load-vscode-workspace which can be used to simulate workspace change.