Skip to content

Releases: golang/vscode-go

Release v0.45.0

17 Dec 14:42
Compare
Choose a tag to compare
Release v0.45.0 Pre-release
Pre-release

This is the pre-release version of v0.46.0.

Date: 2024-12-16

Full Changelog: v0.44.0-rc.1...v0.45.0
Milestone: https://github.com/golang/vscode-go/issues?q=milestone%3Av0.46.0

v0.45.0 is a pre-release version identical to the official release v0.44.0, incorporating all the same bug fixes and improvements. This may include additional, experimental features that are not yet ready for general release. These features are still under development and may be subject to change or removal.

See release https://github.com/golang/vscode-go/releases/tag/v0.44.0 for details.

Release v0.44.0

17 Dec 14:11
Compare
Choose a tag to compare

Date: 2024-12-16

Full Changelog: v0.42.1...v0.44.0
Milestone: https://github.com/golang/vscode-go/issues?q=milestone%3Av0.44.0

Changes

  • Gopls v0.17: The latest gopls version as of this release is gopls v0.17. The extension settings documentation has been updated to align with the latest gopls settings.
  • Increased the Go telemetry prompt rate to 100%.
  • Debugging: will not open Debug Console when debug.internalConsoleOption is neverOpen. (CL 627675)

Tools installation

Code Health

  • Extension build target is set to es2022. (Issue 3540)
  • The extension release workflow is migrated to the Go project's Relui. (Issue 3500)

Testing

A new extension, Go Companion, has been released with experimental support for gopls-based test discovery. If Go Companion is installed, pre-release versions of this extension will automatically disable its test explorer in favor of Go Companion's implementation. See experiments for details on Go Companion's features and for disabling the automatic switchover.

Release v0.43.4

05 Dec 16:27
Compare
Choose a tag to compare
Release v0.43.4 Pre-release
Pre-release

This is the pre-release version of v0.44.0.

Date: 2024-12-05

Full Changelog: v0.42.0-rc.1...v0.43.4
Milestone: https://github.com/golang/vscode-go/issues?q=milestone%3Av0.44.0

Changes

  • Gopls v0.17: The latest gopls version as of this release is gopls v0.17. The extension settings documentation has been updated to align with the latest gopls settings.
  • Increased the Go telemetry prompt rate to 100%.
  • Debugging: will not open Debug Console when debug.internalConsoleOption is neverOpen. (CL 627675)

Tools installation

Code Health

  • Extension build target is set to es2022. (Issue 3540)
  • The extension release workflow is migrated to the Go project's Relui. (Issue 3500)

Testing

A new extension, Go Companion, has been released with experimental support for gopls-based test discovery. If Go Companion is installed, pre-release versions of this extension will automatically disable its test explorer in favor of Go Companion's implementation. See experiments for details on Go Companion's features and for disabling the automatic switchover.

Release v0.43.3

18 Nov 19:27
Compare
Choose a tag to compare
Release v0.43.3 Pre-release
Pre-release

This is the pre-release version of v0.44.0.

Date: 2024-11-18

Full Changelog: v0.42.0-rc.1...v0.43.3
Milestone: https://github.com/golang/vscode-go/issues?q=milestone%3Av0.44.0

Changes

  • Gopls v0.17: The latest gopls version as of this release is gopls v0.17. The extension settings documentation has been updated to align with the latest gopls settings.

Tools installation

Code Health

  • Extension build target is set to es2022. (Issue 3540)
  • The extension release workflow is migrated to the Go project's Relui. (Issue 3500)

Testing

A new extension, Go Companion, has been released with experimental support for gopls-based test discovery. If Go Companion is installed, pre-release versions of this extension will automatically disable its test explorer in favor of Go Companion's implementation. See experiments for details on Go Companion's features and for disabling the automatic switchover.

Release v0.43.2

25 Sep 18:01
Compare
Choose a tag to compare
Release v0.43.2 Pre-release
Pre-release

Full Changelog: v0.42.0-rc.1...v0.43.2
Milestone: https://github.com/golang/vscode-go/issues?q=milestone%3Av0.44.0

Code Health

  • Extension build target is set to es2022. (Issue 3540)
  • The extension release workflow is migrated to the Go project's Relui. (Issue 3500)

Release v0.43.1

10 Sep 14:27
Compare
Choose a tag to compare
Release v0.43.1 Pre-release
Pre-release

This is the pre-release version of v0.44. The nightly (golang.go-nightly) extension is deprecated in favor of the pre-release version.

Release v0.42.1

10 Sep 14:25
Compare
Choose a tag to compare

v0.42.1 - 9 Sep, 2024

A comprehensive list of changes can be found in the complete commit history.

Changes

Release v0.42.0

17 Jul 18:30
Compare
Choose a tag to compare

v0.42.0 - 17 Jul, 2024

A comprehensive list of changes can be found in the complete commit history.

Updates in gopls

  • Gopls v0.16: The latest gopls version as of this release is gopls v0.16. The extension settings documentation has been updated to align with the latest gopls settings.
  • The gopls project provides an index of all supported features. We are working on making this documentation more accessible from the extension. Please stay tuned for updates.

Updates in telemetry

This extension continues to use Go toolchain telemetry.
By default, telemetry data is kept only on the local computer, but you can opt in to share it with the Go team with one of the following ways:

  • go run golang.org/x/telemetry/cmd/gotelemetry@latest on in the terminal, or
  • go telemetry on, from go1.23, or
  • Respond to the prompt when it appears.

Once uploading is enabled, the data will be sent to https://telemetry.go.dev approximately once a week.

Changes

Tools installation

  • For tools installation managed by the extension, this version requires go1.19 or newer version. The next minor release (v0.43.0+) will require go1.21 or newer to install tools. If your project requires go1.20 or older to build, you will need to manually install compatible versions of tools, or configure the "go.toolsManagement.go" setting to use go1.21+ when installing the tools.

  • The extension installs its required tools using the go install command. Starting go1.21, the go command allows tool authors to specify the minimum Go version required to build their tools. If the required go toolchain version is not locally available, the go command needs to download it like other dependencies of the tool. To ensure this toolchain switch works correctly, the extension enforces GOTOOLCHAIN=auto mode during tools installation. Note that this change does not affect how it builds and tests your own project. For more information about Go's toolchain switch behavior, see the official documentation.

Debugging

  • The default launch.json template for "Go: Launch Package" was updated to use "${workspaceFolder}${1:}" instead of "${fileDirname}" as the default "program" attribute value. If the package to debug is located in the subdirectory, adjust the configuration to point to the main package path. The official VS Code Variables Reference lists useful substitution rules you can use in adjusting your launch.json setting.

Thanks

Thanks for your contributions, @yimiaoxiehou!

Release v0.42.0-rc.1

16 Jul 20:27
Compare
Choose a tag to compare
Release v0.42.0-rc.1 Pre-release
Pre-release

Full Changelog: v0.41.4...v0.42.0-rc.1

Changelog draft: https://github.com/golang/vscode-go/blob/v0.42.0-rc.1/extension/CHANGELOG.md

How to test prerelease

  • Download the .vsix file from this Releases page.
  • Navigate to the Extensions view in VS Code (Ctrl+Shift+X). Click on the "..." in the top-right corner, select "Install from VSIX", and select the .vsix file you downloaded. Alternatively, you can run code --install-extension Go-latest.vsix or open the Command Palette and run the "Extensions: Install from VSIX..." command.
  • If prompted, reload VS Code.

Release v0.41.4

24 Apr 17:28
Compare
Choose a tag to compare

v0.41.4 - 24 Apr, 2024

This point release addresses a regression issue (spurious display of the Go welcome page) within cloud-based IDEs.

See the full
commit history
for detailed changes.