Skip to content

Commit

Permalink
[release] prepare v0.33.0 release (2)
Browse files Browse the repository at this point in the history
95b8c3a CHANGELOG.md: v0.33.0 change log
ef5ca7b src/goSurvey: include os & go version info in the user survey

Change-Id: Id2f07d731a40a71a657760271bd5e136f6c36f33
  • Loading branch information
hyangah committed Apr 28, 2022
2 parents 240336f + 95b8c3a commit d76c22f
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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 `[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))

* `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)).
Expand Down
5 changes: 5 additions & 0 deletions docs/ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
5 changes: 4 additions & 1 deletion src/goSurvey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d76c22f

Please sign in to comment.