Skip to content

Releases: golang/vscode-go

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.

Release v0.41.4-rc.1

23 Apr 20:53
Compare
Choose a tag to compare
Release v0.41.4-rc.1 Pre-release
Pre-release

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

Changelog draft: https://github.com/golang/vscode-go/blob/v0.41.4-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.3

22 Apr 14:30
Compare
Choose a tag to compare

v0.41.3 - 22 Apr, 2024

Full Changelog: v0.41.2...v0.41.3

This point release temporarily reverts the default remote debugging behavior to use the legacy debug adapter due to existing feature gaps. Once these gaps are addressed as outlined in Issue 3096, we plan to switch the default back to use Delve DAP for remote deubgging.

If you want to continue using Delve DAP for remote debugging, use the following settings in your launch.json.

{
    "name": "Debug Remote",
    "type": "go",
    "request": "attach",
    "mode": "remote",
    "debugAdapter": "dlv-dap", // Use Delve DAP
    ...
}

See the full commit history for detailed changes.

Fixes

  • Fixed to substitute variables used in go.alternateTools setting's customFormatter entry (Issue 2582).
  • Corrected handling of go.showWelcome setting (Issue 3319).
  • Addressed Go telemetry prompt issue in the latest Visual Studio Code (Issue 3312).

Thanks

Thanks for your contributions, @uniquefine, @monitor1379, @suzmue, @hyangah!

Release v0.41.3-rc.1

19 Apr 18:07
Compare
Choose a tag to compare
Release v0.41.3-rc.1 Pre-release
Pre-release

Milestone: https://github.com/golang/vscode-go/issues?q=milestone%3Av0.41.3

Full Changelog: v0.41.2...v0.41.3-rc.1

Changelog draft: https://github.com/golang/vscode-go/blob/v0.41.3-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.