mirror of https://github.com/golang/go.git
Locating the workspace module by convention has multiple problems: + gopls's view of $TMPDIR might be different from the client + there might be multiple views + there might be multiple gopls sessions per pid Instead, assign a temp workspace directory for each workspace folder, and provide a command to access this information. Cleaning up all these temp directories was overcomplicated. Instead, create a temp directory for the gopls server to nest them under, that can be removed up on server shutdown. Also fix a bug where the snapshot was not acquired before copying its workspace. Updates golang/go#42252 Change-Id: I0641cebe09cd376dfa27373cac30397711c64a8f Reviewed-on: https://go-review.googlesource.com/c/tools/+/300409 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
|---|---|---|
| .. | ||
| commandmeta | ||
| gen | ||
| command_gen.go | ||
| generate.go | ||
| interface.go | ||
| interface_test.go | ||
| util.go | ||