예제 #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;
 }