From 3e35481930c8016f88b065ed169822b5f1924bfd Mon Sep 17 00:00:00 2001 From: alexweininger Date: Wed, 9 Oct 2024 15:00:06 -0400 Subject: [PATCH] Add option to suppress readme --- ext/vscode/src/commands/init.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/vscode/src/commands/init.ts b/ext/vscode/src/commands/init.ts index f15269ab941..940640e697b 100644 --- a/ext/vscode/src/commands/init.ts +++ b/ext/vscode/src/commands/init.ts @@ -13,6 +13,7 @@ interface InitCommandOptions { templateUrl?: string; useExistingSource?: boolean; environmentName?: string; + suppressReadme?: boolean; } /** @@ -74,6 +75,8 @@ export async function init(context: IActionContext, selectedFile?: vscode.Uri, a cwd: workspacePath.fsPath, env: azureCli.env }, TelemetryId.InitCli).then(() => { - void showReadmeFile(workspacePath); + if (!options?.suppressReadme) { + void showReadmeFile(workspacePath); + } }); }