Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

remove double quotes from label (#15161)

Vincent Huang4f24baa09ddd
diff --git a/backend/api/lsp/completion.go b/backend/api/lsp/completion.go
index dada18bcd5..b0d470d819 100644
--- a/backend/api/lsp/completion.go
+++ b/backend/api/lsp/completion.go
@@ -77,8 +77,13 @@ func (h *Handler) handleTextDocumentCompletion(ctx context.Context, _ *jsonrpc2.
var items []lsp.CompletionItem
for _, candidate := range candidates {
+ label := candidate.Text
+ // Remove the double quote if it's quoted.
+ if len(label) > 1 && label[0] == '"' && label[len(label)-1] == '"' {
+ label = label[1 : len(label)-1]
+ }
completionItem := lsp.CompletionItem{
- Label: candidate.Text,
+ Label: label,
LabelDetails: &lsp.CompletionItemLabelDetails{
Detail: fmt.Sprintf("(%s)", string(candidate.Type)),
Description: candidate.Definition,