From 66bbbe4d1cd65c4983a1b358e84299139238cfa0 Mon Sep 17 00:00:00 2001 From: meganrogge Date: Wed, 3 Aug 2022 09:48:54 -0700 Subject: [PATCH] fix 156287 --- src/vs/workbench/contrib/tasks/browser/taskQuickPick.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/tasks/browser/taskQuickPick.ts b/src/vs/workbench/contrib/tasks/browser/taskQuickPick.ts index 335e13df3360b..4979605bef714 100644 --- a/src/vs/workbench/contrib/tasks/browser/taskQuickPick.ts +++ b/src/vs/workbench/contrib/tasks/browser/taskQuickPick.ts @@ -209,7 +209,8 @@ export class TaskQuickPick extends Disposable { const changeSettingResult = await this._dialogService.show(Severity.Warning, nls.localize('TaskQuickPick.changeSettingDetails', "Task detection for {0} tasks causes files in any workspace you open to be run as code. Enabling {0} task detection is a user setting and will apply to any workspace you open. \n\n Do you want to enable {0} task detection for all workspaces?", selectedType), - [noButton, yesButton] + [noButton, yesButton], + { cancelId: 1 } ); if (changeSettingResult.choice === 1) { await this._configurationService.updateValue(`${selectedType}.autoDetect`, 'on');