gopls version
v0.14.2
go env
What did you do?
I have an existing expression f(a), and I would like to replace it with f(protocol.FWithLongName(a)). After typing protocol.F, the only useful completion offered is the function snippet, which would complete as
f(protocol.FWithLongName(x protocol.TypeWithLongName, y TypeOfSecondArg)(a))
which requires too much editing.
What did you expect to see?
I would like to have seen both the function snippet and just the function names as suggested completions.
What did you see instead?
The unsyntactic completion described above. gopls is not looking at the context when it proposed a snippet where there is already an argument.
Editor and settings
No response
Logs
No response
gopls version
v0.14.2
go env
What did you do?
I have an existing expression f(a), and I would like to replace it with f(protocol.FWithLongName(a)). After typing protocol.F, the only useful completion offered is the function snippet, which would complete as
f(protocol.FWithLongName(x protocol.TypeWithLongName, y TypeOfSecondArg)(a))
which requires too much editing.
What did you expect to see?
I would like to have seen both the function snippet and just the function names as suggested completions.
What did you see instead?
The unsyntactic completion described above. gopls is not looking at the context when it proposed a snippet where there is already an argument.
Editor and settings
No response
Logs
No response