gopls/v0.15.3
版本发布时间: 2024-04-16 01:57:17
golang/tools最新发布版本:gopls/v0.16.2(2024-09-06 01:01:04)
This release fixes the following regressions in gopls@v0.15.0+:
- golang/go#66490: occasional crashes when the imports cache is refreshed.
- golang/go#66425: spurious import errors in multi-root workspaces that have go.work replace directives.
- golang/go#66636: a crash in analysis when the go.mod contains a patch version and gopls was built with Go 1.20 or earlier.
- golang/go#66677: silent breakage when the go.mod file contains Go 1.22.x, and gopls was built with Go 1.21.x.
- golang/go#66731: a rare crash when diagnostics are erroneously positioned outside the file due to malformed syntax.
- golang/go#66647: a performance regression due to unnecessary reloading following "workspace/didChangeConfiguration" notifications. Under some not-yet-understood conditions, an apparent VS Code bug causes didChangeConfiguration notifications on every keystroke. With the zero-config logic of gopls@v0.15.0+, any didChangeConfiguration notification causes gopls to re-evaluate (and reload) the set of builds it tracks. With the v0.15.3 release, gopls verifies that configuration actually changed. Special thanks to @gordallott for working with us to track down this bug.