Releases: golang/vscode-go
Release v0.41.4-rc.1
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
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'scustomFormatter
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
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.
Release v0.41.2
v0.41.2 - 14 Mar, 2024
This release is a point release to increase the prompt rate of Go telemetry opt-in. Learn more at https://go.dev/doc/telemetry. For a detailed list of changes, refer to the complete commit history.
Fixes
- Fixed Issue 2414 that prevented recognizing testify suites spanning multiple files. (PR 3128)
- Fixed the "Open 'gopls' trace" submenu in "Go: Choose Go Environment" command. (Issue 3236)
Thanks
Thanks for your contributions! @Cr4zySheep, @nirhaas
Release v0.41.2-rc.1
Full Changelog: v0.41.1...v0.41.2-rc.1
Release v0.41.1
v0.41.1 - 22 Feb, 2024
This release is a point release to skip vscgo
installation on Windows (Issue 3182).
For a detailed list of changes, refer to the complete commit history.
Release v0.41.1-rc.1
Milestone: https://github.com/golang/vscode-go/issues?q=milestone%3Av0.41.1
Full Changelog: v0.41.0...v0.41.1-rc.1
Changelog draft: https://github.com/golang/vscode-go/blob/v0.41.1-rc.1/extension/CHANGELOG.md#v0411---22-feb-2024
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.0
v0.41.0 - 14 Feb, 2024
This release introduces significant updates to the extension's UI.
We also want to share the news that the gopls v0.15 release enhances the multi-module workspace experience and improves build tag handling.
For a detailed list of changes, refer to the complete commit history.
Changes
Gopls v0.15.0 and Workspace Configuration
- The gopls v0.15 introduces a significant change in its internal workspace data model. Known as "zero configuration" gopls,
gopls
can automatically determines workspace configurations such as Go module boundaries and necessary GOOS/GOARCH build tags for open Go files. This eliminates the need for users to align the VS Code workspace root folders with the Go module root folder. - For more details and additional feature updates, refer to the gopls v0.15.0 release notes. The extension's settings have been updated to align with gopls v0.15.0 settings.
UI Updates
- A new language status bar is added, visible when working on Go-related files. The Go status bar, which displays the selected Go version and the gopls status, is now located at the bottom right of the window and is visible only when Go files are open.
- The "Go" and "Go Debug" output channels are now primarily used for logging extension activities such as dependency tool installation, invocation, and debug logging. Use the
"Developer: Set Log Level..."
command to adjust the logging level. Thego.logging.level
setting is deprecated in favor of this new logging mechanism. - The
"Go: Locate Configured Go Tools"
command now opens an untitled file and dumps the tools information there, instead of printing it in the "Go" output channel. This change allows users to inspect and edit the output easily before sharing it in their issue report.
Debugging
- Remote debugging now defaults to using delve DAP. The legacy debug adapter will be removed in the next release cycle.
- Delve 1.22.0 introduces new options to display 'pprof' labels and use concise symbol and stack presentation. Update delve to the latest version using the
"Go: Install/Update Tools"
command.
Tools
- For new users, the extension will automatically install important tools (
gopls
and an optionally selected extra lint tool such asstaticcheck
orgolangci-lint
) if they are missing, usinggo install
commands. Any installation failures will be surfaced in the language status bar and the "Go" output channel. - The extension does not require
dlv
installation until the debug feature is invoked. - The extension now installs
vscgo
, an optional tool used to update the Go telemetry counters. This tool is installed in the extension's directory.
Telemetry
- The Go telemetry now measures activation latency. (CL 549244)
Fixes
- The extension now recognizes idx as a Web IDE. (CL 559895)
- The deprecated
web-request
has been replaced withnode-fetch@v2
. (Issue 2995)
Development Process Updates
- The repository layout has been updated with the extension code moved to the
extension/
directory. See Issue 3122 for more details. - The extension release workflow has been moved to Google Cloud Build.
Release v0.41.0-rc.2
Milestone: https://github.com/golang/vscode-go/issues?q=milestone%3Av0.41.0
Full Changelog: v0.40.3...v0.41.0-rc.2
Changelog draft: https://github.com/golang/vscode-go/blob/v0.41.0-rc.2/extension/CHANGELOG.md#v0410---14-feb-2024
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.0-rc.1
Milestone: https://github.com/golang/vscode-go/issues?q=milestone%3Av0.41.0
Full Changelog: v0.40.3...v0.41.0-rc.1
Changelog draft: https://github.com/golang/vscode-go/blob/v0.41.0-rc.1/extension/CHANGELOG.md#v0410---14-feb-2024
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.