While it's technically possible to run a Language Server (LSP) as a DLL within the same process as a Visual Studio extension, it’s generally recommended to run the LSP in a separate process. This approach ensures better stability, isolation, and performance. Running the server separately prevents issues like crashes from affecting the entire devenv.exe
process and provides better resource management (GitHub)(Telerik.com).
Can Language Server (LSP) run in the same process as devenv.exe ?
Sajith
11
Reputation points
I am working on an extension for Visual Studio. This implements a Language Server (LSP) also. Both extension and LSP are written in C#.NET. Is it a requirement that Language Server run in a separate process? Or can the Language Server be implemented as a dll and run in the same process as the extension and devenv ?
1 answer
Sort by: Most helpful
-
Joshua Lazaro Marandi 70 Reputation points
2024-09-13T05:26:26.9533333+00:00