mirror of
https://github.com/golang/go
synced 2024-11-18 17:34:51 -07:00
7178990c25
To avoid proposing unusable completions, such as those in modules that need a replace statement to be usable, we need to know what module a directory is in. That involves walking up the directory tree to find a go.mod file, which is expensive to do over and over. Really, we just need to check if the directory we're in has a go.mod file, then use the parent dir's results. Add module information to the cache and use it when figuring out what module a dir is in. Change-Id: Ia74ba9b37d73fca5e6786a94c73c8fd71b591645 Reviewed-on: https://go-review.googlesource.com/c/tools/+/202541 Run-TryBot: Heschi Kreinick <heschi@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
---|---|---|
.. | ||
testdata/mod | ||
fix_test.go | ||
fix.go | ||
imports_test.go | ||
imports.go | ||
mkindex.go | ||
mkstdlib.go | ||
mod_112_test.go | ||
mod_cache_test.go | ||
mod_cache.go | ||
mod_test.go | ||
mod.go | ||
proxy_112_test.go | ||
proxy_113_test.go | ||
sortimports.go | ||
zstdlib.go |