|
| 1 | +## v0.40.0 - 13 Nov, 2023 |
| 2 | + |
| 3 | +This extension utilizes [Go Telemetry](https://telemetry.go.dev/privacy) to gather insights |
| 4 | +about the performance and stability of the extension and the language server it employs. |
| 5 | +By default, Telemetry uploading is disabled, but starting from this version, |
| 6 | +a small number of users will be prompted to enable it. Users can enable telemetry uploading |
| 7 | +by either responding to the prompt or running the following command: |
| 8 | + |
| 9 | +``` |
| 10 | +go run golang.org/x/telemetry/cmd/gotelemetry@latest on |
| 11 | +``` |
| 12 | + |
| 13 | +Once uploading is enabled, the data will be sent to https://telemetry.go.dev |
| 14 | +on a weekly basis. You can find more information about this process at |
| 15 | +[https://telemetry.go.dev/privacy](https://telemetry.go.dev) and in the |
| 16 | +[gopls v0.14 release notes(https://github.com/golang/tools/releases/tag/gopls%2Fv0.14.0). |
| 17 | + |
| 18 | +A comprehensive list of changes can be found in the complete |
| 19 | +[commit history](https://github.com/golang/vscode-go/compare/v0.40.0...v0.39.1). |
| 20 | + |
| 21 | +### Changes |
| 22 | + |
| 23 | +* In this release, we have removed legacy language feature providers that were supported |
| 24 | +by outdated tools. As a result, features such as code completion, navigation, |
| 25 | +documentation, diagnostics, and refactoring will only function |
| 26 | +when the language server (`gopls`) is enabled. |
| 27 | +([Issue 2799](https://github.com/golang/vscode-go/issues/2799)) |
| 28 | + |
| 29 | +* The "Go: Fill struct" command has been retired. The same functionality is provided |
| 30 | +as a [Code Action](https://code.visualstudio.com/docs/editor/refactoring#_code-actions-quick-fixes-and-refactorings) |
| 31 | +for refactoring. You can refer to the screenshot for details. |
| 32 | +([Issue 2107](https://github.com/golang/vscode-go/issues/2107))) |
| 33 | + |
| 34 | +* The "Go: Extract to function" and "Go: Extract to variable" commands are no longer needed, |
| 35 | +as they have been replaced by Code Actions provided by gopls. |
| 36 | +([Issue 2862](https://github.com/golang/vscode-go/issues/2862)) |
| 37 | + |
| 38 | +* The "buildFlags" attribute for Go launch configuration now accepts a list of strings in |
| 39 | +addition to a string. If using delve at v1.22.2 or newer, this list is passed directly to |
| 40 | +delve. This should help with bugs related to parsing the string of buildFlags, such as in |
| 41 | +[Issue 1831](https://github.com/golang/vscode-go/issues/1831) and |
| 42 | +[Issue 1027](https://github.com/golang/vscode-go/issues/1027). |
| 43 | +([Issue 3009](https://github.com/golang/vscode-go/issues/3009)) |
| 44 | + |
| 45 | +* The "Go: Toggle Hide System Goroutines" command was added to make it easier to switch between |
| 46 | +showing / hiding the system goroutines in the callstack view. This command is also |
| 47 | +available in the callstack context menu. The default setting can also be updated by updating |
| 48 | +"hideSystemGoroutines" in either the launch.json or in the "go.delveConfig" setting. |
| 49 | +([Issue 1797](https://github.com/golang/vscode-go/issues/1797#issuecomment-1762145244)) |
| 50 | + |
| 51 | +### Fixes |
| 52 | + |
| 53 | +* We have enhanced environment variable substitution. Environment variable references |
| 54 | +like `${env:VAR}` in the `go.toolsEnvVars` setting |
| 55 | +([Issue 2680](https://github.com/golang/vscode-go/issues/2680)) and the `go.goroot` setting |
| 56 | +([Issue 3006](https://github.com/golang/vscode-go/issues/3006)) are now correctly substituted. |
| 57 | +Patterns like `${VAR}` inside environment files (`go.testEnvFile`) can be used to reference |
| 58 | +other environment variables as well. ([Issue 1902](https://github.com/golang/vscode-go/issues/1902)) |
| 59 | + |
| 60 | +### Compatibilities |
| 61 | + |
| 62 | +* This extension version requires VS Code 1.75 (January 2023 version) or newer. |
| 63 | +The README.md provides a list of VS Code and Go version requirements. |
| 64 | +* For tools installation managed by the extension, you need go1.18 or a newer version. |
| 65 | +([Issue 2898](golang/vscode-go#2898)) |
| 66 | +* The extension has been tested with gopls v0.14 and delve v0.21. |
| 67 | + |
| 68 | +### Thanks |
| 69 | + |
| 70 | +Thank you for your contribution @n1lesh, @suzmue, @hyangah! |
| 71 | + |
1 | 72 | ## v0.39.1 - 17 Jul, 2023
|
2 | 73 |
|
3 | 74 | This is a point release to update the link for the upcoming Go developer survey.
|
|
0 commit comments