Skip to content

Commit

Permalink
package.json: add go.showWelcome
Browse files Browse the repository at this point in the history
This new setting controls whether to show the Welcome
on first install.

Based on GitHub-Pull-Request: #2704
Hana Kim ran `go run tools/generate.go` to update
docs/settings.md.

Change-Id: I30a4c5fd6066b4c5e3052ba3d75e47e6b52a4a76
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/501208
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
  • Loading branch information
cuining authored and gopherbot committed Jun 8, 2023
1 parent 47b9e02 commit 99f78ff
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,11 @@ Default:
"tags" : "",
}
```
### `go.showWelcome`

Specifies whether to show the Welcome experience on first install

Default: `true`
### `go.survey.prompt`

Prompt for surveys, including the gopls survey and the Go developer survey.
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,11 @@
"type": "object",
"title": "Go",
"properties": {
"go.showWelcome": {
"type": "boolean",
"default": true,
"description": "Specifies whether to show the Welcome experience on first install"
},
"go.buildOnSave": {
"type": "string",
"enum": [
Expand Down
2 changes: 1 addition & 1 deletion src/welcome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class WelcomePanel {
}

// Show the Go welcome page on update.
if (!extensionInfo.isInCloudIDE) {
if (!extensionInfo.isInCloudIDE && vscode.workspace.getConfiguration('go.showWelcome')) {
showGoWelcomePage();
}
}
Expand Down

0 comments on commit 99f78ff

Please sign in to comment.