Skip to content

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

fix: nil error of lsp completion items (#15984)

boojackc63e22580b80
diff --git a/backend/api/lsp/completion.go b/backend/api/lsp/completion.go
index 7763e62b76..b877b3c0e5 100644
--- a/backend/api/lsp/completion.go
+++ b/backend/api/lsp/completion.go
@@ -68,7 +68,7 @@ func (h *Handler) handleTextDocumentCompletion(ctx context.Context, _ *jsonrpc2.
return newEmptyCompletionList(), nil
}
- var items []lsp.CompletionItem
+ items := []lsp.CompletionItem{}
for _, candidate := range candidates {
label := candidate.Text
// Remove quotes or brackets from label.