Skip to content

Releases: golang/vscode-go

Release v0.41.0-rc.1

12 Feb 14:50
Compare
Choose a tag to compare
Release v0.41.0-rc.1 Pre-release
Pre-release

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.

Release v0.40.3

24 Jan 00:06
Compare
Choose a tag to compare

v0.40.3 - 22 Jan, 2024

This is a point release to update the upcoming developer survey information (the commit history).

v0.40.2 had a minor issue in the developer survey prompt and the date in CHANGELOG.
v0.40.3 fixed the typos.

Release 0.40.2

22 Jan 16:03
Compare
Choose a tag to compare

v0.40.2 - 22 Jan, 2024

This is a point release to update the upcoming developer survey information
(the commit history).

Release 0.40.1

21 Dec 15:24
Compare
Choose a tag to compare

v0.40.1 - 21 Dec, 2023

This is a point release to fix minor bugs. A comprehensive list of bug fixes and changes can be found in the milestone and the commit history.

Changes

  • We adjusted the extension activation behavior. The extension will not be activated until Go files are open or the extension's commands are invoked. (Issue 3038, and 2164)
  • The GOTOOLCHAIN environment variable is shown from the Go explorer view.

Fixes

  • Pprof result viewer now works with the remote development setup. (Issue 3090).
  • Subtests that include regexp metacharacters in their names are now properly handled. (Issue 2624, 3070)
  • When the extension detects go installed by snap, it will use /snap/go/current/bin/go as the go command path to work around a bug in snapd. (Issue 166)
  • We enhanced the automated issue reporting feature to be robust in collecting gopls crash logs and handling transient errors during gopls upgrade. (Issue 984, 2690)
  • The extension now respects user's editor.parameterHints.enabled and shows parameter hints after completion only if it is enabled. (Issue 3071)
  • Ran npm audit fix and that updated semver and word-wrap dependencies. (CL 551055)

Thanks

Thank you for your contribution @tekig, @rogeryk, @hyangah!

Release 0.40.1-rc.1

19 Dec 21:06
Compare
Choose a tag to compare
Release 0.40.1-rc.1 Pre-release
Pre-release
  • Milestone: https://github.com/golang/vscode-go/issues?q=milestone%3Av0.40.1

  • Commits: v0.40.0...v0.40.1-rc.1

  • 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 0.40.0

16 Nov 18:37
Compare
Choose a tag to compare

v0.40.0 - 16 Nov, 2023

This extension uses Go Telemetry to gather insights about the performance and stability of the extension and the language server it employs.

By default, Telemetry uploading is disabled, but starting from this version, a small number of users will be prompted to enable it.
Users can uploading of telemetry data by either responding to the prompt or running the following command:

go run golang.org/x/telemetry/cmd/gotelemetry@latest on

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

You can find more information about this process at https://telemetry.go.dev/privacy and in the gopls v0.14 release notes.

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

Changes

  • In this release, we have removed legacy language feature providers that were supported by outdated tools. As a result, features such as code completion, navigation, documentation, diagnostics, and refactoring will only function when the language server (gopls) is enabled. (Issue 2799)

  • The "Go: Fill struct" command has been retired. The same functionality is provided by gopls as a Code Action for refactoring. You can refer to the screenshot for details. (Issue 2107))

  • The "Go: Extract to function" and "Go: Extract to variable" commands are no longer needed, as they have been replaced by Code Actions provided by gopls. (Issue 2862)

  • The "buildFlags" attribute for Go launch configuration now accepts more than one string. If using delve at v1.22.2 or newer, this list is passed directly to delve. This should help with bugs related to parsing the string of buildFlags, such as in Issue 1831 and Issue 1027. (Issue 3009)

  • The "Go: Toggle Hide System Goroutines" command makes it easier to switch between showing / hiding the system goroutines in the callstack view. This command is also available in the callstack context menu. The default setting can be updated by updating
    "hideSystemGoroutines" in either the launch.json or in the "go.delveConfig" setting. (Issue 1797)

Fixes

  • Environment variables may now be used in additional configuration settings. Environment variable references like ${env:VAR} in the go.toolsEnvVars setting (Issue 2680) and the go.goroot setting
    (Issue 3006) are now correctly substituted. Patterns like ${VAR} inside environment files (go.testEnvFile) can be used to reference other environment variables as well. (Issue 1902)

Compatibilities

  • This extension version requires VS Code 1.75 (January 2023 version) or newer. The README.md provides a list of VS Code and Go version requirements.
  • For tools installation managed by the extension, you need go1.18 or a newer version. (Issue 2898)
  • The extension has been tested with gopls v0.14 and delve v1.21.

Thanks

Thank you for your contribution @n1lesh, @suzmue, @hyangah!

Release 0.40.0-rc.1

09 Nov 17:12
Compare
Choose a tag to compare
Release 0.40.0-rc.1 Pre-release
Pre-release

Release 0.39.1

17 Jul 14:54
Compare
Choose a tag to compare

v0.39.1 - 17 Jul, 2023

This is a point release to update the link for the upcoming Go developer survey.
A list of changes can be found in the full commit history.

Release 0.39.1-rc.1

17 Jul 13:53
Compare
Choose a tag to compare
Release 0.39.1-rc.1 Pre-release
Pre-release
[release] prepare v0.39.1 release

3eafcb48 CHANGELOG.md: update for v0.39.1
9e7f8580 src/goDeveloperSurvey: update survey link and dates
75770e1f package.json: add gopls.start_debugging
5f5a8752 build/Dockerfile: skip global typescript, vsce installation
0de0e113 build: remove unused, outdated cloudbuild config
3b2da9a1 package.json: prepare for the v0.40.0 dev cycle
fb1dce6d package.json: align snippetsPreventQuickSuggestions with VS Code default

Change-Id: I9e1f5d40b5128c4c829850139aef92d26c18907f

Release 0.39.0

13 Jun 17:33
Compare
Choose a tag to compare

v0.39.0 - 12 Jun, 2023

We are in the process of removing legacy language features that were replaced by gopls since early 2021. The versions released after September 2023 will no longer offer features like code completion, navigation, documentation, formatting, and refactoring if the language server is disabled. In this release, we are showing deprecation notification messages if you are using the legacy language features. (Issue 2799)

A list of all issues and changes can be found in the v0.39.0 milestone and commit history.

Changes

  • Added the go.showWelcome setting that controls whether to show the Welcome page. (PR 2704)

  • Report when go.toolsManagement.go setting is invalid and ignored. (Issue 2753)

  • Removed go.languageServerExperimentalFeatures setting which was deprecated in v0.21.0. (Issue 1109)

  • Deprecated settings that affect only legacy language features and tools. They will be removed in the release after September 2023. (Issue 2799)

  • "Go: Update/Install Tools" will install the latest version of golangci-lint instead of a vetted, pinned version. The extension chose to pin the versions of third-party go tools it installs in order to manage version skew and reduce security risks. However, golangci-lint is frequently released and its community is active enough to handle compatibility/security issues. We decided to install the latest version by default. (Issue 2763, 2485)

  • Debug: show error when the process picker is hidden (CL 499601). To learn more about the process picker in debug, see Launch.json "processId" documentation.

  • Debug: args attribute now accepts a string typed value. The argument string is parsed into word arguments with rules similar to bash except that there is no shell expansion. This change allows to use vscode variables like ${input:args}. (Issue 2621)

  • The extension no longer caches PATH environment variable, which helps interoperate with extensions that modify PATH. (Issue 2617)

  • Updated LSP to v3.17.3 and VS Code language client library to v8.1.0. This includes fixes for request ordering issues around full document sync and bugs around shutdown.

  • Replaced the extension user survey link to https://go.dev/s/ide-hats-survey. (CL 497536)

  • Updated settings to sync with gopls@v0.12.

  • Third-party go tools dependencies: use gofumpt@v0.5.0 and revive@v1.3.2 and install staticcheck@v0.3.3 when building with go1.18 or older.

Delopment process updates

Documentation

Thanks