Be explicit about tasks running shell commands

Fixes #287073
This commit is contained in:
Daniel Imms
2026-02-11 05:48:54 -08:00
parent 6441536a79
commit f4ca471694

View File

@@ -180,7 +180,7 @@ export class RunAutomaticTasks extends Disposable implements IWorkbenchContribut
private _showPrompt(notificationService: INotificationService, storageService: IStorageService, openerService: IOpenerService, configurationService: IConfigurationService, taskNames: string[], locations: Map<string, URI>): Promise<boolean> {
return new Promise<boolean>(resolve => {
notificationService.prompt(Severity.Info, nls.localize('tasks.run.allowAutomatic',
"This workspace has tasks ({0}) defined ({1}) that run automatically when you open this workspace. Do you want to allow automatic tasks to run in all trusted workspaces?",
"This workspace has tasks ({0}) defined ({1}) that run shell commands automatically when you open this workspace. Do you want to allow automatic tasks to run in all trusted workspaces?",
taskNames.join(', '),
Array.from(locations.keys()).join(', ')
),