diff --git a/internal/lsp/completion.go b/internal/lsp/completion.go index 4785ffa887..f0d8bcb64a 100644 --- a/internal/lsp/completion.go +++ b/internal/lsp/completion.go @@ -51,6 +51,7 @@ func toProtocolCompletionItems(candidates []source.CompletionItem, prefix string // https://github.com/Microsoft/language-server-protocol/issues/348. SortText: fmt.Sprintf("%05d", i), FilterText: insertText, + Preselect: i == 0, } // If we are completing a function, we should trigger signature help if possible. if triggerSignatureHelp && signatureHelpEnabled {