mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-13 17:23:02 -05:00
Fix to escape table names only (#1078)
Co-authored-by: Monica Gupta <mogupt@microsoft.com>
This commit is contained in:
@@ -449,7 +449,7 @@ namespace Microsoft.Kusto.ServiceLayer.DataSource
|
||||
foreach (var autoCompleteItem in completion.Items)
|
||||
{
|
||||
var label = autoCompleteItem.DisplayText;
|
||||
var insertText = KustoQueryUtils.EscapeName(label);
|
||||
var insertText = autoCompleteItem.Kind.ToString() == "Table" ? KustoQueryUtils.EscapeName(label) : label;
|
||||
var completionKind = KustoIntellisenseHelper.CreateCompletionItemKind(autoCompleteItem.Kind);
|
||||
completions.Add(AutoCompleteHelper.CreateCompletionItem(label, autoCompleteItem.Kind.ToString(),
|
||||
insertText, completionKind, scriptDocumentInfo.StartLine, scriptDocumentInfo.StartColumn,
|
||||
|
||||
Reference in New Issue
Block a user