mirror of https://github.com/golang/go.git
Editors need a way to run commands in the same workspace that gopls sees. Longer term, we need a good solution for this that supports multiple workspace folders, but for now just write the first folder's workspace to a deterministic location: $TMPDIR/gopls-<client PID>.workspace. Using the client-provided PID allows this mechanism to work even for multi-session daemons. Along the way, simplify the snapshot reinitialization logic a bit. Fixes golang/go#42126 Change-Id: I5b9f454fcf1a1a8fa49a4b0a122e55e762d398b4 Reviewed-on: https://go-review.googlesource.com/c/tools/+/264618 Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Heschi Kreinick <heschi@google.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Robert Findley <rfindley@google.com> |
||
|---|---|---|
| .. | ||
| autostart_default.go | ||
| autostart_posix.go | ||
| lsprpc.go | ||
| lsprpc_test.go | ||