mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
@@ -208,8 +208,9 @@ export class TaskQuickPick extends Disposable {
|
||||
const yesButton = nls.localize('TaskQuickPick.changeSettingYes', "Yes");
|
||||
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. Do you want to enable {0} task detection for all workspaces?", selectedType),
|
||||
[noButton, yesButton]);
|
||||
"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]
|
||||
);
|
||||
if (changeSettingResult.choice === 1) {
|
||||
await this._configurationService.updateValue(`${selectedType}.autoDetect`, 'on');
|
||||
await new Promise<void>(resolve => setTimeout(() => resolve(), 100));
|
||||
|
||||
Reference in New Issue
Block a user