/ go Public
x/tools/gopls: Find values by name without prefixing with the package name #58291
Issues related to the Go language server, gopls.
This label describes issues relating to any tools in the x/tools repository.
What did you do?
It would be nice, if gopls would support this Goland feature: You can easily find a value by its name without importing the package or prefixing with the package name. It allows you to identify, at a first sight, the value you are looking for, especially when you don't remember the package to which it belongs to.
This functionality can be accomplished by searching for a symbol with the usage of the method
workspace/symbol, and, once the required value is found and its corresponding package is identified, we are able to back to the editor and typing the package followed by the required value. However, this process is a little bit cumbersome and also we have a lack of documentation that the autocompletion system provides (if enabled) when we go down through all completion candidates.
What did you expect to see?
All fuzzy matches of exported functions or types from packages in the current workspace and std library.
What did you see instead?
gopls does not report any suggestion if I start typing the package's exported functions or types before importing the package or prefixing with the package name.
Editor and settings
The text was updated successfully, but these errors were encountered: