From ef5ca7b71b14ec1fca6dbd4dfa00da549c612007 Mon Sep 17 00:00:00 2001 From: Hana Date: Tue, 26 Apr 2022 17:59:30 -0400 Subject: [PATCH 1/2] src/goSurvey: include os & go version info in the user survey Change-Id: I8d09f96e7b406bd162f4f0b780c39f7bf674f238 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/402434 Run-TryBot: Hyang-Ah Hana Kim TryBot-Result: kokoro Reviewed-by: Robert Findley Reviewed-by: Todd Kulesza --- src/goSurvey.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/goSurvey.ts b/src/goSurvey.ts index a2d8747248..eeecd79e7d 100644 --- a/src/goSurvey.ts +++ b/src/goSurvey.ts @@ -18,6 +18,7 @@ import { promptForDeveloperSurvey } from './goDeveloperSurvey'; import { getGoConfig } from './config'; +import { getGoVersion } from './util'; // GoplsSurveyConfig is the set of global properties used to determine if // 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 cfg.prompt = true; const goplsEnabled = latestConfig.enabled; const usersGoplsVersion = await getLocalGoplsVersion(latestConfig); - const surveyURL = `https://google.qualtrics.com/jfe/form/SV_agUVNbrDS0Cak2W?usingGopls=${goplsEnabled}&gopls=${usersGoplsVersion?.version}&extid=${extensionId}`; + const goV = await getGoVersion(); + const goVersion = goV ? (goV.isDevel ? 'devel' : goV.format(true)) : 'na'; + const surveyURL = `https://google.qualtrics.com/jfe/form/SV_agUVNbrDS0Cak2W?usingGopls=${goplsEnabled}&gopls=${usersGoplsVersion?.version}&extid=${extensionId}&go=${goVersion}&os=${process.platform}`; await vscode.env.openExternal(vscode.Uri.parse(surveyURL)); } break; From 95b8c3a385da49e78310f681ab99631a18e097ba Mon Sep 17 00:00:00 2001 From: Hana Date: Wed, 27 Apr 2022 11:32:30 -0400 Subject: [PATCH 2/2] CHANGELOG.md: v0.33.0 change log For golang/vscode-go#2212 Change-Id: I6ce72a04c2e9b9b35acfad106b6f4744de9dad40 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/402634 Reviewed-by: Polina Sokolova Run-TryBot: Hyang-Ah Hana Kim TryBot-Result: kokoro --- CHANGELOG.md | 31 +++++++++++++++++++++++++++++++ docs/ui.md | 5 +++++ 2 files changed, 36 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 12e10319f3..08a0cd0027 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,34 @@ +## v0.33.0 - 28 Apr, 2022 + +📣 [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. + +### Changes + +* `staticcheck`: if go 1.16.x or older is used in installing tools, the extension chooses `staticcheck@v0.2.2`. 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)) + +* `go-outline`: `go-outline` is no longer required when `gopls` (v0.8.2+) is used. + +* 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. + +* Survey: we show the Gopls opt-out survey prompt only when users change the setting to disable `gopls`. + +* Test Explorer: fixed a bug in `go.mod` file parsing ([Issue 2171](https://github.com/golang/vscode-go/issues/2171)) + +* 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)) + +### Experimental features + +This version includes two highly experimental features. They are still +in early stage and we are looking forward to hearing more user feedback. + +* [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)) + +* `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)) + +### Thanks + +@jamalc, @polinasok, @dlipovetsky, @vladdoster, @suzmue, @hyangah + ## v0.32.0 - 8 Mar, 2022 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)). diff --git a/docs/ui.md b/docs/ui.md index f2ef93f82e..9860221136 100644 --- a/docs/ui.md +++ b/docs/ui.md @@ -43,3 +43,8 @@ When modules are enabled for the file you have open, you can navigate to the `go More information about [using Go modules](https://go.dev/blog/using-go-modules ) is available on the Go blog. +## Go Explorer View + +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. + +It displays required [tools](tools.md) and their location/version info, too. \ No newline at end of file