public KustoQuickInfoBuilder(KustoCodeService service, KustoCode code, QuickInfoOptions options) { _service = service; _code = code; _options = options; _disabled = new DisabledDiagnostics(_options.DisabledDiagnostics); }
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))); }
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); } }
public KustoQuickInfoBuilder(KustoCodeService service, KustoCode code) { _service = service; _code = code; }