x/tools/gopls: improve completion for variadic params #34334
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
In cases like this:
we should prefer "myStr" since we know we are completing an individual string.
Also, we should add "..." to variadic completion items:
Consider whether we should do it for cases like this:
Personally I think it should still expand in this case to
myIntf...
because that is more likely what you want vs passing the[]interface{}
as the first variadicinterface{}
.The text was updated successfully, but these errors were encountered: