x/tools/gopls: incorrect completion candidates offered where type expected #32806
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
help wanted
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Consider the following example
If completion is attempted at the end of the line
var c special
then two candidates are returned:special1
is not a type however, and so should not be returned as a candidate.What did you expect to see?
A single candidate returned:
special
What did you see instead?
Two candidates returned.
cc @stamblerre @ianthehat
The text was updated successfully, but these errors were encountered: