1
0
mirror of https://github.com/golang/go synced 2024-10-01 12:28:37 -06:00
go/internal/lsp/regtest
Heschi Kreinick d3bf790afa internal/lsp: add Regenerate Cgo code lens
Now that we support authoring cgo packages better, we need a way to
regenerate the C definitions. Doing it automatically is very difficult;
in particular, referencing a new symbol from the C package may require
regeneration, but we don't want to do that for every typo.

For now, give the user a button and make them push it. We attach a
code lens to the import "C" line. This is vulnerable to the usual
user-didn't-save glitches.

Updates golang/go#35721.

Change-Id: Iaa3540a9a12bbd8705e7f0e43ad0be1b22e87067
Reviewed-on: https://go-review.googlesource.com/c/tools/+/234103
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
2020-05-15 22:01:28 +00:00
..
cgo_test.go internal/lsp: add Regenerate Cgo code lens 2020-05-15 22:01:28 +00:00
codelens_test.go internal/lsp: support configurable codeLens 2020-05-08 18:47:35 +00:00
definition_test.go internal/lsp/regtest: put testing.T back in the test func signature 2020-04-14 18:42:46 +00:00
diagnostics_114_test.go internal/lsp/regtest: add regression test for golang/go#36960 2020-05-12 00:15:01 +00:00
diagnostics_test.go internal/lsp/regtest: add regression test for golang/go#36960 2020-05-12 00:15:01 +00:00
doc.go internal/lsp/regtest: add expository package documentation 2020-04-28 21:10:48 +00:00
env_test.go internal/lsp: instrument work done reporting to use in regtests 2020-04-28 20:46:32 +00:00
env.go internal/lsp/regtest: add regression test for golang/go#36960 2020-05-12 00:15:01 +00:00
formatting_test.go internal/lsp/fake: split up and rename the Workspace type 2020-05-06 18:17:57 +00:00
generate_test.go internal/lsp/regtest: add support for testing generate commands 2020-05-04 19:25:30 +00:00
reg_test.go internal/lsp/regtest: generalize expectations beyond diagnostic messages 2020-04-16 21:39:01 +00:00
runner.go internal/lsp: add Regenerate Cgo code lens 2020-05-15 22:01:28 +00:00
serialization_test.go internal/lsp/fake: split up and rename the Workspace type 2020-05-06 18:17:57 +00:00
shared_test.go internal/lsp: support configurable codeLens 2020-05-08 18:47:35 +00:00
symbol_helper_test.go internal/lsp/fake: define Symbol method on Editor 2020-05-11 20:27:07 +00:00
symbol_test.go internal/lsp/fake: define Symbol method on Editor 2020-05-11 20:27:07 +00:00
unix_test.go internal/lsp/regtest: don't build unix_test for Plan 9 2020-05-13 12:28:04 +00:00
wrappers.go internal/lsp/fake: define Symbol method on Editor 2020-05-11 20:27:07 +00:00