Sourced from golang.org/x/tools's releases.
gopls/v0.5.0
A full list of issues closed can be found in the gopls/v0.5.0 milestone.
Memory usage
- Rewrite of caching model, resulting in significant memory usage improvements (
@heschik).New features
- Extract to function: Support for extracting code blocks that contain return statements (
@joshbaum).- Workspace symbols: Support for fzf-style search syntax (
@findleyr). The following syntax is supported:
'for exact matching^for prefix matching$for suffix matchingNote: This feature does not yet work in VS Code. See golang/vscode-go#647 and microsoft/vscode#106788.
- An experimental new code lens to view GC optimization details (
@pjweinb). Once the code lens is enabled, you will see aToggle gc detailsannotation at the top of your file. Clicking it will show optimization diagnostics produced by the Go compiler, and clicking it once again will hide these diagnostics. Enable the code lens by adding the following to your settings:"codelens": { "gc_details": true }go mod tidyandgo mod vendorcode lenses forgo.modfiles (@dandua98).- Support for filling in matching in-scope variables instead of just empty values in fillstruct and fillreturns (
@joshbaum).- Autocompletion within import statements (
@dandua98).- Autocompletion within package declarations (
@dandua98).Improvements
- Improvements to workspace symbols ranking and fuzzy matching (
@findleyr,@myitcv).- Better completion suggestions in type switch case clauses and for calls to
append, function literals, and unnamed types (@muirdm).Thank you
Thank you to everyone who contributed to this release!
@heschik@findleyr@pjweinb@joshbaum@mcjcloud@dandua98@muirdm@leitzler@myitcv@matloob@tennashi@ainar-g@hasheddan
... (truncated)
7db99dd go.mod: update golang.org/x dependencies1e0dff2 gopls/internal/regtest: avoid race in TestSwitchFromGOPATHToModuleMode0441b43 gopls/internal/lsp/cache: use specific mutexes for module data33071fb internal/robustio: move robustiob01e7a4 gopls/internal/regtest/watch: don't run TestSwitchFromGOPATHToModuleModee417ea3 gopls: remove dead analysis code1a08d01 gopls/internal/lsp: update replace directives in go.mod for package renamingeac36cb gopls/internal/regtest: port experimental workspace tests to go.work224a61b gopls/internal/lsp/source: delete Snapshot.WriteEnv method81e741e gopls/internal/lsp/safetoken: funnel more calls through this package