Skip to content

Commit d76c22f

Browse files
committed
[release] prepare v0.33.0 release (2)
95b8c3a CHANGELOG.md: v0.33.0 change log ef5ca7b src/goSurvey: include os & go version info in the user survey Change-Id: Id2f07d731a40a71a657760271bd5e136f6c36f33
2 parents 240336f + 95b8c3a commit d76c22f

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,34 @@
1+
## v0.33.0 - 28 Apr, 2022
2+
3+
📣 [Remote attach debugging](docs/debugging.md#connecting-to-headless-delve-with-target-specified-at-server-start-up) is now available via Delve's native DAP implementation with Delve v1.7.3 or newer. It is now the default with the [Go Nightly](docs/nightly.md) and will become the default for the stable releases in mid 2022.
4+
5+
### Changes
6+
7+
* `staticcheck`: if go 1.16.x or older is used in installing tools, the extension chooses `[email protected]`. In order to use the latest version of `staticcheck` while working on projects that require older versions of go, you can utilize the `"go.toolsManagement.go"` setting to specify a newer version of go for tool installation. ([Issue 2162](https://github.com/golang/vscode-go/issues/2162))
8+
9+
* `go-outline`: `go-outline` is no longer required when `gopls` (v0.8.2+) is used.
10+
11+
* Activation: the extension defers commands and feature provider registrations until it runs `go version` and `go env`, and starts `gopls`. [This change](https://go-review.googlesource.com/c/vscode-go/+/398155) prevent the extension prematually export its features, but may result in a slight increase in extension activation time if those commands run slow.
12+
13+
* Survey: we show the Gopls opt-out survey prompt only when users change the setting to disable `gopls`.
14+
15+
* Test Explorer: fixed a bug in `go.mod` file parsing ([Issue 2171](https://github.com/golang/vscode-go/issues/2171))
16+
17+
* Debugging: we removed the informational popup at the start of remote attach session with `dlv-dap`. ([Issue 2018](https://github.com/golang/vscode-go/issues/2018))
18+
19+
### Experimental features
20+
21+
This version includes two highly experimental features. They are still
22+
in early stage and we are looking forward to hearing more user feedback.
23+
24+
* [Go Explorer view](docs/ui.md#go-explorer-view): it displays environment variables and information about tools used by the extension. ([Issue 2049](https://github.com/golang/vscode-go/issues/2049))
25+
26+
* `Go: Run Vulncheck (Experimental)` command: it runs the `govulncheck` command embedded in `gopls`, which identifies known vulnerabilities by call graph traversal and module dependency analysis. ([Issue 2096](https://github.com/golang/vscode-go/issues/2096))
27+
28+
### Thanks
29+
30+
@jamalc, @polinasok, @dlipovetsky, @vladdoster, @suzmue, @hyangah
31+
132
## v0.32.0 - 8 Mar, 2022
233

334
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)).

docs/ui.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,8 @@ When modules are enabled for the file you have open, you can navigate to the `go
4343

4444
More information about [using Go modules](https://go.dev/blog/using-go-modules ) is available on the Go blog.
4545

46+
## Go Explorer View
47+
48+
The view displays the go environment variables (`go env`) that are applied to the file open in the editor. You can customize the list by "Go: Edit Workspace" command (pencil icon), and update modifiable environment variables through this view.
49+
50+
It displays required [tools](tools.md) and their location/version info, too.

src/goSurvey.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
promptForDeveloperSurvey
1919
} from './goDeveloperSurvey';
2020
import { getGoConfig } from './config';
21+
import { getGoVersion } from './util';
2122

2223
// GoplsSurveyConfig is the set of global properties used to determine if
2324
// we should prompt a user to take the gopls survey.
@@ -163,7 +164,9 @@ Could you help us improve this extension by filling out a 1-2 minute survey abou
163164
cfg.prompt = true;
164165
const goplsEnabled = latestConfig.enabled;
165166
const usersGoplsVersion = await getLocalGoplsVersion(latestConfig);
166-
const surveyURL = `https://google.qualtrics.com/jfe/form/SV_agUVNbrDS0Cak2W?usingGopls=${goplsEnabled}&gopls=${usersGoplsVersion?.version}&extid=${extensionId}`;
167+
const goV = await getGoVersion();
168+
const goVersion = goV ? (goV.isDevel ? 'devel' : goV.format(true)) : 'na';
169+
const surveyURL = `https://google.qualtrics.com/jfe/form/SV_agUVNbrDS0Cak2W?usingGopls=${goplsEnabled}&gopls=${usersGoplsVersion?.version}&extid=${extensionId}&go=${goVersion}&os=${process.platform}`;
167170
await vscode.env.openExternal(vscode.Uri.parse(surveyURL));
168171
}
169172
break;

0 commit comments

Comments
 (0)