lsp-java icon indicating copy to clipboard operation
lsp-java copied to clipboard

support for multiple JDT LS in a single emacs process

Open acewin opened this issue 6 years ago • 3 comments

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:

acewin avatar Nov 04 '19 19:11 acewin

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.

yyoncho avatar Nov 04 '19 20:11 yyoncho

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

citypilgrim avatar Jun 28 '22 06:06 citypilgrim

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

yyoncho avatar Jun 28 '22 06:06 yyoncho