OmniSharp / csharp-language-server-protocol

Language Server Protocol in C#
MIT License
515 stars 103 forks source link

Can Language Server (LSP) run in the same process as devenv.exe ? #1347

Open sajithpt opened 2 weeks ago

sajithpt commented 2 weeks ago

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 ?

I am exploring if we can have both language server and extension run in the same process so that overhead of inter process communication can be avoided.

JoeRobich commented 1 week ago

Not an expert on VS LSP extensions but from this example, it does not appear that the streams you pass in to the Connection have to be from a separate Process.