Add option to suppress parameter name inlay hint when argument matches name
I noted on Twitter for the new inlay hint feature:
The Rust language server has a nice subtle touch where if the parameter name matches the argument variable given, it skips showing the inlay.
And @hyangah noted in https://github.com/golang/vscode-go/issues/1631#issuecomment-1155185811_:
It looks like Javascript/Typescript have similars, e.g.
javascript.inlayHints.parameterNames.suppressWhenArgumentMatchesName
Adding this option would be great for common parameters like ctx context.Context.
#2365
- [x] #
Duplicate of #
The latest gopls version suppresses parameter name inlay hints when the argument matches the name (for example, ctx and id match the parameter names below):
