golang/go
View on GitHubx/tools/gopls: improve suggestions in completion placeholders
Open
#31,548 opened on Apr 18, 2019
FeatureRequestgoplshelp wanted
Repository metrics
- Stars
- (133,883 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
Context: #31547.
We should suggest in-scope identifiers of the matching type when adding placeholders for a function.
We would also need to develop some heuristics to determine which identifier to suggest, if there are multiple in scope. (Ideas: most recently declared, closest name to the one declared in the function signature.)