x/tools/gopls: add type parameters/placeholders in function calls #51544
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
I'm using
gotip
andgopls@latest
build with it. When completing generic functions gopls omits type parameters. If possible it would be nice to add placeholders for the user to fill.Test case:
I expect
NewSyncMap
inmain
to complete asNewSyncMap[K, V]()
withK
andV
being highlighted placeholders that I can edit and switch between them withTab
(like in snippets). I don't know if it's possible ingopls
but for now I need to go back and type[type1, type2]
manually which is slightly annoying.The text was updated successfully, but these errors were encountered: