Skip to content

Commit

Permalink
package.json: add go.showWelcome
Browse files Browse the repository at this point in the history
  • Loading branch information
cuining committed Mar 16, 2023
1 parent fa820d4 commit d10a282
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,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 d10a282

Please sign in to comment.