go/internal/lsp/testdata/snippets
Marwan Sulaiman 9f83dd3691 internal/lsp/source: use the real type parameter in snippet completions
This change makes source.FormatVarType return the instantiated type
parameter instead of the actual AST expression because that will just
refer to the abstract type parameter and not the insantiated one.
I am not sure if this covers all edge cases or if there's a better
solution but I'm happy to adjust to whatever is appropriate.

Fixes golang/go#50623

Change-Id: I6e0b2d93c47c9a0502f2995ca8d3668a9a31c056
Reviewed-on: https://go-review.googlesource.com/c/tools/+/378714
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Peter Weinberger <pjw@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Peter Weinberger <pjw@google.com>
2022-01-21 14:07:19 +00:00
..
literal.go internal/lsp: remove multi-module support in tests 2020-09-22 16:28:30 +00:00
literal.go.golden internal/lsp: remove multi-module support in tests 2020-09-22 16:28:30 +00:00
literal_snippets.go.in lsp/completion: don't offer untyped conversions 2021-06-04 17:45:44 +00:00
literal_snippets118.go.in internal/lsp/source: use the real type parameter in snippet completions 2022-01-21 14:07:19 +00:00
postfix.go lsp/completion: fix postfix completions preceding assignments 2021-04-26 15:26:58 +00:00
snippets.go.golden internal/lsp: remove multi-module support in tests 2020-09-22 16:28:30 +00:00
snippets.go.in internal/lsp/completion: fix invalid struct literal field snippet 2021-02-05 19:39:40 +00:00