mirror of
https://github.com/golang/go
synced 2024-11-18 08:54:45 -07:00
f01a4bec33
This change permits starting gopls without a root URI or any workspace folders. If no view is found for an opened file, we try to create a new view based on the module root of that file. In GOPATH mode, we just use the directory containing the file. I wrote a regtest for this by adding a new configuration that gets propagated to the sandbox. I'm not sure if this is the best way to do that, so I'll let Rob advise. Fixes golang/go#34160 Change-Id: I3deca3ac1b86b69eba416891a1c28fd35658a2ed Reviewed-on: https://go-review.googlesource.com/c/tools/+/240099 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> |
||
---|---|---|
.. | ||
analysisinternal | ||
apidiff | ||
event | ||
fakenet | ||
fastwalk | ||
gocommand | ||
gopathwalk | ||
imports | ||
jsonrpc2 | ||
lsp | ||
memoize | ||
packagesinternal | ||
proxydir | ||
span | ||
stack | ||
testenv | ||
tool | ||
typesinternal | ||
xcontext |