mirror of https://github.com/golang/go.git
https://github.com/microsoft/vscode-go/issues/3076#issuecomment-605062933 inspired me to write a regression test for this case. Turns out we weren't handling it correctly after all... This change makes sure that we only rebuild the view once a new go.mod file is saved, not just created. It also preserves the snapshot ID number when the view is recreated so that diagnostic caching continues to work as expected. Change-Id: I63bd559c3bd33b91828171cd7ddb3d099c31cddb Reviewed-on: https://go-review.googlesource.com/c/tools/+/226017 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> Reviewed-by: Robert Findley <rfindley@google.com> |
||
|---|---|---|
| .. | ||
| analysis.go | ||
| cache.go | ||
| check.go | ||
| debug.go | ||
| error_test.go | ||
| errors.go | ||
| external.go | ||
| load.go | ||
| mod.go | ||
| os_darwin.go | ||
| os_windows.go | ||
| parse.go | ||
| pkg.go | ||
| session.go | ||
| snapshot.go | ||
| view.go | ||
| view_test.go | ||