csharp-language-server-protocol icon indicating copy to clipboard operation
csharp-language-server-protocol copied to clipboard

A new language server framework

Open CppCXY opened this issue 1 year ago • 2 comments

Since this repository has not been maintained for a long time, I have redeveloped a language server framework that supports AOT and the latest LSP standard. Everyone is welcome to try it out. see: https://github.com/CppCXY/LanguageServer.Framework

CppCXY avatar Jul 14 '24 06:07 CppCXY

Can I use your server via HTTP, not TCP? I'm trying to implement an HTTP LSP server.

gamefreakru avatar Sep 04 '24 20:09 gamefreakru

maybe you can add follow code:

    var host = args[0];
    var port = int.Parse(args[1]);
    var listener = new HttpListener();
    listener.Prefixes.Add($"http://{host}:{port}/");
    listener.Start();
    
    var context = listener.GetContext();
    input = context.Request.InputStream;
    output = context.Response.OutputStream;

But I don't have a testing environment, so I can't know if it's correct.

CppCXY avatar Sep 05 '24 02:09 CppCXY