LSP mode must support multiple LSP servers for single file/workspace similar to what the other implementations(Che/VSCode) already do.
Possible duplicate of https://github.com/emacs-lsp/lsp-mode/issues/105
@TysonAndre no, #105 is to support different servers for the same mode per workspace. This bug is to support multiple simultaneous servers running in the same file and providing data for the file simultaneously, e.g. running HTML and JS LSP servers in one file.
@vibhavp can you share your thoughts? If there are no volunteers to implement this feature I will work on it, but this is not going to happen anytime soon. Since this would require some bit restructuring on lsp-mode side I want to discuss it upfront. I think that it would be good to address some of the lsp-mode flaws related to process management.
@vibhavp @MaskRay
I am investigating whether sesman could be a good fit for our usecase which is used by cider for a similar use case. I believe that it could improve the user experience related to visibility what are the currently running servers(check sesman-browser), it will cleanup a lot of code related to session management which complexity is going to increase. Also, it will make the writing of extension against LSP mode much easier compared to current ad-hoc session management with lsp--workspaces hash table.
(cc sesman owner @vspinu)
Is the FAQ up to date?
Issue 105 (Multiple clients per major mode?) was completed, so I'm not sure why this FAQ is still there or what it now means:
(I assumed that all of them would be run, excluding blacklisted ones)
https://github.com/emacs-lsp/lsp-mode#i-have-multiple-language-servers-registered-for-language-foo-which-one-will-be-used-when-opening-a-project
I have multiple language servers registered for language FOO. Which one will be used when opening a project?
The one with highest priority wins. lsp-clients.el predefined servers have priority -1, lower than external packages (priority 0 if unspecified).
The readme says this ticket was completed, which contradicts that:
lsp-mode now supports multiple language servers per single file and workspace.
@TysonAndre
The FAQ is not complete. When server is marked with flag :add-on? it will be started in parallel to the other server(s) handling that mode. Do you have particular usecase?
Hi, I am interested in this feature because I am Vue developer and I was hoping that I could use Vetur + Typescript Language Server in emacs for the