示例#1
0
        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();
        }
示例#2
0
 public LanguageServer(ServerCapabilities capabilities)
     : this()
 {
     _serverCapabilities = capabilities;
     _serverCapabilities.TextDocumentSync = TextDocumentSyncKind.Incremental;
 }