mirror of
https://github.com/golang/go
synced 2024-11-06 01:46:12 -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> |
||
---|---|---|
.. | ||
codelens_test.go | ||
definition_test.go | ||
diagnostics_test.go | ||
doc.go | ||
env_test.go | ||
env.go | ||
formatting_test.go | ||
generate_test.go | ||
imports_test.go | ||
link_test.go | ||
modfile_test.go | ||
reg_test.go | ||
runner.go | ||
shared_test.go | ||
symbol_helper_test.go | ||
symbol_test.go | ||
unix_test.go | ||
vendor_test.go | ||
watch_test.go | ||
wrappers.go |