x/tools/gopls: improve completion in binary expressions #37163
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
help wanted
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
When completing in situations like:
We detect the expected type as "bool" since that is the type of "foo == bar". That causes "bool" candidates to dominate the rankings. However, if your intention is to type "baz.blub == 123", bool candidates are counterproductive, and often obscure the candidate you want.
I propose we get rid of the binary operator type inference for
||
and&&
so all candidates are easily completable./cc @stamblerre
The text was updated successfully, but these errors were encountered: