Ejemplo n.º 1
0
 public LSPServer(Stream sender, Stream reader, Dictionary <string, DiagnosticSeverity> initialDiagnostics = null)
 {
     target            = new LanguageServerTarget(this);
     rpc               = JsonRpc.Attach(sender, reader, target);
     rpc.Disconnected += OnRpcDisconnected;
     diagnostics       = initialDiagnostics;
 }
Ejemplo n.º 2
0
 public LSPServer(Stream sender, Stream reader)
 {
     target            = new LanguageServerTarget(this);
     rpc               = JsonRpc.Attach(sender, reader, target);
     rpc.Disconnected += OnRpcDisconnected;
     diagnostics       = new Dictionary <string, DiagnosticSeverity>();
     diagnostics.Add("hithere", DiagnosticSeverity.Error);
 }