Skip to content

Releases: golang/tools

gopls/v0.7.0

09 Jun 18:44
Compare
Choose a tag to compare

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:

ezgif-3-a82b2077ff38

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

06 May 19:41
Compare
Choose a tag to compare

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

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