@codingame/monaco-vscode-task-service-override 26.2.2 → 28.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/tasks/browser/abstractTaskService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/tasks/browser/abstractTaskService.js +146 -150
- package/vscode/src/vs/workbench/contrib/tasks/browser/runAutomaticTasks.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/browser/runAutomaticTasks.js +8 -8
- package/vscode/src/vs/workbench/contrib/tasks/browser/task.contribution.js +48 -48
- package/vscode/src/vs/workbench/contrib/tasks/browser/taskQuickPick.js +17 -17
- package/vscode/src/vs/workbench/contrib/tasks/browser/taskService.js +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/browser/taskTerminalStatus.js +11 -11
- package/vscode/src/vs/workbench/contrib/tasks/browser/tasksQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.js +53 -37
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchemaCommon.js +42 -42
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v1.js +14 -10
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v2.js +95 -84
- package/vscode/src/vs/workbench/contrib/tasks/common/problemCollectors.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/tasks/common/problemCollectors.js +34 -13
- package/vscode/src/vs/workbench/contrib/tasks/common/taskSystem.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/taskTemplates.js +4 -4
- package/vscode/src/vs/base/common/parsers.d.ts +0 -32
- package/vscode/src/vs/base/common/parsers.js +0 -54
- package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.d.ts +0 -432
- package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.js +0 -1627
- package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.d.ts +0 -510
- package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.js +0 -1790
|
@@ -30,5 +30,5 @@ export declare class ManageAutomaticTaskRunning extends Action2 {
|
|
|
30
30
|
static readonly ID = "workbench.action.tasks.manageAutomaticRunning";
|
|
31
31
|
static readonly LABEL: string;
|
|
32
32
|
constructor();
|
|
33
|
-
run(accessor: ServicesAccessor): Promise<
|
|
33
|
+
run(accessor: ServicesAccessor): Promise<void>;
|
|
34
34
|
}
|
|
@@ -218,24 +218,24 @@ let RunAutomaticTasks = class RunAutomaticTasks extends Disposable {
|
|
|
218
218
|
) {
|
|
219
219
|
return (new Promise(resolve => {
|
|
220
220
|
notificationService.prompt(Severity.Info, ( localize(
|
|
221
|
-
|
|
222
|
-
"This workspace has tasks ({0}) defined ({1}) that
|
|
221
|
+
12684,
|
|
222
|
+
"This workspace has tasks ({0}) defined ({1}) that can launch processes automatically when you open this workspace. Do you want to allow automatic tasks to run in all trusted workspaces?",
|
|
223
223
|
taskNames.join(", "),
|
|
224
224
|
Array.from(( locations.keys())).join(", ")
|
|
225
225
|
)), [{
|
|
226
|
-
label: ( localize(
|
|
226
|
+
label: ( localize(12685, "Allow")),
|
|
227
227
|
run: () => {
|
|
228
228
|
resolve(true);
|
|
229
229
|
configurationService.updateValue(ALLOW_AUTOMATIC_TASKS, "on", ConfigurationTarget.USER);
|
|
230
230
|
}
|
|
231
231
|
}, {
|
|
232
|
-
label: ( localize(
|
|
232
|
+
label: ( localize(12686, "Disallow")),
|
|
233
233
|
run: () => {
|
|
234
234
|
resolve(false);
|
|
235
235
|
configurationService.updateValue(ALLOW_AUTOMATIC_TASKS, "off", ConfigurationTarget.USER);
|
|
236
236
|
}
|
|
237
237
|
}, {
|
|
238
|
-
label: locations.size === 1 ? ( localize(
|
|
238
|
+
label: locations.size === 1 ? ( localize(12687, "Open File")) : ( localize(12688, "Open Files")),
|
|
239
239
|
run: async () => {
|
|
240
240
|
for (const location of locations) {
|
|
241
241
|
await openerService.open(location[1]);
|
|
@@ -260,7 +260,7 @@ class ManageAutomaticTaskRunning extends Action2 {
|
|
|
260
260
|
this.ID = "workbench.action.tasks.manageAutomaticRunning";
|
|
261
261
|
}
|
|
262
262
|
static {
|
|
263
|
-
this.LABEL = ( localize(
|
|
263
|
+
this.LABEL = ( localize(12689, "Manage Automatic Tasks"));
|
|
264
264
|
}
|
|
265
265
|
constructor() {
|
|
266
266
|
super({
|
|
@@ -273,10 +273,10 @@ class ManageAutomaticTaskRunning extends Action2 {
|
|
|
273
273
|
const quickInputService = accessor.get(IQuickInputService);
|
|
274
274
|
const configurationService = accessor.get(IConfigurationService);
|
|
275
275
|
const allowItem = {
|
|
276
|
-
label: ( localize(
|
|
276
|
+
label: ( localize(12690, "Allow Automatic Tasks"))
|
|
277
277
|
};
|
|
278
278
|
const disallowItem = {
|
|
279
|
-
label: ( localize(
|
|
279
|
+
label: ( localize(12691, "Disallow Automatic Tasks"))
|
|
280
280
|
};
|
|
281
281
|
const value = await quickInputService.pick([allowItem, disallowItem], {
|
|
282
282
|
canPickMany: false
|
|
@@ -5,7 +5,7 @@ import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/l
|
|
|
5
5
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
6
6
|
import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
7
7
|
import { registerAction2, MenuRegistry, MenuId, Action2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
8
|
-
import { ProblemMatcherRegistry } from '
|
|
8
|
+
import { ProblemMatcherRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/tasks/common/problemMatcher';
|
|
9
9
|
import { ProgressLocation } from '@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress';
|
|
10
10
|
import { IProgressService } from '@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service';
|
|
11
11
|
import { Extensions as Extensions$3 } from '@codingame/monaco-vscode-api/vscode/vs/platform/jsonschemas/common/jsonContributionRegistry';
|
|
@@ -102,7 +102,7 @@ let TaskStatusBarContributions = class TaskStatusBarContributions extends Dispos
|
|
|
102
102
|
command: "workbench.action.tasks.showTasks"
|
|
103
103
|
}, progress => {
|
|
104
104
|
progress.report({
|
|
105
|
-
message: ( localize(
|
|
105
|
+
message: ( localize(12692, "Building..."))
|
|
106
106
|
});
|
|
107
107
|
return promise;
|
|
108
108
|
}).then(() => {
|
|
@@ -120,10 +120,10 @@ let TaskStatusBarContributions = class TaskStatusBarContributions extends Dispos
|
|
|
120
120
|
}
|
|
121
121
|
} else {
|
|
122
122
|
const itemProps = {
|
|
123
|
-
name: ( localize(
|
|
123
|
+
name: ( localize(12693, "Running Tasks")),
|
|
124
124
|
text: `$(tools) ${tasks.length}`,
|
|
125
|
-
ariaLabel: ( localize(
|
|
126
|
-
tooltip: ( localize(
|
|
125
|
+
ariaLabel: ( localize(12694, "{0} running tasks", tasks.length)),
|
|
126
|
+
tooltip: ( localize(12695, "Show Running Tasks")),
|
|
127
127
|
command: "workbench.action.tasks.showTasks"
|
|
128
128
|
};
|
|
129
129
|
if (!this._runningTasksStatusItem) {
|
|
@@ -155,7 +155,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarTerminalMenu, {
|
|
|
155
155
|
group: TerminalMenuBarGroup.Run,
|
|
156
156
|
command: {
|
|
157
157
|
id: "workbench.action.tasks.runTask",
|
|
158
|
-
title: ( localize(
|
|
158
|
+
title: ( localize(12696, "&&Run Task..."))
|
|
159
159
|
},
|
|
160
160
|
order: 1,
|
|
161
161
|
when: TaskExecutionSupportedContext
|
|
@@ -164,7 +164,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarTerminalMenu, {
|
|
|
164
164
|
group: TerminalMenuBarGroup.Run,
|
|
165
165
|
command: {
|
|
166
166
|
id: "workbench.action.tasks.build",
|
|
167
|
-
title: ( localize(
|
|
167
|
+
title: ( localize(12697, "Run &&Build Task..."))
|
|
168
168
|
},
|
|
169
169
|
order: 2,
|
|
170
170
|
when: TaskExecutionSupportedContext
|
|
@@ -174,7 +174,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarTerminalMenu, {
|
|
|
174
174
|
command: {
|
|
175
175
|
precondition: TASK_RUNNING_STATE,
|
|
176
176
|
id: "workbench.action.tasks.showTasks",
|
|
177
|
-
title: ( localize(
|
|
177
|
+
title: ( localize(12698, "Show Runnin&&g Tasks..."))
|
|
178
178
|
},
|
|
179
179
|
order: 1,
|
|
180
180
|
when: TaskExecutionSupportedContext
|
|
@@ -184,7 +184,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarTerminalMenu, {
|
|
|
184
184
|
command: {
|
|
185
185
|
precondition: TASK_RUNNING_STATE,
|
|
186
186
|
id: "workbench.action.tasks.restartTask",
|
|
187
|
-
title: ( localize(
|
|
187
|
+
title: ( localize(12699, "R&&estart Running Task..."))
|
|
188
188
|
},
|
|
189
189
|
order: 2,
|
|
190
190
|
when: TaskExecutionSupportedContext
|
|
@@ -194,7 +194,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarTerminalMenu, {
|
|
|
194
194
|
command: {
|
|
195
195
|
precondition: TASK_RUNNING_STATE,
|
|
196
196
|
id: "workbench.action.tasks.terminate",
|
|
197
|
-
title: ( localize(
|
|
197
|
+
title: ( localize(12700, "&&Terminate Task..."))
|
|
198
198
|
},
|
|
199
199
|
order: 3,
|
|
200
200
|
when: TaskExecutionSupportedContext
|
|
@@ -203,7 +203,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarTerminalMenu, {
|
|
|
203
203
|
group: TerminalMenuBarGroup.Configure,
|
|
204
204
|
command: {
|
|
205
205
|
id: "workbench.action.tasks.configureTaskRunner",
|
|
206
|
-
title: ( localize(
|
|
206
|
+
title: ( localize(12701, "&&Configure Tasks..."))
|
|
207
207
|
},
|
|
208
208
|
order: 1,
|
|
209
209
|
when: TaskExecutionSupportedContext
|
|
@@ -212,7 +212,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarTerminalMenu, {
|
|
|
212
212
|
group: TerminalMenuBarGroup.Configure,
|
|
213
213
|
command: {
|
|
214
214
|
id: "workbench.action.tasks.configureDefaultBuildTask",
|
|
215
|
-
title: ( localize(
|
|
215
|
+
title: ( localize(12702, "Configure De&&fault Build Task..."))
|
|
216
216
|
},
|
|
217
217
|
order: 2,
|
|
218
218
|
when: TaskExecutionSupportedContext
|
|
@@ -220,7 +220,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarTerminalMenu, {
|
|
|
220
220
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
221
221
|
command: {
|
|
222
222
|
id: "workbench.action.tasks.openWorkspaceFileTasks",
|
|
223
|
-
title: ( localize2(
|
|
223
|
+
title: ( localize2(12703, "Open Workspace Tasks")),
|
|
224
224
|
category: TASKS_CATEGORY
|
|
225
225
|
},
|
|
226
226
|
when: ( ContextKeyExpr.and(( WorkbenchStateContext.isEqualTo("workspace")), TaskExecutionSupportedContext))
|
|
@@ -236,7 +236,7 @@ MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
|
236
236
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
237
237
|
command: {
|
|
238
238
|
id: "workbench.action.tasks.showLog",
|
|
239
|
-
title: ( localize2(
|
|
239
|
+
title: ( localize2(12704, "Show Task Log")),
|
|
240
240
|
category: TASKS_CATEGORY
|
|
241
241
|
},
|
|
242
242
|
when: TaskExecutionSupportedContext
|
|
@@ -244,14 +244,14 @@ MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
|
244
244
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
245
245
|
command: {
|
|
246
246
|
id: "workbench.action.tasks.runTask",
|
|
247
|
-
title: ( localize2(
|
|
247
|
+
title: ( localize2(12705, "Run Task")),
|
|
248
248
|
category: TASKS_CATEGORY
|
|
249
249
|
}
|
|
250
250
|
});
|
|
251
251
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
252
252
|
command: {
|
|
253
253
|
id: "workbench.action.tasks.reRunTask",
|
|
254
|
-
title: ( localize2(
|
|
254
|
+
title: ( localize2(12706, "Rerun Last Task")),
|
|
255
255
|
category: TASKS_CATEGORY
|
|
256
256
|
},
|
|
257
257
|
when: TaskExecutionSupportedContext
|
|
@@ -259,7 +259,7 @@ MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
|
259
259
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
260
260
|
command: {
|
|
261
261
|
id: "workbench.action.tasks.restartTask",
|
|
262
|
-
title: ( localize2(
|
|
262
|
+
title: ( localize2(12707, "Restart Running Task")),
|
|
263
263
|
category: TASKS_CATEGORY
|
|
264
264
|
},
|
|
265
265
|
when: TaskExecutionSupportedContext
|
|
@@ -267,7 +267,7 @@ MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
|
267
267
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
268
268
|
command: {
|
|
269
269
|
id: RerunAllRunningTasksCommandId,
|
|
270
|
-
title: ( localize2(
|
|
270
|
+
title: ( localize2(12708, "Rerun All Running Tasks")),
|
|
271
271
|
category: TASKS_CATEGORY
|
|
272
272
|
},
|
|
273
273
|
when: TaskExecutionSupportedContext
|
|
@@ -275,7 +275,7 @@ MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
|
275
275
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
276
276
|
command: {
|
|
277
277
|
id: "workbench.action.tasks.showTasks",
|
|
278
|
-
title: ( localize2(
|
|
278
|
+
title: ( localize2(12709, "Show Running Tasks")),
|
|
279
279
|
category: TASKS_CATEGORY
|
|
280
280
|
},
|
|
281
281
|
when: TaskExecutionSupportedContext
|
|
@@ -283,7 +283,7 @@ MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
|
283
283
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
284
284
|
command: {
|
|
285
285
|
id: "workbench.action.tasks.terminate",
|
|
286
|
-
title: ( localize2(
|
|
286
|
+
title: ( localize2(12710, "Terminate Task")),
|
|
287
287
|
category: TASKS_CATEGORY
|
|
288
288
|
},
|
|
289
289
|
when: TaskExecutionSupportedContext
|
|
@@ -291,7 +291,7 @@ MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
|
291
291
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
292
292
|
command: {
|
|
293
293
|
id: "workbench.action.tasks.build",
|
|
294
|
-
title: ( localize2(
|
|
294
|
+
title: ( localize2(12711, "Run Build Task")),
|
|
295
295
|
category: TASKS_CATEGORY
|
|
296
296
|
},
|
|
297
297
|
when: TaskExecutionSupportedContext
|
|
@@ -299,7 +299,7 @@ MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
|
299
299
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
300
300
|
command: {
|
|
301
301
|
id: "workbench.action.tasks.test",
|
|
302
|
-
title: ( localize2(
|
|
302
|
+
title: ( localize2(12712, "Run Test Task")),
|
|
303
303
|
category: TASKS_CATEGORY
|
|
304
304
|
},
|
|
305
305
|
when: TaskExecutionSupportedContext
|
|
@@ -307,7 +307,7 @@ MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
|
307
307
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
308
308
|
command: {
|
|
309
309
|
id: "workbench.action.tasks.configureDefaultBuildTask",
|
|
310
|
-
title: ( localize2(
|
|
310
|
+
title: ( localize2(12713, "Configure Default Build Task")),
|
|
311
311
|
category: TASKS_CATEGORY
|
|
312
312
|
},
|
|
313
313
|
when: TaskExecutionSupportedContext
|
|
@@ -315,7 +315,7 @@ MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
|
315
315
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
316
316
|
command: {
|
|
317
317
|
id: "workbench.action.tasks.configureDefaultTestTask",
|
|
318
|
-
title: ( localize2(
|
|
318
|
+
title: ( localize2(12714, "Configure Default Test Task")),
|
|
319
319
|
category: TASKS_CATEGORY
|
|
320
320
|
},
|
|
321
321
|
when: TaskExecutionSupportedContext
|
|
@@ -323,7 +323,7 @@ MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
|
323
323
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
324
324
|
command: {
|
|
325
325
|
id: "workbench.action.tasks.openUserTasks",
|
|
326
|
-
title: ( localize2(
|
|
326
|
+
title: ( localize2(12715, "Open User Tasks")),
|
|
327
327
|
category: TASKS_CATEGORY
|
|
328
328
|
},
|
|
329
329
|
when: TaskExecutionSupportedContext
|
|
@@ -335,7 +335,7 @@ class UserTasksGlobalActionContribution extends Disposable {
|
|
|
335
335
|
}
|
|
336
336
|
registerActions() {
|
|
337
337
|
const id = "workbench.action.tasks.openUserTasks";
|
|
338
|
-
const title = ( localize(
|
|
338
|
+
const title = ( localize(12716, "Tasks"));
|
|
339
339
|
this._register(MenuRegistry.appendMenuItem(MenuId.GlobalActivity, {
|
|
340
340
|
command: {
|
|
341
341
|
id,
|
|
@@ -375,9 +375,9 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
375
375
|
ctor: TasksQuickAccessProvider,
|
|
376
376
|
prefix: TasksQuickAccessProvider.PREFIX,
|
|
377
377
|
contextKey: tasksPickerContextKey,
|
|
378
|
-
placeholder: ( localize(
|
|
378
|
+
placeholder: ( localize(12717, "Type the name of a task to run.")),
|
|
379
379
|
helpEntries: [{
|
|
380
|
-
description: ( localize(
|
|
380
|
+
description: ( localize(12718, "Run Task")),
|
|
381
381
|
commandCenterOrder: 60
|
|
382
382
|
}]
|
|
383
383
|
});
|
|
@@ -434,17 +434,17 @@ const configurationRegistry = ( Registry.as(Extensions$4.Configuration));
|
|
|
434
434
|
configurationRegistry.registerConfiguration({
|
|
435
435
|
id: "task",
|
|
436
436
|
order: 100,
|
|
437
|
-
title: ( localize(
|
|
437
|
+
title: ( localize(12719, "Tasks")),
|
|
438
438
|
type: "object",
|
|
439
439
|
properties: {
|
|
440
440
|
[TaskSettingId.ProblemMatchersNeverPrompt]: {
|
|
441
441
|
markdownDescription: ( localize(
|
|
442
|
-
|
|
442
|
+
12720,
|
|
443
443
|
"Configures whether to show the problem matcher prompt when running a task. Set to `true` to never prompt, or use a dictionary of task types to turn off prompting only for specific task types."
|
|
444
444
|
)),
|
|
445
445
|
"oneOf": [{
|
|
446
446
|
type: "boolean",
|
|
447
|
-
markdownDescription: ( localize(
|
|
447
|
+
markdownDescription: ( localize(12721, "Sets problem matcher prompting behavior for all tasks."))
|
|
448
448
|
}, {
|
|
449
449
|
type: "object",
|
|
450
450
|
patternProperties: {
|
|
@@ -453,7 +453,7 @@ configurationRegistry.registerConfiguration({
|
|
|
453
453
|
}
|
|
454
454
|
},
|
|
455
455
|
markdownDescription: ( localize(
|
|
456
|
-
|
|
456
|
+
12722,
|
|
457
457
|
"An object containing task type-boolean pairs to never prompt for problem matchers on."
|
|
458
458
|
)),
|
|
459
459
|
default: {
|
|
@@ -464,7 +464,7 @@ configurationRegistry.registerConfiguration({
|
|
|
464
464
|
},
|
|
465
465
|
[TaskSettingId.AutoDetect]: {
|
|
466
466
|
markdownDescription: ( localize(
|
|
467
|
-
|
|
467
|
+
12723,
|
|
468
468
|
"Controls enablement of `provideTasks` for all task provider extension. If the Tasks: Run Task command is slow, disabling auto detect for task providers may help. Individual extensions may also provide settings that disable auto detection."
|
|
469
469
|
)),
|
|
470
470
|
type: "string",
|
|
@@ -472,22 +472,22 @@ configurationRegistry.registerConfiguration({
|
|
|
472
472
|
default: "on"
|
|
473
473
|
},
|
|
474
474
|
[TaskSettingId.SlowProviderWarning]: {
|
|
475
|
-
markdownDescription: ( localize(
|
|
475
|
+
markdownDescription: ( localize(12724, "Configures whether a warning is shown when a provider is slow")),
|
|
476
476
|
"oneOf": [{
|
|
477
477
|
type: "boolean",
|
|
478
|
-
markdownDescription: ( localize(
|
|
478
|
+
markdownDescription: ( localize(12725, "Sets the slow provider warning for all tasks."))
|
|
479
479
|
}, {
|
|
480
480
|
type: "array",
|
|
481
481
|
items: {
|
|
482
482
|
type: "string",
|
|
483
|
-
markdownDescription: ( localize(
|
|
483
|
+
markdownDescription: ( localize(12726, "An array of task types to never show the slow provider warning."))
|
|
484
484
|
}
|
|
485
485
|
}],
|
|
486
486
|
default: true
|
|
487
487
|
},
|
|
488
488
|
[TaskSettingId.QuickOpenHistory]: {
|
|
489
489
|
markdownDescription: ( localize(
|
|
490
|
-
|
|
490
|
+
12727,
|
|
491
491
|
"Controls the number of recent items tracked in task quick open dialog."
|
|
492
492
|
)),
|
|
493
493
|
type: "number",
|
|
@@ -497,7 +497,7 @@ configurationRegistry.registerConfiguration({
|
|
|
497
497
|
},
|
|
498
498
|
[TaskSettingId.QuickOpenDetail]: {
|
|
499
499
|
markdownDescription: ( localize(
|
|
500
|
-
|
|
500
|
+
12728,
|
|
501
501
|
"Controls whether to show the task detail for tasks that have a detail in task quick picks, such as Run Task."
|
|
502
502
|
)),
|
|
503
503
|
type: "boolean",
|
|
@@ -506,7 +506,7 @@ configurationRegistry.registerConfiguration({
|
|
|
506
506
|
[TaskSettingId.QuickOpenSkip]: {
|
|
507
507
|
type: "boolean",
|
|
508
508
|
description: ( localize(
|
|
509
|
-
|
|
509
|
+
12729,
|
|
510
510
|
"Controls whether the task quick pick is skipped when there is only one task to pick from."
|
|
511
511
|
)),
|
|
512
512
|
default: false
|
|
@@ -514,7 +514,7 @@ configurationRegistry.registerConfiguration({
|
|
|
514
514
|
[TaskSettingId.QuickOpenShowAll]: {
|
|
515
515
|
type: "boolean",
|
|
516
516
|
description: ( localize(
|
|
517
|
-
|
|
517
|
+
12730,
|
|
518
518
|
"Causes the Tasks: Run Task command to use the slower \"show all\" behavior instead of the faster two level picker where tasks are grouped by provider."
|
|
519
519
|
)),
|
|
520
520
|
default: false
|
|
@@ -522,9 +522,9 @@ configurationRegistry.registerConfiguration({
|
|
|
522
522
|
[TaskSettingId.AllowAutomaticTasks]: {
|
|
523
523
|
type: "string",
|
|
524
524
|
enum: ["on", "off"],
|
|
525
|
-
enumDescriptions: [( localize(
|
|
525
|
+
enumDescriptions: [( localize(12731, "Always")), ( localize(12732, "Never"))],
|
|
526
526
|
description: ( localize(
|
|
527
|
-
|
|
527
|
+
12733,
|
|
528
528
|
"Enable automatic tasks - note that tasks won't run in an untrusted workspace."
|
|
529
529
|
)),
|
|
530
530
|
default: "off",
|
|
@@ -533,20 +533,20 @@ configurationRegistry.registerConfiguration({
|
|
|
533
533
|
},
|
|
534
534
|
[TaskSettingId.Reconnection]: {
|
|
535
535
|
type: "boolean",
|
|
536
|
-
description: ( localize(
|
|
536
|
+
description: ( localize(12734, "On window reload, reconnect to tasks that have problem matchers.")),
|
|
537
537
|
default: true
|
|
538
538
|
},
|
|
539
539
|
[TaskSettingId.SaveBeforeRun]: {
|
|
540
|
-
markdownDescription: ( localize(
|
|
540
|
+
markdownDescription: ( localize(12735, "Save all dirty editors before running a task.")),
|
|
541
541
|
type: "string",
|
|
542
542
|
enum: ["always", "never", "prompt"],
|
|
543
|
-
enumDescriptions: [( localize(
|
|
543
|
+
enumDescriptions: [( localize(12736, "Always saves all editors before running.")), ( localize(12737, "Never saves editors before running.")), ( localize(12738, "Prompts whether to save editors before running."))],
|
|
544
544
|
default: "always"
|
|
545
545
|
},
|
|
546
546
|
[TaskSettingId.NotifyWindowOnTaskCompletion]: {
|
|
547
547
|
type: "integer",
|
|
548
548
|
markdownDescription: ( localize(
|
|
549
|
-
|
|
549
|
+
12739,
|
|
550
550
|
"Controls the minimum task runtime in milliseconds before showing an OS notification when the task finishes while the window is not in focus. Set to -1 to disable notifications. Set to 0 to always show notifications. This includes a window badge as well as notification toast."
|
|
551
551
|
)),
|
|
552
552
|
default: 60000,
|
|
@@ -554,7 +554,7 @@ configurationRegistry.registerConfiguration({
|
|
|
554
554
|
},
|
|
555
555
|
[TaskSettingId.VerboseLogging]: {
|
|
556
556
|
type: "boolean",
|
|
557
|
-
description: ( localize(
|
|
557
|
+
description: ( localize(12740, "Enable verbose logging for tasks.")),
|
|
558
558
|
default: false
|
|
559
559
|
}
|
|
560
560
|
}
|
|
@@ -564,7 +564,7 @@ registerAction2(class extends Action2 {
|
|
|
564
564
|
super({
|
|
565
565
|
id: RerunForActiveTerminalCommandId,
|
|
566
566
|
icon: rerunTaskIcon,
|
|
567
|
-
title: ( localize2(
|
|
567
|
+
title: ( localize2(12741, "Rerun Task")),
|
|
568
568
|
precondition: TASK_TERMINAL_ACTIVE,
|
|
569
569
|
menu: [{
|
|
570
570
|
id: MenuId.TerminalInstanceContext,
|
|
@@ -27,9 +27,9 @@ const QUICKOPEN_SKIP_CONFIG = "task.quickOpen.skip";
|
|
|
27
27
|
function isWorkspaceFolder(folder) {
|
|
28
28
|
return "uri" in folder;
|
|
29
29
|
}
|
|
30
|
-
const SHOW_ALL = ( localize(
|
|
31
|
-
const configureTaskIcon = registerIcon("tasks-list-configure", Codicon.gear, ( localize(
|
|
32
|
-
const removeTaskIcon = registerIcon("tasks-remove", Codicon.close, ( localize(
|
|
30
|
+
const SHOW_ALL = ( localize(12742, "Show All Tasks..."));
|
|
31
|
+
const configureTaskIcon = registerIcon("tasks-list-configure", Codicon.gear, ( localize(12743, "Configuration icon in the tasks selection list.")));
|
|
32
|
+
const removeTaskIcon = registerIcon("tasks-remove", Codicon.close, ( localize(12744, "Icon for remove in the tasks selection list.")));
|
|
33
33
|
const runTaskStorageKey = "runTaskStorageKey";
|
|
34
34
|
let TaskQuickPick = TaskQuickPick_1 = class TaskQuickPick extends Disposable {
|
|
35
35
|
constructor(
|
|
@@ -88,7 +88,7 @@ let TaskQuickPick = TaskQuickPick_1 = class TaskQuickPick extends Disposable {
|
|
|
88
88
|
_createTaskEntry(task, extraButtons = []) {
|
|
89
89
|
const buttons = [{
|
|
90
90
|
iconClass: ThemeIcon.asClassName(configureTaskIcon),
|
|
91
|
-
tooltip: ( localize(
|
|
91
|
+
tooltip: ( localize(12745, "Configure Task"))
|
|
92
92
|
}, ...extraButtons];
|
|
93
93
|
const entry = {
|
|
94
94
|
label: TaskQuickPick_1.getTaskLabelWithIcon(task, this._guessTaskLabel(task)),
|
|
@@ -117,13 +117,13 @@ let TaskQuickPick = TaskQuickPick_1 = class TaskQuickPick extends Disposable {
|
|
|
117
117
|
_createTypeEntries(entries, types) {
|
|
118
118
|
entries.push({
|
|
119
119
|
type: "separator",
|
|
120
|
-
label: ( localize(
|
|
120
|
+
label: ( localize(12746, "contributed"))
|
|
121
121
|
});
|
|
122
122
|
types.forEach(type => {
|
|
123
123
|
entries.push({
|
|
124
124
|
label: `$(folder) ${type}`,
|
|
125
125
|
task: type,
|
|
126
|
-
ariaLabel: ( localize(
|
|
126
|
+
ariaLabel: ( localize(12747, "All {0} tasks", type))
|
|
127
127
|
});
|
|
128
128
|
});
|
|
129
129
|
entries.push({
|
|
@@ -193,19 +193,19 @@ let TaskQuickPick = TaskQuickPick_1 = class TaskQuickPick extends Disposable {
|
|
|
193
193
|
if (recentTasks.length > 0) {
|
|
194
194
|
const removeRecentButton = {
|
|
195
195
|
iconClass: ThemeIcon.asClassName(removeTaskIcon),
|
|
196
|
-
tooltip: ( localize(
|
|
196
|
+
tooltip: ( localize(12748, "Remove Recently Used Task"))
|
|
197
197
|
};
|
|
198
|
-
this._createEntriesForGroup(this._topLevelEntries, recentTasks, ( localize(
|
|
198
|
+
this._createEntriesForGroup(this._topLevelEntries, recentTasks, ( localize(12749, "recently used")), [removeRecentButton]);
|
|
199
199
|
}
|
|
200
200
|
if (configuredTasks.length > 0) {
|
|
201
201
|
if (dedupedConfiguredTasks.length > 0) {
|
|
202
|
-
this._createEntriesForGroup(this._topLevelEntries, dedupedConfiguredTasks, ( localize(
|
|
202
|
+
this._createEntriesForGroup(this._topLevelEntries, dedupedConfiguredTasks, ( localize(12750, "configured")));
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
if (defaultEntry && (configuredTasks.length === 0)) {
|
|
206
206
|
this._topLevelEntries.push({
|
|
207
207
|
type: "separator",
|
|
208
|
-
label: ( localize(
|
|
208
|
+
label: ( localize(12750, "configured"))
|
|
209
209
|
});
|
|
210
210
|
this._topLevelEntries.push(defaultEntry);
|
|
211
211
|
}
|
|
@@ -223,16 +223,16 @@ let TaskQuickPick = TaskQuickPick_1 = class TaskQuickPick extends Disposable {
|
|
|
223
223
|
} = await this._dialogService.confirm({
|
|
224
224
|
type: Severity.Warning,
|
|
225
225
|
message: ( localize(
|
|
226
|
-
|
|
226
|
+
12751,
|
|
227
227
|
"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?",
|
|
228
228
|
selectedType
|
|
229
229
|
)),
|
|
230
|
-
cancelButton: ( localize(
|
|
230
|
+
cancelButton: ( localize(12752, "No"))
|
|
231
231
|
});
|
|
232
232
|
if (confirmed) {
|
|
233
233
|
await this._configurationService.updateValue(`${selectedType}.autoDetect`, "on");
|
|
234
234
|
await ( new Promise(resolve => setTimeout(() => resolve(), 100)));
|
|
235
|
-
return this.show(( localize(
|
|
235
|
+
return this.show(( localize(12753, "Select the task to run")), undefined, selectedType);
|
|
236
236
|
}
|
|
237
237
|
return undefined;
|
|
238
238
|
}
|
|
@@ -363,7 +363,7 @@ let TaskQuickPick = TaskQuickPick_1 = class TaskQuickPick extends Disposable {
|
|
|
363
363
|
if (configurationService.getValue(`${type}.autoDetect`) === "off") {
|
|
364
364
|
return {
|
|
365
365
|
label: ( localize(
|
|
366
|
-
|
|
366
|
+
12754,
|
|
367
367
|
"$(gear) {0} task detection is turned off. Enable {1} task detection...",
|
|
368
368
|
type[0].toUpperCase() + type.slice(1),
|
|
369
369
|
type
|
|
@@ -389,13 +389,13 @@ let TaskQuickPick = TaskQuickPick_1 = class TaskQuickPick extends Disposable {
|
|
|
389
389
|
taskQuickPickEntries.push({
|
|
390
390
|
type: "separator"
|
|
391
391
|
}, {
|
|
392
|
-
label: ( localize(
|
|
392
|
+
label: ( localize(12755, "Go back ↩")),
|
|
393
393
|
task: null,
|
|
394
394
|
alwaysShow: true
|
|
395
395
|
});
|
|
396
396
|
} else {
|
|
397
397
|
taskQuickPickEntries = [{
|
|
398
|
-
label: ( localize(
|
|
398
|
+
label: ( localize(12756, "No {0} tasks found. Go back ↩", type)),
|
|
399
399
|
task: null,
|
|
400
400
|
alwaysShow: true
|
|
401
401
|
}];
|
|
@@ -413,7 +413,7 @@ let TaskQuickPick = TaskQuickPick_1 = class TaskQuickPick extends Disposable {
|
|
|
413
413
|
const resolvedTask = await this._taskService.tryResolveTask(task);
|
|
414
414
|
if (!resolvedTask) {
|
|
415
415
|
this._notificationService.error(( localize(
|
|
416
|
-
|
|
416
|
+
12757,
|
|
417
417
|
"There is no task provider registered for tasks of type \"{0}\".",
|
|
418
418
|
task.type
|
|
419
419
|
)));
|
|
@@ -7,7 +7,7 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/ext
|
|
|
7
7
|
|
|
8
8
|
class TaskService extends AbstractTaskService {
|
|
9
9
|
static {
|
|
10
|
-
this.ProcessTaskSystemSupportMessage = ( localize(
|
|
10
|
+
this.ProcessTaskSystemSupportMessage = ( localize(12758, "Process task system is not support in the web."));
|
|
11
11
|
}
|
|
12
12
|
_getTaskSystem() {
|
|
13
13
|
if (this._taskSystem) {
|
|
@@ -17,55 +17,55 @@ const ACTIVE_TASK_STATUS = {
|
|
|
17
17
|
id: TASK_TERMINAL_STATUS_ID,
|
|
18
18
|
icon: spinningLoading,
|
|
19
19
|
severity: Severity.Info,
|
|
20
|
-
tooltip: ( localize(
|
|
20
|
+
tooltip: ( localize(12759, "Task is running"))
|
|
21
21
|
};
|
|
22
22
|
const SUCCEEDED_TASK_STATUS = {
|
|
23
23
|
id: TASK_TERMINAL_STATUS_ID,
|
|
24
24
|
icon: Codicon.check,
|
|
25
25
|
severity: Severity.Info,
|
|
26
|
-
tooltip: ( localize(
|
|
26
|
+
tooltip: ( localize(12760, "Task succeeded"))
|
|
27
27
|
};
|
|
28
28
|
const SUCCEEDED_INACTIVE_TASK_STATUS = {
|
|
29
29
|
id: TASK_TERMINAL_STATUS_ID,
|
|
30
30
|
icon: Codicon.check,
|
|
31
31
|
severity: Severity.Info,
|
|
32
|
-
tooltip: ( localize(
|
|
32
|
+
tooltip: ( localize(12761, "Task succeeded and waiting..."))
|
|
33
33
|
};
|
|
34
34
|
const FAILED_TASK_STATUS = {
|
|
35
35
|
id: TASK_TERMINAL_STATUS_ID,
|
|
36
36
|
icon: Codicon.error,
|
|
37
37
|
severity: Severity.Error,
|
|
38
|
-
tooltip: ( localize(
|
|
38
|
+
tooltip: ( localize(12762, "Task has errors"))
|
|
39
39
|
};
|
|
40
40
|
const FAILED_INACTIVE_TASK_STATUS = {
|
|
41
41
|
id: TASK_TERMINAL_STATUS_ID,
|
|
42
42
|
icon: Codicon.error,
|
|
43
43
|
severity: Severity.Error,
|
|
44
|
-
tooltip: ( localize(
|
|
44
|
+
tooltip: ( localize(12763, "Task has errors and is waiting..."))
|
|
45
45
|
};
|
|
46
46
|
const WARNING_TASK_STATUS = {
|
|
47
47
|
id: TASK_TERMINAL_STATUS_ID,
|
|
48
48
|
icon: Codicon.warning,
|
|
49
49
|
severity: Severity.Warning,
|
|
50
|
-
tooltip: ( localize(
|
|
50
|
+
tooltip: ( localize(12764, "Task has warnings"))
|
|
51
51
|
};
|
|
52
52
|
const WARNING_INACTIVE_TASK_STATUS = {
|
|
53
53
|
id: TASK_TERMINAL_STATUS_ID,
|
|
54
54
|
icon: Codicon.warning,
|
|
55
55
|
severity: Severity.Warning,
|
|
56
|
-
tooltip: ( localize(
|
|
56
|
+
tooltip: ( localize(12765, "Task has warnings and is waiting..."))
|
|
57
57
|
};
|
|
58
58
|
const INFO_TASK_STATUS = {
|
|
59
59
|
id: TASK_TERMINAL_STATUS_ID,
|
|
60
60
|
icon: Codicon.info,
|
|
61
61
|
severity: Severity.Info,
|
|
62
|
-
tooltip: ( localize(
|
|
62
|
+
tooltip: ( localize(12766, "Task has infos"))
|
|
63
63
|
};
|
|
64
64
|
const INFO_INACTIVE_TASK_STATUS = {
|
|
65
65
|
id: TASK_TERMINAL_STATUS_ID,
|
|
66
66
|
icon: Codicon.info,
|
|
67
67
|
severity: Severity.Info,
|
|
68
|
-
tooltip: ( localize(
|
|
68
|
+
tooltip: ( localize(12767, "Task has infos and is waiting..."))
|
|
69
69
|
};
|
|
70
70
|
let TaskTerminalStatus = class TaskTerminalStatus extends Disposable {
|
|
71
71
|
constructor(taskService, _accessibilitySignalService) {
|
|
@@ -104,7 +104,7 @@ let TaskTerminalStatus = class TaskTerminalStatus extends Disposable {
|
|
|
104
104
|
if (this._marker) {
|
|
105
105
|
terminal.addBufferMarker({
|
|
106
106
|
marker: this._marker,
|
|
107
|
-
hoverMessage: ( localize(
|
|
107
|
+
hoverMessage: ( localize(12768, "Beginning of detected errors for this run")),
|
|
108
108
|
disableCommandStorage: true
|
|
109
109
|
});
|
|
110
110
|
}
|
|
@@ -128,7 +128,7 @@ let TaskTerminalStatus = class TaskTerminalStatus extends Disposable {
|
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
terminalFromEvent(event) {
|
|
131
|
-
if (!("terminalId"
|
|
131
|
+
if (!Object.hasOwn(event, "terminalId") || !event.terminalId) {
|
|
132
132
|
return undefined;
|
|
133
133
|
}
|
|
134
134
|
return this.terminalMap.get(event.terminalId);
|
|
@@ -35,7 +35,7 @@ let TasksQuickAccessProvider = class TasksQuickAccessProvider extends PickerQuic
|
|
|
35
35
|
) {
|
|
36
36
|
super(TasksQuickAccessProvider_1.PREFIX, {
|
|
37
37
|
noResultsPick: {
|
|
38
|
-
label: ( localize(
|
|
38
|
+
label: ( localize(12769, "No matching tasks"))
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
this._taskService = _taskService;
|
|
@@ -92,7 +92,7 @@ let TasksQuickAccessProvider = class TasksQuickAccessProvider extends PickerQuic
|
|
|
92
92
|
};
|
|
93
93
|
quickAccessEntry.accept = async () => {
|
|
94
94
|
if (isString(task)) {
|
|
95
|
-
const showResult = await taskQuickPick.show(( localize(
|
|
95
|
+
const showResult = await taskQuickPick.show(( localize(12770, "Select the task to run")), undefined, task);
|
|
96
96
|
if (showResult) {
|
|
97
97
|
this._taskService.run(showResult, {
|
|
98
98
|
attachProblemMatcher: true
|