mirror of
https://github.com/golang/go
synced 2024-11-19 01:14:39 -07:00
9c79f685b7
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> |
||
---|---|---|
.. | ||
testdata/unchanged | ||
code_lens.go | ||
diagnostics.go | ||
format.go | ||
hover.go | ||
mod_test.go |