x/tools/cmd/gopls: incorrect completion candidates offered where expression expected #32807
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
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 a case is added to the switch statement by typing
case special
and then completion attempted the following candidates are returned:However,
special
is a type, and therefore not a valid expression.What did you expect to see?
A single candidate returned:
special1
What did you see instead?
Two candidates returned as above.
cc @stamblerre @ianthehat
The text was updated successfully, but these errors were encountered: