Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A new language server framework #1290

Open
CppCXY opened this issue Jul 14, 2024 · 2 comments
Open

A new language server framework #1290

CppCXY opened this issue Jul 14, 2024 · 2 comments

Comments

@CppCXY
Copy link

CppCXY commented Jul 14, 2024

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

@gamefreakru
Copy link

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

@CppCXY
Copy link
Author

CppCXY commented Sep 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants