mirror of
https://github.com/golang/go
synced 2024-11-18 15:04:44 -07:00
internal/lsp: restore "IsIncomplete" completion flag
Looks like I dropped this line accidentally after resolving a merge conflict. I restored the original code checking the "deep" option in addition to my intended drive-by fix of also checking the "fuzzy" option. In either case the client should not cache completion candidates. Change-Id: I586daa28e3e4e4cc64665ba507245be4e91b08f2 Reviewed-on: https://go-review.googlesource.com/c/tools/+/198490 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
f0a16743a2
commit
91543147e3
@ -46,7 +46,8 @@ func (s *Server) completion(ctx context.Context, params *protocol.CompletionPara
|
||||
return &protocol.CompletionList{
|
||||
// When using deep completions/fuzzy matching, report results as incomplete so
|
||||
// client fetches updated completions after every key stroke.
|
||||
Items: toProtocolCompletionItems(candidates, rng, options),
|
||||
IsIncomplete: options.Completion.Deep || options.Completion.FuzzyMatching,
|
||||
Items: toProtocolCompletionItems(candidates, rng, options),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user