Changelog History
Page 2
-
v0.5.1 Changes
October 05, 2020gopls/v0.5.1
๐ Features
Completion speed improvements
๐ค https://golang.org/cl/257240 eliminated some duplicate type-checking in completions (and some other features), halving latency in most cases.
๐ Improvements to symbol rankings
From https://golang.org/cl/254037:
Downrank symbols if they are:
๐ > 1. Unexported and outside of the workspace. Since one wouldn't jump to these symbols to e.g. view documentation, they are less relevant.
- Fields and interface methods. Usually one would jump to the type name, so having fields highly ranked can be noisy.
โ Warnings for excluded files
๐ You will now see diagnostics if you open a file that is excluded from the current build, likely by build tags. This should aid in understanding cases when
gopls
fails to work on a certain file.๐ Better error reporting when code lenses fail
A pop-up with an error will appear if a code lens fails to run its command.
Experimental
๐ Multi-module workspace support
0๏ธโฃ The proposal described in golang/go#32394 is partially implemented, but off by default.
๐ Enable multi-module workspace support by adding the following to your settings:"gopls": {"experimentalWorkspaceModule": true,}
With this setting, you will be able to open a directory that contains multiple modules. Most features will work across modules, but some, such as
go mod tidy
diagnostics, are not yet implemented.Give this a try if you're interested in this new feature, but please note that it is still very experimental.
๐ Fixes
๐
Toggle GC Details
on Windows๐ There was a bug in the new experimental GC details code lens on Windows machines (golang/go#41614). We added a work-around to fix the issue.
๐ A list of all issues fixed can be found in the gopls/v0.5.1 milestone.
๐ Documentation
๐ The documentation for settings is now automatically generated so it will stay up-to-date. Documentation was also updated for working with Neovim and for working on the Go project itself.
Thank you to our contributors!
-
v0.5.1-pre3
September 30, 2020 -
v0.5.1-pre2
September 29, 2020 -
v0.5.1-pre1
September 25, 2020 -
v0.5.0 Changes
September 15, 2020A 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 matching
Note : 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 a
Toggle gc details
annotation 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 tidy
andgo mod vendor
code lenses forgo.mod
files (@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 -
v0.5.0-pre3
September 14, 2020 -
v0.5.0-pre2
September 14, 2020 -
v0.5.0-pre1
September 10, 2020 -
v0.4.4 Changes
August 03, 2020- ๐ Support for opening a single file. Previously,
gopls
required you to open an entire directory. - ๐ Support features and diagnostics for the entire module, even when you open a subdirectory of the module.
- Extract a selected range to a variable or to a function. This feature is still relatively new, so please report issues if you encounter any. (@joshbaum)
- ๐ Fillstruct performance improvements. It is now enabled by default again. (@joshbaum)
- ๐ Improvements in go.mod diagnostic error presentation.
A full list of all issues closed is available in the gopls/v0.4.4 milestone.
- ๐ Support for opening a single file. Previously,
-
v0.4.4-pre3
July 29, 2020