예제 #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;
 }
예제 #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);
 }