Releases: golang/tools
gopls/v0.7.0
gopls/v0.7.0
Features
Postfix completions
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 !
. This feature was added experimentally in gopls/v0.6.10
and is now enabled by default.
See this example:
New commands: List known packages and add import
These commands can be used to manually list available packages to import and then add an import to your file. They are currently not used by any known clients, but they will be made available through the Command Palette in VS Code in the next VS Code Go release.
Improvements
Memory usage
Improved trimming of the ASTs of dependency packages results in reduced memory usage, especially for projects with many dependencies. This may result in some hard-to-diagnose bugs that we're not yet aware of, so please report any surprising behavior via https://golang.org/issues/new.
Fixes
A full list of all issues fixed can be found in the gopls/v0.7.0 milestone. To report a new problem, please file a new issue at https://golang.org/issues/new.
Thank you to our contributors!
@muirdm @marwan-at-work @dominikh @leitzler @OneOfOne @zyctree @ShoshinNikita @KarthikNayak @suzmue @bcmills
gopls/v0.6.11
gopls/v0.6.11
This release contains mainly bug fixes. A full list of all issues fixed can be found in the gopls/v0.6.11 milestone. To report a new problem, please file a new issue at https://golang.org/issues/new.
Thank you to our contributors!
@ShoshinNikita @sakateka @muirdm Will Langford @empire @justplesh @suzmue
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.