go/gopls/internal/regtest
pjw 9ffa3ad372 internal/lsp: Provide completions for test function definitions
In test files, function definitions starting with
Test, Bench, or Fuzz can be completed almost automatically.

For the snippets the user hits tab, completes the name, hits
tab again, and the function is defined, except (of course) for its
body.

Otherwise a completion that fills in the signature is proposed.

Where appropriate, 'TestMain(m *testing.M)' is also offered as
a completion.

Fixes golang/go#46896 and golang/go#51089

Change-Id: I46c05af0ead79c1d82ca40b2c605045e06e1a35d
Reviewed-on: https://go-review.googlesource.com/c/tools/+/385974
Run-TryBot: Peter Weinberger <pjw@google.com>
Trust: Peter Weinberger <pjw@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2022-02-25 19:27:31 +00:00
..
bench internal/lsp/regtest: eliminate arbitrary timeouts 2022-01-25 21:51:33 +00:00
codelens internal/lsp/regtest: eliminate arbitrary timeouts 2022-01-25 21:51:33 +00:00
completion internal/lsp: Provide completions for test function definitions 2022-02-25 19:27:31 +00:00
diagnostics internal/lsp/analysis/undeclaredname: suppress impossible quick fixes 2022-02-09 19:35:26 +00:00
misc gopls: wire in LangVersion and ModulePath for gofumpt formatting 2022-02-24 18:08:50 +00:00
modfile internal/lsp/cache: set types.Config.GoVersion 2022-02-07 18:19:30 +00:00
template internal/template: return available semantic tokens even on template error 2022-01-26 20:10:56 +00:00
watch gopls/internal/regtest: clean up TestFillReturnsPanic 2021-06-03 18:03:08 +00:00
workspace internal/lsp: add support for formatting go.work files 2022-02-15 17:15:32 +00:00