-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Support HTTP #1109
Comments
Have you considered using SignalR or similar to enable you to send messages from the server back to the client? A SignalR hub like this could work for sending format requests to the server and log messages back to the client: [Route("communication")]
public class CommunicationHub : Hub<ICommunicationHub>
{
private readonly CSharpierServiceImplementation _service;
public CommunicationHub(CSharpierServiceImplementation service)
{
_service = service;
}
public async Task<FormatFileResult> Format(FormatFileParameter formatFileDto, CancellationToken cancellationToken)
{
return await _service.FormatFile(formatFileDto, cancellationToken);
}
}
public interface ICommunicationHub
{
Task Log(string message);
} Then you can create a logger that takes the hub ( This would also require changing the clients to connect to the SignalR hub instead of just sending POST requests, but it will allow you to send data in both directions |
0.27.2 is adding http support so that the extensions don't need to depend on sending data back and forth via stdin/stdout.
This issue is to get the extensions updated with opt-in support for it.
Rider and VS are started.
VSCode is not.
There needs to be a timeout when calling the server, this doesn't exist in any of them yet.
There needs to be some way to get logs, or have csharpier log what it is doing. To help troubleshoot issues.
The text was updated successfully, but these errors were encountered: