x/tools/gopls: offer undeclared names in lexical completion #69993
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
gopls/completion
Issues related to auto-completion in gopls.
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
This issue is extracted from #69980, where the request is to include undeclared (but used) names in lexical completion results.
We could do this by extracting such names from type errors (see also
gopls/internal/analysis/undeclaredname
).I think we're much less likely to implement this feature than we are to offer the fix in #69980. Presumably it's much more important to help users fix their incorrect syntax, than it is to operate as though the syntax were valid. Putting in the unplanned milestone.
The text was updated successfully, but these errors were encountered: