@codingame/monaco-vscode-task-service-override 3.2.2 → 4.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/override/vs/platform/dialogs/common/dialogs.js +2 -0
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/tasks/browser/abstractTaskService.js +17 -13
- package/vscode/src/vs/workbench/contrib/tasks/browser/task.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/tasks/browser/taskService.js +2 -0
- package/vscode/src/vs/workbench/contrib/tasks/browser/taskTerminalStatus.js +11 -11
- package/vscode/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchemaCommon.js +1 -2
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v1.js +2 -2
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v2.js +2 -2
- package/vscode/src/vs/workbench/contrib/tasks/common/problemCollectors.js +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.js +14 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-task-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@4.0.0"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -9,7 +9,7 @@ import { deepClone } from 'vscode/vscode/vs/base/common/objects';
|
|
|
9
9
|
import { ValidationStatus } from '../../../../base/common/parsers.js';
|
|
10
10
|
import { isWeb, platform } from 'vscode/vscode/vs/base/common/platform';
|
|
11
11
|
import { basename, joinPath, dirname, relativePath } from 'vscode/vscode/vs/base/common/resources';
|
|
12
|
-
import Severity from 'vscode/vscode/vs/base/common/severity';
|
|
12
|
+
import Severity$1 from 'vscode/vscode/vs/base/common/severity';
|
|
13
13
|
import { isString, isBoolean, isStringArray } from 'vscode/vscode/vs/base/common/types';
|
|
14
14
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
15
15
|
import { generateUuid } from 'vscode/vscode/vs/base/common/uuid';
|
|
@@ -595,7 +595,7 @@ let AbstractTaskService = class AbstractTaskService extends Disposable {
|
|
|
595
595
|
this._outputService.showChannel(this._outputChannel.id, true);
|
|
596
596
|
}
|
|
597
597
|
else {
|
|
598
|
-
this._notificationService.prompt(Severity.Warning, ( localizeWithPath(
|
|
598
|
+
this._notificationService.prompt(Severity$1.Warning, ( localizeWithPath(
|
|
599
599
|
'vs/workbench/contrib/tasks/browser/abstractTaskService',
|
|
600
600
|
'taskServiceOutputPrompt',
|
|
601
601
|
'There are task errors. See the output for details.'
|
|
@@ -1181,18 +1181,18 @@ let AbstractTaskService = class AbstractTaskService extends Disposable {
|
|
|
1181
1181
|
if (!runnable || !runnable.task) {
|
|
1182
1182
|
if (test) {
|
|
1183
1183
|
if (this.schemaVersion === 1 ) {
|
|
1184
|
-
throw new TaskError(Severity.Info, localizeWithPath('vs/workbench/contrib/tasks/browser/abstractTaskService', 'TaskService.noTestTask1', 'No test task defined. Mark a task with \'isTestCommand\' in the tasks.json file.'), 3 );
|
|
1184
|
+
throw new TaskError(Severity$1.Info, localizeWithPath('vs/workbench/contrib/tasks/browser/abstractTaskService', 'TaskService.noTestTask1', 'No test task defined. Mark a task with \'isTestCommand\' in the tasks.json file.'), 3 );
|
|
1185
1185
|
}
|
|
1186
1186
|
else {
|
|
1187
|
-
throw new TaskError(Severity.Info, localizeWithPath('vs/workbench/contrib/tasks/browser/abstractTaskService', 'TaskService.noTestTask2', 'No test task defined. Mark a task with as a \'test\' group in the tasks.json file.'), 3 );
|
|
1187
|
+
throw new TaskError(Severity$1.Info, localizeWithPath('vs/workbench/contrib/tasks/browser/abstractTaskService', 'TaskService.noTestTask2', 'No test task defined. Mark a task with as a \'test\' group in the tasks.json file.'), 3 );
|
|
1188
1188
|
}
|
|
1189
1189
|
}
|
|
1190
1190
|
else {
|
|
1191
1191
|
if (this.schemaVersion === 1 ) {
|
|
1192
|
-
throw new TaskError(Severity.Info, localizeWithPath('vs/workbench/contrib/tasks/browser/abstractTaskService', 'TaskService.noBuildTask1', 'No build task defined. Mark a task with \'isBuildCommand\' in the tasks.json file.'), 2 );
|
|
1192
|
+
throw new TaskError(Severity$1.Info, localizeWithPath('vs/workbench/contrib/tasks/browser/abstractTaskService', 'TaskService.noBuildTask1', 'No build task defined. Mark a task with \'isBuildCommand\' in the tasks.json file.'), 2 );
|
|
1193
1193
|
}
|
|
1194
1194
|
else {
|
|
1195
|
-
throw new TaskError(Severity.Info, localizeWithPath('vs/workbench/contrib/tasks/browser/abstractTaskService', 'TaskService.noBuildTask2', 'No build task defined. Mark a task with as a \'build\' group in the tasks.json file.'), 2 );
|
|
1195
|
+
throw new TaskError(Severity$1.Info, localizeWithPath('vs/workbench/contrib/tasks/browser/abstractTaskService', 'TaskService.noBuildTask2', 'No build task defined. Mark a task with as a \'build\' group in the tasks.json file.'), 2 );
|
|
1196
1196
|
}
|
|
1197
1197
|
}
|
|
1198
1198
|
}
|
|
@@ -1211,7 +1211,7 @@ let AbstractTaskService = class AbstractTaskService extends Disposable {
|
|
|
1211
1211
|
return;
|
|
1212
1212
|
}
|
|
1213
1213
|
if (!task) {
|
|
1214
|
-
throw new TaskError(Severity.Info, localizeWithPath('vs/workbench/contrib/tasks/browser/abstractTaskService', 'TaskServer.noTask', 'Task to execute is undefined'), 5 );
|
|
1214
|
+
throw new TaskError(Severity$1.Info, localizeWithPath('vs/workbench/contrib/tasks/browser/abstractTaskService', 'TaskServer.noTask', 'Task to execute is undefined'), 5 );
|
|
1215
1215
|
}
|
|
1216
1216
|
const resolver = this._createResolver();
|
|
1217
1217
|
let executeTaskResult;
|
|
@@ -1847,8 +1847,8 @@ let AbstractTaskService = class AbstractTaskService extends Disposable {
|
|
|
1847
1847
|
)),
|
|
1848
1848
|
cancelButton: ( localizeWithPath(
|
|
1849
1849
|
'vs/workbench/contrib/tasks/browser/abstractTaskService',
|
|
1850
|
-
'saveBeforeRun.dontSave',
|
|
1851
|
-
'
|
|
1850
|
+
{ key: 'saveBeforeRun.dontSave', comment: ['&& denotes a mnemonic'] },
|
|
1851
|
+
"Do&&n't Save"
|
|
1852
1852
|
)),
|
|
1853
1853
|
});
|
|
1854
1854
|
if (!confirmed) {
|
|
@@ -1895,7 +1895,7 @@ let AbstractTaskService = class AbstractTaskService extends Disposable {
|
|
|
1895
1895
|
executeResult.task.getQualifiedLabel()
|
|
1896
1896
|
));
|
|
1897
1897
|
const lastInstance = this._getTaskSystem().getLastInstance(executeResult.task) ?? executeResult.task;
|
|
1898
|
-
this._notificationService.prompt(Severity.Warning, message, [{
|
|
1898
|
+
this._notificationService.prompt(Severity$1.Warning, message, [{
|
|
1899
1899
|
label: ( localizeWithPath(
|
|
1900
1900
|
'vs/workbench/contrib/tasks/browser/abstractTaskService',
|
|
1901
1901
|
'terminateTask',
|
|
@@ -1917,7 +1917,7 @@ let AbstractTaskService = class AbstractTaskService extends Disposable {
|
|
|
1917
1917
|
}
|
|
1918
1918
|
}
|
|
1919
1919
|
else {
|
|
1920
|
-
throw new TaskError(Severity.Warning, localizeWithPath('vs/workbench/contrib/tasks/browser/abstractTaskService', 'TaskSystem.active', 'There is already a task running. Terminate it first before executing another task.'), 1 );
|
|
1920
|
+
throw new TaskError(Severity$1.Warning, localizeWithPath('vs/workbench/contrib/tasks/browser/abstractTaskService', 'TaskSystem.active', 'There is already a task running. Terminate it first before executing another task.'), 1 );
|
|
1921
1921
|
}
|
|
1922
1922
|
}
|
|
1923
1923
|
this._setRecentlyUsedTask(executeResult.task);
|
|
@@ -2428,6 +2428,10 @@ let AbstractTaskService = class AbstractTaskService extends Disposable {
|
|
|
2428
2428
|
if (!config) {
|
|
2429
2429
|
return false;
|
|
2430
2430
|
}
|
|
2431
|
+
else if (!workspaceFolder) {
|
|
2432
|
+
this._logService.trace('TaskService.computeTasksForSingleConfig: no workspace folder for worskspace', this._workspace?.id);
|
|
2433
|
+
return false;
|
|
2434
|
+
}
|
|
2431
2435
|
const taskSystemInfo = this._getTaskSystemInfo(workspaceFolder.uri.scheme);
|
|
2432
2436
|
const problemReporter = ( new ProblemReporter(this._outputChannel));
|
|
2433
2437
|
const parseResult = parse(workspaceFolder, this._workspace, taskSystemInfo ? taskSystemInfo.platform : platform, config, problemReporter, source, this._contextKeyService, isRecentTask);
|
|
@@ -2812,7 +2816,7 @@ let AbstractTaskService = class AbstractTaskService extends Disposable {
|
|
|
2812
2816
|
if (this.ignoredWorkspaceFolders.length === 0 || !this.showIgnoreMessage) {
|
|
2813
2817
|
return Promise.resolve(undefined);
|
|
2814
2818
|
}
|
|
2815
|
-
this._notificationService.prompt(Severity.Info, ( localizeWithPath(
|
|
2819
|
+
this._notificationService.prompt(Severity$1.Info, ( localizeWithPath(
|
|
2816
2820
|
'vs/workbench/contrib/tasks/browser/abstractTaskService',
|
|
2817
2821
|
'TaskService.ignoredFolder',
|
|
2818
2822
|
'The following workspace folders are ignored since they use task version 0.1.0: {0}',
|
|
@@ -3782,7 +3786,7 @@ let AbstractTaskService = class AbstractTaskService extends Disposable {
|
|
|
3782
3786
|
}
|
|
3783
3787
|
}
|
|
3784
3788
|
this._updateSetup();
|
|
3785
|
-
this._notificationService.prompt(Severity.Warning, fileDiffs.length === 1 ?
|
|
3789
|
+
this._notificationService.prompt(Severity$1.Warning, fileDiffs.length === 1 ?
|
|
3786
3790
|
( localizeWithPath(
|
|
3787
3791
|
'vs/workbench/contrib/tasks/browser/abstractTaskService',
|
|
3788
3792
|
'taskService.upgradeVersion',
|
|
@@ -151,7 +151,7 @@ TaskStatusBarContributions = ( __decorate([
|
|
|
151
151
|
], TaskStatusBarContributions));
|
|
152
152
|
workbenchRegistry.registerWorkbenchContribution(TaskStatusBarContributions, 3 );
|
|
153
153
|
MenuRegistry.appendMenuItem(MenuId.MenubarTerminalMenu, {
|
|
154
|
-
group: "
|
|
154
|
+
group: "3_run" ,
|
|
155
155
|
command: {
|
|
156
156
|
id: 'workbench.action.tasks.runTask',
|
|
157
157
|
title: ( localizeWithPath(
|
|
@@ -164,7 +164,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarTerminalMenu, {
|
|
|
164
164
|
when: TaskExecutionSupportedContext
|
|
165
165
|
});
|
|
166
166
|
MenuRegistry.appendMenuItem(MenuId.MenubarTerminalMenu, {
|
|
167
|
-
group: "
|
|
167
|
+
group: "3_run" ,
|
|
168
168
|
command: {
|
|
169
169
|
id: 'workbench.action.tasks.build',
|
|
170
170
|
title: ( localizeWithPath(
|
|
@@ -177,7 +177,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarTerminalMenu, {
|
|
|
177
177
|
when: TaskExecutionSupportedContext
|
|
178
178
|
});
|
|
179
179
|
MenuRegistry.appendMenuItem(MenuId.MenubarTerminalMenu, {
|
|
180
|
-
group: "
|
|
180
|
+
group: "5_manage" ,
|
|
181
181
|
command: {
|
|
182
182
|
precondition: TASK_RUNNING_STATE,
|
|
183
183
|
id: 'workbench.action.tasks.showTasks',
|
|
@@ -191,7 +191,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarTerminalMenu, {
|
|
|
191
191
|
when: TaskExecutionSupportedContext
|
|
192
192
|
});
|
|
193
193
|
MenuRegistry.appendMenuItem(MenuId.MenubarTerminalMenu, {
|
|
194
|
-
group: "
|
|
194
|
+
group: "5_manage" ,
|
|
195
195
|
command: {
|
|
196
196
|
precondition: TASK_RUNNING_STATE,
|
|
197
197
|
id: 'workbench.action.tasks.restartTask',
|
|
@@ -205,7 +205,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarTerminalMenu, {
|
|
|
205
205
|
when: TaskExecutionSupportedContext
|
|
206
206
|
});
|
|
207
207
|
MenuRegistry.appendMenuItem(MenuId.MenubarTerminalMenu, {
|
|
208
|
-
group: "
|
|
208
|
+
group: "5_manage" ,
|
|
209
209
|
command: {
|
|
210
210
|
precondition: TASK_RUNNING_STATE,
|
|
211
211
|
id: 'workbench.action.tasks.terminate',
|
|
@@ -219,7 +219,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarTerminalMenu, {
|
|
|
219
219
|
when: TaskExecutionSupportedContext
|
|
220
220
|
});
|
|
221
221
|
MenuRegistry.appendMenuItem(MenuId.MenubarTerminalMenu, {
|
|
222
|
-
group: "
|
|
222
|
+
group: "7_configure" ,
|
|
223
223
|
command: {
|
|
224
224
|
id: 'workbench.action.tasks.configureTaskRunner',
|
|
225
225
|
title: ( localizeWithPath(
|
|
@@ -232,7 +232,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarTerminalMenu, {
|
|
|
232
232
|
when: TaskExecutionSupportedContext
|
|
233
233
|
});
|
|
234
234
|
MenuRegistry.appendMenuItem(MenuId.MenubarTerminalMenu, {
|
|
235
|
-
group: "
|
|
235
|
+
group: "7_configure" ,
|
|
236
236
|
command: {
|
|
237
237
|
id: 'workbench.action.tasks.configureDefaultBuildTask',
|
|
238
238
|
title: ( localizeWithPath(
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
2
2
|
import { ExecutionEngine } from 'vscode/vscode/vs/workbench/contrib/tasks/common/tasks';
|
|
3
3
|
import { AbstractTaskService } from './abstractTaskService.js';
|
|
4
|
+
import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
5
|
+
import 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
4
6
|
|
|
5
7
|
class TaskService extends AbstractTaskService {
|
|
6
8
|
static { this.ProcessTaskSystemSupportMessage = ( localizeWithPath(
|
|
@@ -2,7 +2,7 @@ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.e
|
|
|
2
2
|
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
4
4
|
import { Disposable, toDisposable, MutableDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
-
import Severity from 'vscode/vscode/vs/base/common/severity';
|
|
5
|
+
import Severity$1 from 'vscode/vscode/vs/base/common/severity';
|
|
6
6
|
import { StartStopProblemCollector } from '../common/problemCollectors.js';
|
|
7
7
|
import { ITaskService } from 'vscode/vscode/vs/workbench/contrib/tasks/common/taskService';
|
|
8
8
|
import { MarkerSeverity } from 'vscode/vscode/vs/platform/markers/common/markers';
|
|
@@ -10,47 +10,47 @@ import { spinningLoading } from 'vscode/vscode/vs/platform/theme/common/iconRegi
|
|
|
10
10
|
import { AccessibilitySignal, IAccessibilitySignalService } from 'vscode/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService';
|
|
11
11
|
|
|
12
12
|
const TASK_TERMINAL_STATUS_ID = 'task_terminal_status';
|
|
13
|
-
const ACTIVE_TASK_STATUS = { id: TASK_TERMINAL_STATUS_ID, icon: spinningLoading, severity: Severity.Info, tooltip: ( localizeWithPath(
|
|
13
|
+
const ACTIVE_TASK_STATUS = { id: TASK_TERMINAL_STATUS_ID, icon: spinningLoading, severity: Severity$1.Info, tooltip: ( localizeWithPath(
|
|
14
14
|
'vs/workbench/contrib/tasks/browser/taskTerminalStatus',
|
|
15
15
|
'taskTerminalStatus.active',
|
|
16
16
|
"Task is running"
|
|
17
17
|
)) };
|
|
18
|
-
const SUCCEEDED_TASK_STATUS = { id: TASK_TERMINAL_STATUS_ID, icon: Codicon.check, severity: Severity.Info, tooltip: ( localizeWithPath(
|
|
18
|
+
const SUCCEEDED_TASK_STATUS = { id: TASK_TERMINAL_STATUS_ID, icon: Codicon.check, severity: Severity$1.Info, tooltip: ( localizeWithPath(
|
|
19
19
|
'vs/workbench/contrib/tasks/browser/taskTerminalStatus',
|
|
20
20
|
'taskTerminalStatus.succeeded',
|
|
21
21
|
"Task succeeded"
|
|
22
22
|
)) };
|
|
23
|
-
const SUCCEEDED_INACTIVE_TASK_STATUS = { id: TASK_TERMINAL_STATUS_ID, icon: Codicon.check, severity: Severity.Info, tooltip: ( localizeWithPath(
|
|
23
|
+
const SUCCEEDED_INACTIVE_TASK_STATUS = { id: TASK_TERMINAL_STATUS_ID, icon: Codicon.check, severity: Severity$1.Info, tooltip: ( localizeWithPath(
|
|
24
24
|
'vs/workbench/contrib/tasks/browser/taskTerminalStatus',
|
|
25
25
|
'taskTerminalStatus.succeededInactive',
|
|
26
26
|
"Task succeeded and waiting..."
|
|
27
27
|
)) };
|
|
28
|
-
const FAILED_TASK_STATUS = { id: TASK_TERMINAL_STATUS_ID, icon: Codicon.error, severity: Severity.Error, tooltip: ( localizeWithPath(
|
|
28
|
+
const FAILED_TASK_STATUS = { id: TASK_TERMINAL_STATUS_ID, icon: Codicon.error, severity: Severity$1.Error, tooltip: ( localizeWithPath(
|
|
29
29
|
'vs/workbench/contrib/tasks/browser/taskTerminalStatus',
|
|
30
30
|
'taskTerminalStatus.errors',
|
|
31
31
|
"Task has errors"
|
|
32
32
|
)) };
|
|
33
|
-
const FAILED_INACTIVE_TASK_STATUS = { id: TASK_TERMINAL_STATUS_ID, icon: Codicon.error, severity: Severity.Error, tooltip: ( localizeWithPath(
|
|
33
|
+
const FAILED_INACTIVE_TASK_STATUS = { id: TASK_TERMINAL_STATUS_ID, icon: Codicon.error, severity: Severity$1.Error, tooltip: ( localizeWithPath(
|
|
34
34
|
'vs/workbench/contrib/tasks/browser/taskTerminalStatus',
|
|
35
35
|
'taskTerminalStatus.errorsInactive',
|
|
36
36
|
"Task has errors and is waiting..."
|
|
37
37
|
)) };
|
|
38
|
-
const WARNING_TASK_STATUS = { id: TASK_TERMINAL_STATUS_ID, icon: Codicon.warning, severity: Severity.Warning, tooltip: ( localizeWithPath(
|
|
38
|
+
const WARNING_TASK_STATUS = { id: TASK_TERMINAL_STATUS_ID, icon: Codicon.warning, severity: Severity$1.Warning, tooltip: ( localizeWithPath(
|
|
39
39
|
'vs/workbench/contrib/tasks/browser/taskTerminalStatus',
|
|
40
40
|
'taskTerminalStatus.warnings',
|
|
41
41
|
"Task has warnings"
|
|
42
42
|
)) };
|
|
43
|
-
const WARNING_INACTIVE_TASK_STATUS = { id: TASK_TERMINAL_STATUS_ID, icon: Codicon.warning, severity: Severity.Warning, tooltip: ( localizeWithPath(
|
|
43
|
+
const WARNING_INACTIVE_TASK_STATUS = { id: TASK_TERMINAL_STATUS_ID, icon: Codicon.warning, severity: Severity$1.Warning, tooltip: ( localizeWithPath(
|
|
44
44
|
'vs/workbench/contrib/tasks/browser/taskTerminalStatus',
|
|
45
45
|
'taskTerminalStatus.warningsInactive',
|
|
46
46
|
"Task has warnings and is waiting..."
|
|
47
47
|
)) };
|
|
48
|
-
const INFO_TASK_STATUS = { id: TASK_TERMINAL_STATUS_ID, icon: Codicon.info, severity: Severity.Info, tooltip: ( localizeWithPath(
|
|
48
|
+
const INFO_TASK_STATUS = { id: TASK_TERMINAL_STATUS_ID, icon: Codicon.info, severity: Severity$1.Info, tooltip: ( localizeWithPath(
|
|
49
49
|
'vs/workbench/contrib/tasks/browser/taskTerminalStatus',
|
|
50
50
|
'taskTerminalStatus.infos',
|
|
51
51
|
"Task has infos"
|
|
52
52
|
)) };
|
|
53
|
-
const INFO_INACTIVE_TASK_STATUS = { id: TASK_TERMINAL_STATUS_ID, icon: Codicon.info, severity: Severity.Info, tooltip: ( localizeWithPath(
|
|
53
|
+
const INFO_INACTIVE_TASK_STATUS = { id: TASK_TERMINAL_STATUS_ID, icon: Codicon.info, severity: Severity$1.Info, tooltip: ( localizeWithPath(
|
|
54
54
|
'vs/workbench/contrib/tasks/browser/taskTerminalStatus',
|
|
55
55
|
'taskTerminalStatus.infosInactive',
|
|
56
56
|
"Task has infos and is waiting..."
|
|
@@ -82,7 +82,7 @@ let TaskTerminalStatus = class TaskTerminalStatus extends Disposable {
|
|
|
82
82
|
}));
|
|
83
83
|
}
|
|
84
84
|
addTerminal(task, terminal, problemMatcher) {
|
|
85
|
-
const status = { id: TASK_TERMINAL_STATUS_ID, severity: Severity.Info };
|
|
85
|
+
const status = { id: TASK_TERMINAL_STATUS_ID, severity: Severity$1.Info };
|
|
86
86
|
terminal.statusList.add(status);
|
|
87
87
|
this._register(problemMatcher.onDidFindFirstMatch(() => {
|
|
88
88
|
this._marker = terminal.registerMarker();
|
|
@@ -8,7 +8,7 @@ import { deepClone } from 'vscode/vscode/vs/base/common/objects';
|
|
|
8
8
|
import { delimiter, join, isAbsolute, posix, basename, parse, sep } from 'vscode/vscode/vs/base/common/path';
|
|
9
9
|
import { isWindows, platform, PlatformToString } from 'vscode/vscode/vs/base/common/platform';
|
|
10
10
|
import { toLocalResource } from 'vscode/vscode/vs/base/common/resources';
|
|
11
|
-
import Severity from 'vscode/vscode/vs/base/common/severity';
|
|
11
|
+
import Severity$1 from 'vscode/vscode/vs/base/common/severity';
|
|
12
12
|
import { isString, isObject } from 'vscode/vscode/vs/base/common/types';
|
|
13
13
|
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
14
14
|
import { MarkerSeverity } from 'vscode/vscode/vs/platform/markers/common/markers';
|
|
@@ -198,11 +198,11 @@ class TerminalTaskSystem extends Disposable {
|
|
|
198
198
|
}
|
|
199
199
|
else if (error instanceof Error) {
|
|
200
200
|
this._log(error.message);
|
|
201
|
-
throw new TaskError(Severity.Error, error.message, 7 );
|
|
201
|
+
throw new TaskError(Severity$1.Error, error.message, 7 );
|
|
202
202
|
}
|
|
203
203
|
else {
|
|
204
204
|
this._log(( error.toString()));
|
|
205
|
-
throw new TaskError(Severity.Error, localizeWithPath('vs/workbench/contrib/tasks/browser/terminalTaskSystem', 'TerminalTaskSystem.unknownError', 'A unknown error has occurred while executing a task. See task output log for details.'), 7 );
|
|
205
|
+
throw new TaskError(Severity$1.Error, localizeWithPath('vs/workbench/contrib/tasks/browser/terminalTaskSystem', 'TerminalTaskSystem.unknownError', 'A unknown error has occurred while executing a task. See task output log for details.'), 7 );
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
}
|
|
@@ -227,7 +227,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
227
227
|
this._log(loadMessage + '\n');
|
|
228
228
|
});
|
|
229
229
|
const openOutput = 'Show Output';
|
|
230
|
-
this._notificationService.prompt(Severity.Warning, ( localizeWithPath(
|
|
230
|
+
this._notificationService.prompt(Severity$1.Warning, ( localizeWithPath(
|
|
231
231
|
'vs/workbench/contrib/tasks/browser/terminalTaskSystem',
|
|
232
232
|
'TerminalTaskSystem.taskLoadReporting',
|
|
233
233
|
"There are issues with task \"{0}\". See the output for more details.",
|
|
@@ -1265,7 +1265,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
1265
1265
|
args = resolvedResult.args;
|
|
1266
1266
|
this._currentTask.shellLaunchConfig = launchConfigs = await this._createShellLaunchConfig(task, workspaceFolder, resolver, platform$1, options, command, args, waitOnExit);
|
|
1267
1267
|
if (launchConfigs === undefined) {
|
|
1268
|
-
return [undefined, ( new TaskError(Severity.Error, ( localizeWithPath(
|
|
1268
|
+
return [undefined, ( new TaskError(Severity$1.Error, ( localizeWithPath(
|
|
1269
1269
|
'vs/workbench/contrib/tasks/browser/terminalTaskSystem',
|
|
1270
1270
|
'TerminalTaskSystem',
|
|
1271
1271
|
'Can\'t execute a shell command on an UNC drive using cmd.exe.'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
2
2
|
import { deepClone } from 'vscode/vscode/vs/base/common/objects';
|
|
3
3
|
import { ProblemMatcherRegistry } from './problemMatcher.js';
|
|
4
|
-
import
|
|
4
|
+
import schema$1 from './jsonSchemaCommon.js';
|
|
5
5
|
|
|
6
6
|
const schema = {
|
|
7
7
|
oneOf: [
|
|
@@ -84,7 +84,7 @@ const shellCommand = {
|
|
|
84
84
|
'Specifies whether the command is a shell command or an external program. Defaults to false if omitted.'
|
|
85
85
|
))
|
|
86
86
|
};
|
|
87
|
-
schema.definitions = deepClone(
|
|
87
|
+
schema.definitions = deepClone(schema$1.definitions);
|
|
88
88
|
const definitions = schema.definitions;
|
|
89
89
|
definitions['commandConfiguration']['properties']['isShellCommand'] = deepClone(shellCommand);
|
|
90
90
|
definitions['taskDescription']['properties']['isShellCommand'] = deepClone(shellCommand);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
2
2
|
import { deepClone } from 'vscode/vscode/vs/base/common/objects';
|
|
3
|
-
import
|
|
3
|
+
import schema$1 from './jsonSchemaCommon.js';
|
|
4
4
|
import { ProblemMatcherRegistry } from './problemMatcher.js';
|
|
5
5
|
import { TaskDefinitionRegistry } from 'vscode/vscode/vs/workbench/contrib/tasks/common/taskDefinitionRegistry';
|
|
6
6
|
import { applyDeprecatedVariableMessage } from 'vscode/vscode/vs/workbench/services/configurationResolver/common/configurationResolverUtils';
|
|
@@ -601,7 +601,7 @@ const runOptions = {
|
|
|
601
601
|
'The task\'s run related options'
|
|
602
602
|
))
|
|
603
603
|
};
|
|
604
|
-
const commonSchemaDefinitions =
|
|
604
|
+
const commonSchemaDefinitions = schema$1.definitions;
|
|
605
605
|
const options = deepClone(commonSchemaDefinitions.options);
|
|
606
606
|
const optionsProperties = options.properties;
|
|
607
607
|
optionsProperties.shell = deepClone(commonSchemaDefinitions.shellConfiguration);
|
|
@@ -337,7 +337,7 @@ class WatchingProblemCollector extends AbstractProblemCollector {
|
|
|
337
337
|
}, 500, false, true)(async (markerEvent) => {
|
|
338
338
|
markerChanged?.dispose();
|
|
339
339
|
markerChanged = undefined;
|
|
340
|
-
if (!markerEvent.includes(modelEvent.uri) || (this.markerService.read({ resource: modelEvent.uri }).length !== 0)) {
|
|
340
|
+
if (!markerEvent || !markerEvent.includes(modelEvent.uri) || (this.markerService.read({ resource: modelEvent.uri }).length !== 0)) {
|
|
341
341
|
return;
|
|
342
342
|
}
|
|
343
343
|
const oldLines = Array.from(this.lines);
|
|
@@ -6,7 +6,7 @@ import { join, normalize } from 'vscode/vscode/vs/base/common/path';
|
|
|
6
6
|
import { isString, isUndefined, isStringArray, isUndefinedOrNull, isBoolean, isNumber } from 'vscode/vscode/vs/base/common/types';
|
|
7
7
|
import { generateUuid } from 'vscode/vscode/vs/base/common/uuid';
|
|
8
8
|
import { OS } from 'vscode/vscode/vs/base/common/platform';
|
|
9
|
-
import Severity from 'vscode/vscode/vs/base/common/severity';
|
|
9
|
+
import Severity$1 from 'vscode/vscode/vs/base/common/severity';
|
|
10
10
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
11
11
|
import { Parser, ValidationStatus } from '../../../../base/common/parsers.js';
|
|
12
12
|
import { asArray } from 'vscode/vscode/vs/base/common/arrays';
|
|
@@ -322,28 +322,28 @@ class AbstractLineMatcher {
|
|
|
322
322
|
if (data.severity) {
|
|
323
323
|
const value = data.severity;
|
|
324
324
|
if (value) {
|
|
325
|
-
result = Severity.fromValue(value);
|
|
326
|
-
if (result === Severity.Ignore) {
|
|
325
|
+
result = Severity$1.fromValue(value);
|
|
326
|
+
if (result === Severity$1.Ignore) {
|
|
327
327
|
if (value === 'E') {
|
|
328
|
-
result = Severity.Error;
|
|
328
|
+
result = Severity$1.Error;
|
|
329
329
|
}
|
|
330
330
|
else if (value === 'W') {
|
|
331
|
-
result = Severity.Warning;
|
|
331
|
+
result = Severity$1.Warning;
|
|
332
332
|
}
|
|
333
333
|
else if (value === 'I') {
|
|
334
|
-
result = Severity.Info;
|
|
334
|
+
result = Severity$1.Info;
|
|
335
335
|
}
|
|
336
336
|
else if (equalsIgnoreCase(value, 'hint')) {
|
|
337
|
-
result = Severity.Info;
|
|
337
|
+
result = Severity$1.Info;
|
|
338
338
|
}
|
|
339
339
|
else if (equalsIgnoreCase(value, 'note')) {
|
|
340
|
-
result = Severity.Info;
|
|
340
|
+
result = Severity$1.Info;
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
if (result === null || result === Severity.Ignore) {
|
|
346
|
-
result = this.matcher.severity || Severity.Error;
|
|
345
|
+
if (result === null || result === Severity$1.Ignore) {
|
|
346
|
+
result = this.matcher.severity || Severity$1.Error;
|
|
347
347
|
}
|
|
348
348
|
return MarkerSeverity.fromSeverity(result);
|
|
349
349
|
}
|
|
@@ -1136,15 +1136,15 @@ class ProblemMatcherParser extends Parser {
|
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
1138
|
const pattern = description.pattern ? this.createProblemPattern(description.pattern) : undefined;
|
|
1139
|
-
let severity = description.severity ? Severity.fromValue(description.severity) : undefined;
|
|
1140
|
-
if (severity === Severity.Ignore) {
|
|
1139
|
+
let severity = description.severity ? Severity$1.fromValue(description.severity) : undefined;
|
|
1140
|
+
if (severity === Severity$1.Ignore) {
|
|
1141
1141
|
this.info(( localizeWithPath(
|
|
1142
1142
|
'vs/workbench/contrib/tasks/common/problemMatcher',
|
|
1143
1143
|
'ProblemMatcherParser.unknownSeverity',
|
|
1144
1144
|
'Info: unknown severity {0}. Valid values are error, warning and info.\n',
|
|
1145
1145
|
description.severity
|
|
1146
1146
|
)));
|
|
1147
|
-
severity = Severity.Error;
|
|
1147
|
+
severity = Severity$1.Error;
|
|
1148
1148
|
}
|
|
1149
1149
|
if (isString(description.base)) {
|
|
1150
1150
|
const variableName = description.base;
|
|
@@ -1710,7 +1710,7 @@ class ProblemMatcherRegistryImpl {
|
|
|
1710
1710
|
applyTo: ApplyToKind.allDocuments,
|
|
1711
1711
|
fileLocation: FileLocationKind.Absolute,
|
|
1712
1712
|
pattern: ProblemPatternRegistry.get('lessCompile'),
|
|
1713
|
-
severity: Severity.Error
|
|
1713
|
+
severity: Severity$1.Error
|
|
1714
1714
|
});
|
|
1715
1715
|
this.add({
|
|
1716
1716
|
name: 'gulp-tsc',
|