@codingame/monaco-vscode-task-service-override 6.0.2 → 7.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-task-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@7.0.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -3092,7 +3092,7 @@ let AbstractTaskService = class AbstractTaskService extends Disposable {
|
|
|
3092
3092
|
let configFileCreated = false;
|
|
3093
3093
|
this._fileService.stat(resource).then((stat) => stat, () => undefined).then(async (stat) => {
|
|
3094
3094
|
const fileExists = !!stat;
|
|
3095
|
-
const configValue = this._configurationService.inspect('tasks');
|
|
3095
|
+
const configValue = this._configurationService.inspect('tasks', { resource });
|
|
3096
3096
|
let tasksExistInFile;
|
|
3097
3097
|
let target;
|
|
3098
3098
|
switch (taskSource) {
|
|
@@ -14,7 +14,7 @@ import { Extensions as Extensions$1 } from 'vscode/vscode/vs/workbench/services/
|
|
|
14
14
|
import { TASKS_CATEGORY, TaskEventKind, TaskGroup, TASK_RUNNING_STATE, TaskSettingId } from 'vscode/vscode/vs/workbench/contrib/tasks/common/tasks';
|
|
15
15
|
import { TaskExecutionSupportedContext, TaskCommandsRegistered } from 'vscode/vscode/vs/workbench/contrib/tasks/common/taskService';
|
|
16
16
|
import { ITaskService } from 'vscode/vscode/vs/workbench/contrib/tasks/common/taskService.service';
|
|
17
|
-
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
17
|
+
import { Extensions, registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
18
18
|
import { RunAutomaticTasks, ManageAutomaticTaskRunning } from './runAutomaticTasks.js';
|
|
19
19
|
import { KeybindingsRegistry, KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
20
20
|
import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
@@ -91,7 +91,7 @@ let TaskStatusBarContributions = class TaskStatusBarContributions extends Dispos
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
if (promise && (event.kind === TaskEventKind.Active) && (this._activeTasksCount === 1)) {
|
|
94
|
-
this._progressService.withProgress({ location: ProgressLocation.Window, command: 'workbench.action.tasks.showTasks'
|
|
94
|
+
this._progressService.withProgress({ location: ProgressLocation.Window, command: 'workbench.action.tasks.showTasks' }, progress => {
|
|
95
95
|
progress.report({ message: ( localizeWithPath(_moduleId, 0, 'Building...')) });
|
|
96
96
|
return promise;
|
|
97
97
|
}).then(() => {
|
|
@@ -387,14 +387,21 @@ schema.definitions = {
|
|
|
387
387
|
schema.oneOf = [...(schema$2.oneOf || []), ...(schema$1.oneOf || [])];
|
|
388
388
|
const jsonRegistry = ( (Registry.as(Extensions$3.JSONContribution)));
|
|
389
389
|
jsonRegistry.registerSchema(tasksSchemaId, schema);
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
});
|
|
390
|
+
class TaskRegistryContribution extends Disposable {
|
|
391
|
+
static { this.ID = 'taskRegistryContribution'; }
|
|
392
|
+
constructor() {
|
|
393
|
+
super();
|
|
394
|
+
this._register(ProblemMatcherRegistry.onMatcherChanged(() => {
|
|
395
|
+
updateProblemMatchers();
|
|
396
|
+
jsonRegistry.notifySchemaChanged(tasksSchemaId);
|
|
397
|
+
}));
|
|
398
|
+
this._register(TaskDefinitionRegistry.onDefinitionsChanged(() => {
|
|
399
|
+
updateTaskDefinitions();
|
|
400
|
+
jsonRegistry.notifySchemaChanged(tasksSchemaId);
|
|
401
|
+
}));
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
registerWorkbenchContribution2(TaskRegistryContribution.ID, TaskRegistryContribution, WorkbenchPhase.AfterRestored);
|
|
398
405
|
const configurationRegistry = ( (Registry.as(Extensions$4.Configuration)));
|
|
399
406
|
configurationRegistry.registerConfiguration({
|
|
400
407
|
id: 'task',
|
|
@@ -546,4 +553,4 @@ configurationRegistry.registerConfiguration({
|
|
|
546
553
|
}
|
|
547
554
|
});
|
|
548
555
|
|
|
549
|
-
export { TaskStatusBarContributions };
|
|
556
|
+
export { TaskRegistryContribution, TaskStatusBarContributions };
|