Пример #1
0
        static async Task Main(string[] args)
        {
            var server = new LanguageServer(Console.OpenStandardInput(), Console.OpenStandardOutput(), new LoggerFactory());
            var parser = new SimpleIniParser(server);

            server.AddHandlers(
                new TextDocumentHandler(server, parser),
                new CompletionHandler(parser)
                );

            await server.Initialize();

            await server.WaitForExit;
        }
Пример #2
0
 public CompletionHandler(SimpleIniParser parser)
 {
     this.parser = parser;
 }
Пример #3
0
 public TextDocumentHandler(ILanguageServer router, SimpleIniParser parser) : this(router)
 {
     this.parser = parser;
 }