Skip to content

Commit 99f78ff

Browse files
cuininggopherbot
authored andcommitted
package.json: add go.showWelcome
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 <[email protected]> Auto-Submit: Hyang-Ah Hana Kim <[email protected]> Reviewed-by: Suzy Mueller <[email protected]> TryBot-Result: kokoro <[email protected]>
1 parent 47b9e02 commit 99f78ff

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

docs/settings.md

+5
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,11 @@ Default:
449449
"tags" : "",
450450
}
451451
```
452+
### `go.showWelcome`
453+
454+
Specifies whether to show the Welcome experience on first install
455+
456+
Default: `true`
452457
### `go.survey.prompt`
453458

454459
Prompt for surveys, including the gopls survey and the Go developer survey.

package.json

+5
Original file line numberDiff line numberDiff line change
@@ -1113,6 +1113,11 @@
11131113
"type": "object",
11141114
"title": "Go",
11151115
"properties": {
1116+
"go.showWelcome": {
1117+
"type": "boolean",
1118+
"default": true,
1119+
"description": "Specifies whether to show the Welcome experience on first install"
1120+
},
11161121
"go.buildOnSave": {
11171122
"type": "string",
11181123
"enum": [

src/welcome.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class WelcomePanel {
3131
}
3232

3333
// Show the Go welcome page on update.
34-
if (!extensionInfo.isInCloudIDE) {
34+
if (!extensionInfo.isInCloudIDE && vscode.workspace.getConfiguration('go.showWelcome')) {
3535
showGoWelcomePage();
3636
}
3737
}

0 commit comments

Comments
 (0)