1
0
mirror of https://github.com/golang/go synced 2024-11-05 17:36:15 -07:00
go/internal/lsp/fake
Rob Findley b8469989bc internal/lsp/fake: fix some messiness around client hooks
While writing the fake editor, I added some state tracking without using
it (log messages, events etc). We have since duplicated this logic in
the regtest package using client hooks.

Fix two messy aspects of this:
 - remove the state tracking in the editor
 - pass in the client hooks when connecting, so that they may be used
   without locking, and so that we do not miss any hooks that may fire
   during session initialization.

Change-Id: I24c17a28e9cfa4fca32b7ddd17c7bf01cbb12e0f
Reviewed-on: https://go-review.googlesource.com/c/tools/+/232744
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-05-08 18:47:54 +00:00
..
client.go internal/lsp/fake: fix some messiness around client hooks 2020-05-08 18:47:54 +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: add regexp search and replace 2020-03-24 20:17:55 +00:00
editor_test.go internal/lsp: support configurable codeLens 2020-05-08 18:47:35 +00:00
editor.go internal/lsp/fake: fix some messiness around client hooks 2020-05-08 18:47:54 +00:00
proxy.go internal/lsp/fake: split up and rename the Workspace type 2020-05-06 18:17:57 +00:00
sandbox.go internal/lsp: support configurable codeLens 2020-05-08 18:47:35 +00:00
workdir_test.go internal/lsp/fake: split up and rename the Workspace type 2020-05-06 18:17:57 +00:00
workdir.go internal/lsp/fake: split up and rename the Workspace type 2020-05-06 18:17:57 +00:00