Releases: golang/tools
gopls/v0.6.10
gopls/v0.6.10
Features
t.Fatal
snippet
If you trigger completion in a test function, on the line after a call to a function that returns an error, you will be offered a completion snippet for:
if err != nil {
t.Fatal(err)
}
See the example below:
Experimental
Postfix completion snippets
Postfix completions are a new style of completions that can save you time by inserting more complex pieces of commonly-written code. All of the results end with !
. Enable this feature by setting "ui.completion.experimentalPostfixCompletions": true
.
See this example:
Fixes
A full list of all issues fixed can be found in the gopls/v0.6.10 milestone. To report a new problem, please file a new issue at https://golang.org/issues/new.
Thank you to our contributors!
@marwan-at-work @soluchok @zchee @ShoshinNikita @Makima0 @muirdm @steeve
gopls/v0.6.9
gopls/v0.6.9
This is a patch release to fix golang/go#45092.
gopls/v0.6.8
gopls/v0.6.8
This is a patch release to fix golang/go#45075.
gopls/v0.6.7
gopls/v0.6.7
Features
New analyzers
The unusedwrite and nilness analyzers are now available, but they are disabled by default. Note that enabling them permanently may significantly increase memory usage. You can configure analyzers through the analyses setting.
Improved hover with time.Duration
Hover for any constant of type time.Duration
is shown both in nanoseconds and as a human-readable string.
Fixes
A full list of all issues fixed can be found in the gopls/v0.6.7 milestone. To report a new problem, please file a new issue at https://golang.org/issues/new.
Thank you to our contributors!
@findleyr @heschik @pjweinb @hyangah @ainar-g @glepnir @ShoshinNikita @msAlcantara
gopls/v0.6.6
gopls/v0.6.6
This release mostly included bug fixes and changes that are not user facing. A full list of all issues fixed can be found in the gopls/v0.6.6 milestone. To report a new problem, please file a new issue at https://golang.org/issues/new.
Thank you to our contributors!
gopls/v0.6.5
gopls/v0.6.5
Features
Show available upgrades for dependencies
gopls/v0.6.0
removed support for the code lenses that showed available upgrades for dependencies. This behavior has now been reintroduced, with an improved UI. Users must explicitly request this information by clicking the "Check for upgrades" code lens above the go.mod
file's require
block. Any module with available upgrades will be highlighted with an informational diagnostic and accepting its suggested fix will preform the upgrade.
A full list of all issues fixed can be found in the gopls/v0.6.5 milestone. To report a new problem, please file a new issue at https://golang.org/issues/new.
Thank you to our contributors!
gopls/v0.6.4
Includes fixes for https://blog.golang.org/path-security.
gopls/v0.6.3
gopls/v0.6.3
This release has a number of bug fixes and documentation improvements.
A full list of all issues fixed can be found in the gopls/v0.6.3 milestone. To report a new problem, please file a new issue at https://golang.org/issues/new.
Thank you to our contributors!
gopls/v0.6.2
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.
A full list of all issues fixed can be found in the gopls/v0.6.2 milestone. To report a new problem, please file a new issue at https://golang.org/issues/new.
Thank you to our contributors!
@findleyr @leitzler @cuonglm @pjweinb @ainar-g @msAlcantara @ericchiang
gopls/v0.6.1
This is a patch release to fix golang/go#43234. The titles of some suggested fixes were blank, leading to a bad user experience.