Skip to content

Commit ff4ab90

Browse files
committed
[release] merge CHANGELOG.md for v0.32.0
bf63e1e CHANGELOG.md: change log for v0.32.0 2238caa package.json: reuse go.mod tmGrammar for go.work syntax highlight Change-Id: Ia39034ecafb195d8d33873af2aac8b172220322d
2 parents d2f739f + bf63e1e commit ff4ab90

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,37 @@
1+
## v0.32.0 - 8 Mar, 2022
2+
3+
This version includes features to enhance Go 1.18 support. It works best when paired with the latest Go Language Server ([`gopls` v0.8.0+](https://github.com/golang/tools/releases/tag/gopls%2Fv0.8.0)) and Delve ([`dlv` v1.8.0+](https://github.com/go-delve/delve/blob/master/CHANGELOG.md#changelog)).
4+
5+
[Go 1.18](https://go.dev/doc/go1.18) introduces substantial changes to [the language spec](https://go.dev/doc/go1.18#generics), so many tools need rebuilding with Go 1.18 or newer. The extension now suggests updates of tools if it finds they were built with old versions of `go` which are inadequate for the version used for the project. If you [opted in for auto-update](https://github.com/golang/vscode-go/blob/master/docs/settings.md#gotoolsmanagementautoupdate), tools will be auto-updated.
6+
7+
In order to use Go 1.18, please follow [the instruction to configure your Visual Studio Code to locate the right go binary](https://github.com/golang/vscode-go/blob/master/docs/advanced.md#using-go118), and run the Go tools using the "Go: Install/Update Tools" command.
8+
9+
A list of all issues and changes can be found in the [v0.32.0 milestone](https://github.com/golang/vscode-go/milestone/42) and [commit history](https://github.com/golang/vscode-go/compare/v0.31.1...v0.32.0).
10+
11+
### Changes
12+
13+
- Starting with Go 1.18, the `go` command provides native support for multi-module workspaces, via [`go.work`](https://go.dev/ref/mod#workspaces) files. The new "Open 'go.work'" option in the Go status bar's quickpick menu allows users to access the corresponding `go.work` file.
14+
![go work short](https://user-images.githubusercontent.com/4999471/157268414-fba63843-5a14-44ba-be82-d42765568856.gif)
15+
16+
- The extension no longer depends on [`gopkgs`](https://github.com/uudashr/gopkgs/cmd/gopkgs). Its use for "Go: Browse Packages" and "Go: Add Import" commands had been replaced with `go list` or commands in `gopls`. ([Issue 258](https://github.com/golang/vscode-go/issues/258))
17+
18+
- The extension uses `gopls` instead of `go-outline` if `gopls` v0.8.0 or newer is used. We plan to complete the replacement work in the next release. ([Issue 1020](https://github.com/golang/vscode-go/issue/1020))
19+
20+
- The new [`"go.toolsManagement.go"` setting](https://github.com/golang/vscode-go/blob/master/docs/settings.md#gotoolsmanagementgo) allows users to specify the Go command for tools installation/updates separate from the Go command used for the project.
21+
22+
- The latest `gopls` requires go 1.13+ for installation, so the extension no longer asks for `gopls` updates when an older versions of `go` is used. ([Issue 2030](https://github.com/golang/vscode-go/issues/2030)) Note `gopls` compiled with go 1.13 or newer can still process projects that use go 1.12. If you want to update `gopls` while working with an older version of Go, utilize the new `"go.toolsManagement.go"` setting.
23+
24+
- Reduced the verbosity of "Go: Locate Configured Go Tools" output.
25+
26+
### Code Health
27+
- Updated to [email protected] (CVE-2021-23566).
28+
- Deflaked debug tests.
29+
- Changed to check `go.dev/dl` instead of `golang.org/dl` for Go release.
30+
- Improved documentation for the default formatting behavior and template support.
31+
32+
### Thanks
33+
@jamalc @suzmue @pavlelee @dekimsey @hyangah
34+
135
## v0.31.1 - 8 Feb, 2022
236

337
A list of all issues and changes can be found in the [v0.31.1 milestone](https://github.com/golang/vscode-go/milestone/44) and [commit history](https://github.com/golang/vscode-go/compare/v0.31.0...v0.31.1).

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@
178178
"scopeName": "go.mod",
179179
"path": "./syntaxes/go.mod.tmGrammar.json"
180180
},
181+
{
182+
"language": "go.work",
183+
"scopeName": "go.mod",
184+
"path": "./syntaxes/go.mod.tmGrammar.json"
185+
},
181186
{
182187
"language": "go.sum",
183188
"scopeName": "go.sum",

0 commit comments

Comments
 (0)