1
0
mirror of https://github.com/golang/go synced 2024-09-30 18:18:32 -06:00
go/internal/lsp/fake
Rebecca Stambler 383b97c0b5 internal/lsp: watch directories in replace targets and update on changes
This change adds the notion of a "workspace directory", which is
basically the set of directories that contains workspace packages. These
are mainly used for replace targets right now. It's a little trickier
than expected because the set of workspace directories can technically
change on any go.mod change.

At first, I wanted DidModifyFiles to report whether there was a change,
but I don't think it's actually that expensive to check on each call
and it complicates the code a bit. I can change it back if you think
it's worth doing.

The parse mod handle changes are because I needed an unlocked way of
parsing the mod file, but I imagine they'll conflict with CL 244769
anyway.

The next CL will be to "promote" replace targets to the level of
workspace packages, meaning we will be able to find references in them.

Change-Id: I5dd58fe29415473496ca6634a94a3134923228dc
Reviewed-on: https://go-review.googlesource.com/c/tools/+/245327
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2020-08-07 23:35:17 +00:00
..
client.go internal/lsp: watch directories in replace targets and update on changes 2020-08-07 23:35:17 +00:00
doc.go internal/lsp/fake: split up and rename the Workspace type 2020-05-06 18:17:57 +00:00
edit_test.go internal/lsp/regtest: implement formatting and organizeImports 2020-03-02 19:16:53 +00:00
edit.go internal/lsp/fake: define Symbol method on Editor 2020-05-11 20:27:07 +00:00
editor_test.go internal/lsp/fake: move to a struct for configuring the sandbox 2020-07-23 23:36:26 +00:00
editor.go internal/lsp: watch directories in replace targets and update on changes 2020-08-07 23:35:17 +00:00
proxy.go internal/lsp/regtest: add run options to support stress testing 2020-07-23 23:37:37 +00:00
sandbox.go internal/lsp/regtest: add run options to support stress testing 2020-07-23 23:37:37 +00:00
workdir_test.go internal/lsp/regtest: add run options to support stress testing 2020-07-23 23:37:37 +00:00
workdir.go internal/lsp: correctly invalidate metadata for batched changes 2020-07-27 19:55:46 +00:00