Пример #1
0
 public KustoQuickInfoBuilder(KustoCodeService service, KustoCode code, QuickInfoOptions options)
 {
     _service  = service;
     _code     = code;
     _options  = options;
     _disabled = new DisabledDiagnostics(_options.DisabledDiagnostics);
 }
Пример #2
0
        public override string GetMinimalText(MinimalTextKind kind, CancellationToken cancellationToken)
        {
            // use kusto lexer to identify tokens and trivia (as best guess)
            var list = new SyntaxList <SyntaxToken>(Parsing.LexicalGrammar.GetTokens(this.Text).Select(t => SyntaxToken.From(t)).ToArray());

            return(list.ToString(KustoCodeService.GetIncludeTrivia(kind)));
        }
Пример #3
0
 public override bool TryGetCodeService(string text, out CodeService service)
 {
     if (IsKusto(text))
     {
         service = new KustoCodeService(text, this.Globals);
         return(true);
     }
     else
     {
         service = null;
         return(false);
     }
 }
Пример #4
0
 public KustoQuickInfoBuilder(KustoCodeService service, KustoCode code)
 {
     _service = service;
     _code    = code;
 }