mirror of
https://github.com/golang/go
synced 2024-11-18 18:54:42 -07:00
internal/lsp: filter on insert text, not label
Change-Id: Ibd0c0c7af57cc8aeec56188cf52300f7c558adfe Reviewed-on: https://go-review.googlesource.com/c/tools/+/167464 Run-TryBot: Rebecca Stambler <rstambler@golang.org> Reviewed-by: Ian Cottrell <iancottrell@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
4ccd092f47
commit
1286b2016b
@ -50,6 +50,7 @@ func toProtocolCompletionItems(candidates []source.CompletionItem, prefix string
|
||||
// according to their score. This can be removed upon the resolution of
|
||||
// https://github.com/Microsoft/language-server-protocol/issues/348.
|
||||
SortText: fmt.Sprintf("%05d", i),
|
||||
FilterText: insertText,
|
||||
}
|
||||
// If we are completing a function, we should trigger signature help if possible.
|
||||
if triggerSignatureHelp && signatureHelpEnabled {
|
||||
|
Loading…
Reference in New Issue
Block a user