You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library looks like an incredible project, so first off, thank you!
I was trying to get up and running with a vs-code extension client for the server, and following the sample project in this repo, I was having a devil of a time.
I got it working by changing vs-code to use the TransporkKind.pipe instead of stdio.
In the Program.cs, I did something like this,
publicstaticclassProgram{publicstaticasyncTaskMain(string[]args){varpipeAddr="";foreach(vartinargs){if(!t.StartsWith("--pipe="))continue;pipeAddr=t.Substring("--pipe=".Length);break;}Log.Logger=newLoggerConfiguration().Enrich.FromLogContext().WriteTo.File("log.txt",rollingInterval:RollingInterval.Day).MinimumLevel.Verbose().CreateLogger();varpipeClient=newNamedPipeClientStream(pipeAddr);awaitpipeClient.ConnectAsync();Log.Logger.Information("connected.");// the LanguageServer.From( .... goes here
And then when creating the input/output for the language server, doing this,
If I used stdio and the listed sample code to get the input/output streams from Console, then I would get errors from vscode about Content-Length not being supplied on the messages.
I mostly wanted to leave this here as a trace in case anyone else found it useful.
The text was updated successfully, but these errors were encountered:
This library looks like an incredible project, so first off, thank you!
I was trying to get up and running with a vs-code extension client for the server, and following the sample project in this repo, I was having a devil of a time.
I got it working by changing vs-code to use the
TransporkKind.pipe
instead of stdio.In the
Program.cs
, I did something like this,And then when creating the input/output for the language server, doing this,
If I used stdio and the listed sample code to get the input/output streams from
Console
, then I would get errors from vscode about Content-Length not being supplied on the messages.I mostly wanted to leave this here as a trace in case anyone else found it useful.
The text was updated successfully, but these errors were encountered: