package.json: add go.showWelcome
This new setting controls whether to show the Welcome on first install. Based on GitHub-Pull-Request: golang/vscode-go#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>
This commit is contained in:
Родитель
47b9e026b6
Коммит
99f78ff1a4
|
@ -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.
|
||||
|
|
|
@ -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": [
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче