public LanguageServer() { _features = new List <IFeature>(); _messageReader = new StreamMessageReader(Console.OpenStandardInput(), Encoding.UTF8); _messageWriter = new StreamMessageWriter(Console.OpenStandardOutput(), Encoding.UTF8); _requestContexts = new List <RequestContext>(); _responses = new Dictionary <int, ResponseMessage>(); _tokenSource = new CancellationTokenSource(); _serverCapabilities = new ServerCapabilities(); }
public LanguageServer(ServerCapabilities capabilities) : this() { _serverCapabilities = capabilities; _serverCapabilities.TextDocumentSync = TextDocumentSyncKind.Incremental; }