From fea050448dd8434926529628c2fdf27ed62f88c8 Mon Sep 17 00:00:00 2001 From: Monica Gupta Date: Sun, 20 Sep 2020 17:19:01 -0700 Subject: [PATCH] Fix to escape table names only (#1078) Co-authored-by: Monica Gupta --- src/Microsoft.Kusto.ServiceLayer/DataSource/KustoDataSource.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.Kusto.ServiceLayer/DataSource/KustoDataSource.cs b/src/Microsoft.Kusto.ServiceLayer/DataSource/KustoDataSource.cs index b7a0ead5..232e7d56 100644 --- a/src/Microsoft.Kusto.ServiceLayer/DataSource/KustoDataSource.cs +++ b/src/Microsoft.Kusto.ServiceLayer/DataSource/KustoDataSource.cs @@ -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,