示例#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;
 }