Skip to content

Releases: golang/tools

gopls/v0.6.10

13 Apr 20:30
Compare
Choose a tag to compare

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:

Screen Shot 2021-04-13 at 4 17 41 PM

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:

ezgif-3-a82b2077ff38

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

19 Mar 20:32
Compare
Choose a tag to compare

gopls/v0.6.9

This is a patch release to fix golang/go#45092.

gopls/v0.6.8

17 Mar 21:39
Compare
Choose a tag to compare

gopls/v0.6.8

This is a patch release to fix golang/go#45075.

gopls/v0.6.7

16 Mar 18:53
Compare
Choose a tag to compare

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

Screen Shot 2021-03-16 at 8 33 25 AM

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

23 Feb 19:19
Compare
Choose a tag to compare

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!

@findleyr @heschik @pjweinb @muirdm @zchee @110y

gopls/v0.6.5

03 Feb 20:49
Compare
Choose a tag to compare

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.

Screen Shot 2021-02-02 at 4 40 33 PM


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!

@findleyr @heschik @pjweinb @leitzler

gopls/v0.6.4

19 Jan 23:23
Compare
Choose a tag to compare

gopls/v0.6.3

14 Jan 19:35
Compare
Choose a tag to compare

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!

@findleyr @heschik @mvdan @leitzler @bcmills @hyangah @rsc

gopls/v0.6.2

06 Jan 21:02
Compare
Choose a tag to compare

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

17 Dec 17:26
Compare
Choose a tag to compare

This is a patch release to fix golang/go#43234. The titles of some suggested fixes were blank, leading to a bad user experience.