-
If I want to work with multiple projects at the same time, will ra-multiplex work?
In this case, will it correctly create two different rust-analyzer processes - one for each project? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, this is an explicitly supported workflow, you're meant to only run one ra-multiplex server. The server instance is disambiguated based on the language server executable name, passed command line arguments, passed environment variables and root directory of the LSP workspace. For every new client connected ra-multiplex checks if a language server matching all these parameters is already running, if it finds one it just connects the client. If any of the parameters differ a new language server instance gets spawned and the client gets connected to it. |
Beta Was this translation helpful? Give feedback.
Yes, this is an explicitly supported workflow, you're meant to only run one ra-multiplex server.
The server instance is disambiguated based on the language server executable name, passed command line arguments, passed environment variables and root directory of the LSP workspace. For every new client connected ra-multiplex checks if a language server matching all these parameters is already running, if it finds one it just connects the client. If any of the parameters differ a new language server instance gets spawned and the client gets connected to it.