x/tools/gopls: improve experience when editing a go.mod file by hand #42529
Right now, we invalidate metadata on every keystroke, and for a
#42266 might also be helpful, though I don't think it's the critical issue.
The text was updated successfully, but these errors were encountered:
There was never a test that actually confirmed that golang/go#42529 was fixed, so it never actually was. Updates golang/go#42529 Change-Id: I4264162e98c5fde804c780e098a1d4e21a2d88d8 Reviewed-on: https://go-review.googlesource.com/c/tools/+/279033 Trust: Rebecca Stambler <email@example.com> Run-TryBot: Rebecca Stambler <firstname.lastname@example.org> gopls-CI: kokoro <email@example.com> TryBot-Result: Go Bot <firstname.lastname@example.org> Reviewed-by: Robert Findley <email@example.com>
Features Shadow analyzer This off-by-default analyzer flags shadowed variables. Learn more in the Analyzers documentation. Experimental New keys for the GC details "annotations" setting The previous keys were prefixed with "no" and meant to disable certain GC details checks, which was inconsistent with the style of our other settings maps. A warning will appear suggesting a change to the new key name, but the old settings will continue to work. Full details can be found in the annotations documentation. Documentation Improved documentation for available analyzers. Improved documentation for Vim. Fixes Editing the go.mod file by hand (golang/go#42529) This issue was previously marked as resolved, but it had not actually been fixed. Package metadata will now only be invalidated when a go.mod file is saved, so you will need to save before expecting your changes to be propagated. This should significantly reduce the number of go list calls (and therefore CPU utilization) as you edit the go.mod file.