@codingame/monaco-vscode-task-service-override 27.0.0 → 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 +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/browser/abstractTaskService.js +114 -114
- package/vscode/src/vs/workbench/contrib/tasks/browser/runAutomaticTasks.js +7 -7
- 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 +10 -10
- package/vscode/src/vs/workbench/contrib/tasks/browser/tasksQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.js +17 -17
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchemaCommon.js +42 -42
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v1.js +9 -9
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v2.js +84 -84
- package/vscode/src/vs/workbench/contrib/tasks/common/problemCollectors.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/problemCollectors.js +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 -433
- package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.js +0 -1637
- package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.d.ts +0 -514
- package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.js +0 -1796
|
@@ -15,7 +15,7 @@ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
|
15
15
|
import { MarkerSeverity } from '@codingame/monaco-vscode-api/vscode/vs/platform/markers/common/markers';
|
|
16
16
|
import { WorkbenchState } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace';
|
|
17
17
|
import { Markers } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/markers/common/markers';
|
|
18
|
-
import { ProblemMatcherRegistry } from '
|
|
18
|
+
import { ProblemMatcherRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/tasks/common/problemMatcher';
|
|
19
19
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
20
20
|
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
21
21
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
@@ -24,7 +24,7 @@ import { formatMessageForTerminal } from '@codingame/monaco-vscode-api/vscode/vs
|
|
|
24
24
|
import { ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
25
25
|
import { TaskTerminalStatus } from './taskTerminalStatus.js';
|
|
26
26
|
import { WatchingProblemCollector, ProblemCollectorEventKind, StartStopProblemCollector, ProblemHandlingStrategy } from '../common/problemCollectors.js';
|
|
27
|
-
import { GroupKind } from '
|
|
27
|
+
import { GroupKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/tasks/common/taskConfiguration';
|
|
28
28
|
import { Triggers, VerifiedTask, TaskExecuteKind, TaskError, TaskErrors } from '../common/taskSystem.js';
|
|
29
29
|
import { TASK_TERMINAL_ACTIVE, InMemoryTask, CustomTask, ContributedTask, TaskEventKind, TaskEvent, DependsOrder, CommandString, RuntimeType, TaskSourceKind, RevealProblemKind, RevealKind, PanelKind, ShellQuoting, TaskScope } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/tasks/common/tasks';
|
|
30
30
|
import { VSCodeSequence, VSCodeOscPt, VSCodeOscProperty } from '../../terminal/browser/terminalEscapeSequences.js';
|
|
@@ -170,7 +170,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
170
170
|
this._hasReconnected = false;
|
|
171
171
|
this._terminalTabActions = [{
|
|
172
172
|
id: RerunForActiveTerminalCommandId,
|
|
173
|
-
label: ( localize(
|
|
173
|
+
label: ( localize(12771, "Rerun Task")),
|
|
174
174
|
icon: rerunTaskIcon
|
|
175
175
|
}];
|
|
176
176
|
this._taskStartTimes = ( new Map());
|
|
@@ -249,7 +249,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
249
249
|
} else {
|
|
250
250
|
this._log(( error.toString()));
|
|
251
251
|
throw ( new TaskError(Severity.Error, ( localize(
|
|
252
|
-
|
|
252
|
+
12772,
|
|
253
253
|
"A unknown error has occurred while executing a task. See task output log for details."
|
|
254
254
|
)), TaskErrors.UnknownError));
|
|
255
255
|
}
|
|
@@ -297,7 +297,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
297
297
|
});
|
|
298
298
|
const openOutput = "Show Output";
|
|
299
299
|
this._notificationService.prompt(Severity.Warning, ( localize(
|
|
300
|
-
|
|
300
|
+
12773,
|
|
301
301
|
"There are issues with task \"{0}\". See the output for more details.",
|
|
302
302
|
task._label
|
|
303
303
|
)), [{
|
|
@@ -465,7 +465,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
465
465
|
return Promise.all(promises);
|
|
466
466
|
}
|
|
467
467
|
_showDependencyCycleMessage(task) {
|
|
468
|
-
this._log(( localize(
|
|
468
|
+
this._log(( localize(12774, "There is a dependency cycle. See task \"{0}\".", task._label)));
|
|
469
469
|
this._showOutput();
|
|
470
470
|
}
|
|
471
471
|
_executeTask(
|
|
@@ -528,7 +528,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
528
528
|
}
|
|
529
529
|
} else {
|
|
530
530
|
this._log(( localize(
|
|
531
|
-
|
|
531
|
+
12775,
|
|
532
532
|
"Couldn't resolve dependent task '{0}' in workspace folder '{1}'",
|
|
533
533
|
isString(dependency.task) ? dependency.task : JSON.stringify(dependency.task, undefined, 0),
|
|
534
534
|
(dependency.uri.toString())
|
|
@@ -882,7 +882,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
882
882
|
));
|
|
883
883
|
if ((problemMatchers.length > 0) && !watchingProblemMatcher.isWatching()) {
|
|
884
884
|
this._appendOutput(( localize(
|
|
885
|
-
|
|
885
|
+
12776,
|
|
886
886
|
"Task {0} is a background task but uses a problem matcher without a background pattern",
|
|
887
887
|
task._label
|
|
888
888
|
)));
|
|
@@ -1314,11 +1314,11 @@ class TerminalTaskSystem extends Disposable {
|
|
|
1314
1314
|
if (task.command.presentation && task.command.presentation.echo) {
|
|
1315
1315
|
if (needsFolderQualification && workspaceFolder) {
|
|
1316
1316
|
const folder = cwd && typeof cwd === "object" && Object.hasOwn(cwd, "path") ? basename(cwd.path) : workspaceFolder.name;
|
|
1317
|
-
shellLaunchConfig.initialText = this.taskShellIntegrationStartSequence(cwd) + formatMessageForTerminal(( localize(
|
|
1317
|
+
shellLaunchConfig.initialText = this.taskShellIntegrationStartSequence(cwd) + formatMessageForTerminal(( localize(12777, "Executing task in folder {0}: {1}", folder, commandLine)), {
|
|
1318
1318
|
excludeLeadingNewLine: true
|
|
1319
1319
|
}) + this.getTaskShellIntegrationOutputSequence(commandLineInfo);
|
|
1320
1320
|
} else {
|
|
1321
|
-
shellLaunchConfig.initialText = this.taskShellIntegrationStartSequence(cwd) + formatMessageForTerminal(( localize(
|
|
1321
|
+
shellLaunchConfig.initialText = this.taskShellIntegrationStartSequence(cwd) + formatMessageForTerminal(( localize(12778, "Executing task: {0}", commandLine)), {
|
|
1322
1322
|
excludeLeadingNewLine: true
|
|
1323
1323
|
}) + this.getTaskShellIntegrationOutputSequence(commandLineInfo);
|
|
1324
1324
|
}
|
|
@@ -1355,7 +1355,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
1355
1355
|
};
|
|
1356
1356
|
if (needsFolderQualification && workspaceFolder) {
|
|
1357
1357
|
shellLaunchConfig.initialText = this.taskShellIntegrationStartSequence(cwd) + formatMessageForTerminal(( localize(
|
|
1358
|
-
|
|
1358
|
+
12777,
|
|
1359
1359
|
"Executing task in folder {0}: {1}",
|
|
1360
1360
|
workspaceFolder.name,
|
|
1361
1361
|
`${shellLaunchConfig.executable} ${getArgsToEcho(shellLaunchConfig.args)}`
|
|
@@ -1364,7 +1364,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
1364
1364
|
}) + this.getTaskShellIntegrationOutputSequence(undefined);
|
|
1365
1365
|
} else {
|
|
1366
1366
|
shellLaunchConfig.initialText = this.taskShellIntegrationStartSequence(cwd) + formatMessageForTerminal(( localize(
|
|
1367
|
-
|
|
1367
|
+
12779,
|
|
1368
1368
|
"Executing task: {0}",
|
|
1369
1369
|
`${shellLaunchConfig.executable} ${getArgsToEcho(shellLaunchConfig.args)}`
|
|
1370
1370
|
)), {
|
|
@@ -1517,7 +1517,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
1517
1517
|
customPtyImplementation: (id, cols, rows) => ( new TerminalProcessExtHostProxy(id, cols, rows, this._terminalService)),
|
|
1518
1518
|
waitOnExit,
|
|
1519
1519
|
name: this._createTerminalName(task),
|
|
1520
|
-
initialText: task.command.presentation && task.command.presentation.echo ? formatMessageForTerminal(( localize(
|
|
1520
|
+
initialText: task.command.presentation && task.command.presentation.echo ? formatMessageForTerminal(( localize(12780, "Executing task: {0}", task._label)), {
|
|
1521
1521
|
excludeLeadingNewLine: true
|
|
1522
1522
|
}) : undefined,
|
|
1523
1523
|
isFeatureTerminal: true,
|
|
@@ -1540,7 +1540,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
1540
1540
|
presentationOptions
|
|
1541
1541
|
);
|
|
1542
1542
|
if (launchConfigs === undefined) {
|
|
1543
|
-
return [undefined, ( new TaskError(Severity.Error, ( localize(
|
|
1543
|
+
return [undefined, ( new TaskError(Severity.Error, ( localize(12781, "Can't execute a shell command on an UNC drive using cmd.exe.")), TaskErrors.UnknownError))];
|
|
1544
1544
|
}
|
|
1545
1545
|
}
|
|
1546
1546
|
const prefersSameTerminal = presentationOptions.panel === PanelKind.Dedicated;
|
|
@@ -1848,7 +1848,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
1848
1848
|
}
|
|
1849
1849
|
if (!matcher) {
|
|
1850
1850
|
this._appendOutput(( localize(
|
|
1851
|
-
|
|
1851
|
+
12782,
|
|
1852
1852
|
"Problem matcher {0} can't be resolved. The matcher will be ignored"
|
|
1853
1853
|
)));
|
|
1854
1854
|
continue;
|
|
@@ -1976,9 +1976,9 @@ function getWaitOnExitValue(presentationOptions, configurationProperties) {
|
|
|
1976
1976
|
if ((presentationOptions.close === undefined) || (presentationOptions.close === false)) {
|
|
1977
1977
|
if ((presentationOptions.reveal !== RevealKind.Never) || !configurationProperties.isBackground || (presentationOptions.close === false)) {
|
|
1978
1978
|
if (presentationOptions.panel === PanelKind.New) {
|
|
1979
|
-
return taskShellIntegrationWaitOnExitSequence(( localize(
|
|
1979
|
+
return taskShellIntegrationWaitOnExitSequence(( localize(12783, "Press any key to close the terminal.")));
|
|
1980
1980
|
} else if (presentationOptions.showReuseMessage) {
|
|
1981
|
-
return taskShellIntegrationWaitOnExitSequence(( localize(
|
|
1981
|
+
return taskShellIntegrationWaitOnExitSequence(( localize(12784, "Terminal will be reused by tasks, press any key to close it.")));
|
|
1982
1982
|
} else {
|
|
1983
1983
|
return true;
|
|
1984
1984
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
3
|
-
import { Schemas } from '
|
|
3
|
+
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/tasks/common/problemMatcher';
|
|
4
4
|
|
|
5
5
|
const schema = {
|
|
6
6
|
definitions: {
|
|
@@ -10,12 +10,12 @@ const schema = {
|
|
|
10
10
|
},
|
|
11
11
|
options: {
|
|
12
12
|
type: "object",
|
|
13
|
-
description: ( localize(
|
|
13
|
+
description: ( localize(12786, "Additional command options")),
|
|
14
14
|
properties: {
|
|
15
15
|
cwd: {
|
|
16
16
|
type: "string",
|
|
17
17
|
description: ( localize(
|
|
18
|
-
|
|
18
|
+
12787,
|
|
19
19
|
"The current working directory of the executed program or script. If omitted Code's current workspace root is used."
|
|
20
20
|
))
|
|
21
21
|
},
|
|
@@ -25,7 +25,7 @@ const schema = {
|
|
|
25
25
|
type: "string"
|
|
26
26
|
},
|
|
27
27
|
description: ( localize(
|
|
28
|
-
|
|
28
|
+
12788,
|
|
29
29
|
"The environment of the executed program or shell. If omitted the parent process' environment is used."
|
|
30
30
|
))
|
|
31
31
|
}
|
|
@@ -38,7 +38,7 @@ const schema = {
|
|
|
38
38
|
oneOf: [{
|
|
39
39
|
type: "string",
|
|
40
40
|
errorMessage: ( localize(
|
|
41
|
-
|
|
41
|
+
12789,
|
|
42
42
|
"Unrecognized problem matcher. Is the extension that contributes this problem matcher installed?"
|
|
43
43
|
))
|
|
44
44
|
}, Schemas.LegacyProblemMatcher, {
|
|
@@ -47,7 +47,7 @@ const schema = {
|
|
|
47
47
|
anyOf: [{
|
|
48
48
|
type: "string",
|
|
49
49
|
errorMessage: ( localize(
|
|
50
|
-
|
|
50
|
+
12789,
|
|
51
51
|
"Unrecognized problem matcher. Is the extension that contributes this problem matcher installed?"
|
|
52
52
|
))
|
|
53
53
|
}, Schemas.LegacyProblemMatcher]
|
|
@@ -57,15 +57,15 @@ const schema = {
|
|
|
57
57
|
shellConfiguration: {
|
|
58
58
|
type: "object",
|
|
59
59
|
additionalProperties: false,
|
|
60
|
-
description: ( localize(
|
|
60
|
+
description: ( localize(12790, "Configures the shell to be used.")),
|
|
61
61
|
properties: {
|
|
62
62
|
executable: {
|
|
63
63
|
type: "string",
|
|
64
|
-
description: ( localize(
|
|
64
|
+
description: ( localize(12791, "The shell to be used."))
|
|
65
65
|
},
|
|
66
66
|
args: {
|
|
67
67
|
type: "array",
|
|
68
|
-
description: ( localize(
|
|
68
|
+
description: ( localize(12792, "The shell arguments.")),
|
|
69
69
|
items: {
|
|
70
70
|
type: "string"
|
|
71
71
|
}
|
|
@@ -79,13 +79,13 @@ const schema = {
|
|
|
79
79
|
command: {
|
|
80
80
|
type: "string",
|
|
81
81
|
description: ( localize(
|
|
82
|
-
|
|
82
|
+
12793,
|
|
83
83
|
"The command to be executed. Can be an external program or a shell command."
|
|
84
84
|
))
|
|
85
85
|
},
|
|
86
86
|
args: {
|
|
87
87
|
type: "array",
|
|
88
|
-
description: ( localize(
|
|
88
|
+
description: ( localize(12794, "Arguments passed to the command when this task is invoked.")),
|
|
89
89
|
items: {
|
|
90
90
|
type: "string"
|
|
91
91
|
}
|
|
@@ -102,18 +102,18 @@ const schema = {
|
|
|
102
102
|
properties: {
|
|
103
103
|
taskName: {
|
|
104
104
|
type: "string",
|
|
105
|
-
description: ( localize(
|
|
105
|
+
description: ( localize(12795, "The task's name"))
|
|
106
106
|
},
|
|
107
107
|
command: {
|
|
108
108
|
type: "string",
|
|
109
109
|
description: ( localize(
|
|
110
|
-
|
|
110
|
+
12793,
|
|
111
111
|
"The command to be executed. Can be an external program or a shell command."
|
|
112
112
|
))
|
|
113
113
|
},
|
|
114
114
|
args: {
|
|
115
115
|
type: "array",
|
|
116
|
-
description: ( localize(
|
|
116
|
+
description: ( localize(12794, "Arguments passed to the command when this task is invoked.")),
|
|
117
117
|
items: {
|
|
118
118
|
type: "string"
|
|
119
119
|
}
|
|
@@ -124,13 +124,13 @@ const schema = {
|
|
|
124
124
|
windows: {
|
|
125
125
|
anyOf: [{
|
|
126
126
|
$ref: "#/definitions/commandConfiguration",
|
|
127
|
-
description: ( localize(
|
|
127
|
+
description: ( localize(12796, "Windows specific command configuration"))
|
|
128
128
|
}, {
|
|
129
129
|
properties: {
|
|
130
130
|
problemMatcher: {
|
|
131
131
|
$ref: "#/definitions/problemMatcherType",
|
|
132
132
|
description: ( localize(
|
|
133
|
-
|
|
133
|
+
12797,
|
|
134
134
|
"The problem matcher(s) to use. Can either be a string or a problem matcher definition or an array of strings and problem matchers."
|
|
135
135
|
))
|
|
136
136
|
}
|
|
@@ -140,13 +140,13 @@ const schema = {
|
|
|
140
140
|
osx: {
|
|
141
141
|
anyOf: [{
|
|
142
142
|
$ref: "#/definitions/commandConfiguration",
|
|
143
|
-
description: ( localize(
|
|
143
|
+
description: ( localize(12798, "Mac specific command configuration"))
|
|
144
144
|
}, {
|
|
145
145
|
properties: {
|
|
146
146
|
problemMatcher: {
|
|
147
147
|
$ref: "#/definitions/problemMatcherType",
|
|
148
148
|
description: ( localize(
|
|
149
|
-
|
|
149
|
+
12797,
|
|
150
150
|
"The problem matcher(s) to use. Can either be a string or a problem matcher definition or an array of strings and problem matchers."
|
|
151
151
|
))
|
|
152
152
|
}
|
|
@@ -156,13 +156,13 @@ const schema = {
|
|
|
156
156
|
linux: {
|
|
157
157
|
anyOf: [{
|
|
158
158
|
$ref: "#/definitions/commandConfiguration",
|
|
159
|
-
description: ( localize(
|
|
159
|
+
description: ( localize(12799, "Linux specific command configuration"))
|
|
160
160
|
}, {
|
|
161
161
|
properties: {
|
|
162
162
|
problemMatcher: {
|
|
163
163
|
$ref: "#/definitions/problemMatcherType",
|
|
164
164
|
description: ( localize(
|
|
165
|
-
|
|
165
|
+
12797,
|
|
166
166
|
"The problem matcher(s) to use. Can either be a string or a problem matcher definition or an array of strings and problem matchers."
|
|
167
167
|
))
|
|
168
168
|
}
|
|
@@ -172,7 +172,7 @@ const schema = {
|
|
|
172
172
|
suppressTaskName: {
|
|
173
173
|
type: "boolean",
|
|
174
174
|
description: ( localize(
|
|
175
|
-
|
|
175
|
+
12800,
|
|
176
176
|
"Controls whether the task name is added as an argument to the command. If omitted the globally defined value is used."
|
|
177
177
|
)),
|
|
178
178
|
default: true
|
|
@@ -180,23 +180,23 @@ const schema = {
|
|
|
180
180
|
showOutput: {
|
|
181
181
|
$ref: "#/definitions/showOutputType",
|
|
182
182
|
description: ( localize(
|
|
183
|
-
|
|
183
|
+
12801,
|
|
184
184
|
"Controls whether the output of the running task is shown or not. If omitted the globally defined value is used."
|
|
185
185
|
))
|
|
186
186
|
},
|
|
187
187
|
echoCommand: {
|
|
188
188
|
type: "boolean",
|
|
189
189
|
description: ( localize(
|
|
190
|
-
|
|
190
|
+
12802,
|
|
191
191
|
"Controls whether the executed command is echoed to the output. Default is false."
|
|
192
192
|
)),
|
|
193
193
|
default: true
|
|
194
194
|
},
|
|
195
195
|
isWatching: {
|
|
196
196
|
type: "boolean",
|
|
197
|
-
deprecationMessage: ( localize(
|
|
197
|
+
deprecationMessage: ( localize(12803, "Deprecated. Use isBackground instead.")),
|
|
198
198
|
description: ( localize(
|
|
199
|
-
|
|
199
|
+
12804,
|
|
200
200
|
"Whether the executed task is kept alive and is watching the file system."
|
|
201
201
|
)),
|
|
202
202
|
default: true
|
|
@@ -204,7 +204,7 @@ const schema = {
|
|
|
204
204
|
isBackground: {
|
|
205
205
|
type: "boolean",
|
|
206
206
|
description: ( localize(
|
|
207
|
-
|
|
207
|
+
12805,
|
|
208
208
|
"Whether the executed task is kept alive and is running in the background."
|
|
209
209
|
)),
|
|
210
210
|
default: true
|
|
@@ -212,25 +212,25 @@ const schema = {
|
|
|
212
212
|
promptOnClose: {
|
|
213
213
|
type: "boolean",
|
|
214
214
|
description: ( localize(
|
|
215
|
-
|
|
215
|
+
12806,
|
|
216
216
|
"Whether the user is prompted when VS Code closes with a running task."
|
|
217
217
|
)),
|
|
218
218
|
default: false
|
|
219
219
|
},
|
|
220
220
|
isBuildCommand: {
|
|
221
221
|
type: "boolean",
|
|
222
|
-
description: ( localize(
|
|
222
|
+
description: ( localize(12807, "Maps this task to Code's default build command.")),
|
|
223
223
|
default: true
|
|
224
224
|
},
|
|
225
225
|
isTestCommand: {
|
|
226
226
|
type: "boolean",
|
|
227
|
-
description: ( localize(
|
|
227
|
+
description: ( localize(12808, "Maps this task to Code's default test command.")),
|
|
228
228
|
default: true
|
|
229
229
|
},
|
|
230
230
|
problemMatcher: {
|
|
231
231
|
$ref: "#/definitions/problemMatcherType",
|
|
232
232
|
description: ( localize(
|
|
233
|
-
|
|
233
|
+
12797,
|
|
234
234
|
"The problem matcher(s) to use. Can either be a string or a problem matcher definition or an array of strings and problem matchers."
|
|
235
235
|
))
|
|
236
236
|
}
|
|
@@ -243,13 +243,13 @@ const schema = {
|
|
|
243
243
|
command: {
|
|
244
244
|
type: "string",
|
|
245
245
|
description: ( localize(
|
|
246
|
-
|
|
246
|
+
12793,
|
|
247
247
|
"The command to be executed. Can be an external program or a shell command."
|
|
248
248
|
))
|
|
249
249
|
},
|
|
250
250
|
args: {
|
|
251
251
|
type: "array",
|
|
252
|
-
description: ( localize(
|
|
252
|
+
description: ( localize(12809, "Additional arguments passed to the command.")),
|
|
253
253
|
items: {
|
|
254
254
|
type: "string"
|
|
255
255
|
}
|
|
@@ -260,15 +260,15 @@ const schema = {
|
|
|
260
260
|
showOutput: {
|
|
261
261
|
$ref: "#/definitions/showOutputType",
|
|
262
262
|
description: ( localize(
|
|
263
|
-
|
|
263
|
+
12810,
|
|
264
264
|
"Controls whether the output of the running task is shown or not. If omitted 'always' is used."
|
|
265
265
|
))
|
|
266
266
|
},
|
|
267
267
|
isWatching: {
|
|
268
268
|
type: "boolean",
|
|
269
|
-
deprecationMessage: ( localize(
|
|
269
|
+
deprecationMessage: ( localize(12811, "Deprecated. Use isBackground instead.")),
|
|
270
270
|
description: ( localize(
|
|
271
|
-
|
|
271
|
+
12812,
|
|
272
272
|
"Whether the executed task is kept alive and is watching the file system."
|
|
273
273
|
)),
|
|
274
274
|
default: true
|
|
@@ -276,7 +276,7 @@ const schema = {
|
|
|
276
276
|
isBackground: {
|
|
277
277
|
type: "boolean",
|
|
278
278
|
description: ( localize(
|
|
279
|
-
|
|
279
|
+
12813,
|
|
280
280
|
"Whether the executed task is kept alive and is running in the background."
|
|
281
281
|
)),
|
|
282
282
|
default: true
|
|
@@ -284,7 +284,7 @@ const schema = {
|
|
|
284
284
|
promptOnClose: {
|
|
285
285
|
type: "boolean",
|
|
286
286
|
description: ( localize(
|
|
287
|
-
|
|
287
|
+
12814,
|
|
288
288
|
"Whether the user is prompted when VS Code closes with a running background task."
|
|
289
289
|
)),
|
|
290
290
|
default: false
|
|
@@ -292,7 +292,7 @@ const schema = {
|
|
|
292
292
|
echoCommand: {
|
|
293
293
|
type: "boolean",
|
|
294
294
|
description: ( localize(
|
|
295
|
-
|
|
295
|
+
12802,
|
|
296
296
|
"Controls whether the executed command is echoed to the output. Default is false."
|
|
297
297
|
)),
|
|
298
298
|
default: true
|
|
@@ -300,26 +300,26 @@ const schema = {
|
|
|
300
300
|
suppressTaskName: {
|
|
301
301
|
type: "boolean",
|
|
302
302
|
description: ( localize(
|
|
303
|
-
|
|
303
|
+
12815,
|
|
304
304
|
"Controls whether the task name is added as an argument to the command. Default is false."
|
|
305
305
|
)),
|
|
306
306
|
default: true
|
|
307
307
|
},
|
|
308
308
|
taskSelector: {
|
|
309
309
|
type: "string",
|
|
310
|
-
description: ( localize(
|
|
310
|
+
description: ( localize(12816, "Prefix to indicate that an argument is task."))
|
|
311
311
|
},
|
|
312
312
|
problemMatcher: {
|
|
313
313
|
$ref: "#/definitions/problemMatcherType",
|
|
314
314
|
description: ( localize(
|
|
315
|
-
|
|
315
|
+
12817,
|
|
316
316
|
"The problem matcher(s) to use. Can either be a string or a problem matcher definition or an array of strings and problem matchers."
|
|
317
317
|
))
|
|
318
318
|
},
|
|
319
319
|
tasks: {
|
|
320
320
|
type: "array",
|
|
321
321
|
description: ( localize(
|
|
322
|
-
|
|
322
|
+
12818,
|
|
323
323
|
"The task configurations. Usually these are enrichments of task already defined in the external task runner."
|
|
324
324
|
)),
|
|
325
325
|
items: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
3
3
|
import { deepClone } from '@codingame/monaco-vscode-api/vscode/vs/base/common/objects';
|
|
4
|
-
import { ProblemMatcherRegistry } from '
|
|
4
|
+
import { ProblemMatcherRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/tasks/common/problemMatcher';
|
|
5
5
|
import schema$1 from './jsonSchemaCommon.js';
|
|
6
6
|
|
|
7
7
|
const schema = {
|
|
@@ -13,32 +13,32 @@ const schema = {
|
|
|
13
13
|
version: {
|
|
14
14
|
type: "string",
|
|
15
15
|
enum: ["0.1.0"],
|
|
16
|
-
deprecationMessage: ( localize(
|
|
17
|
-
description: ( localize(
|
|
16
|
+
deprecationMessage: ( localize(12819, "Task version 0.1.0 is deprecated. Please use 2.0.0")),
|
|
17
|
+
description: ( localize(12820, "The config's version number"))
|
|
18
18
|
},
|
|
19
19
|
_runner: {
|
|
20
|
-
deprecationMessage: ( localize(
|
|
20
|
+
deprecationMessage: ( localize(12821, "The runner has graduated. Use the official runner property"))
|
|
21
21
|
},
|
|
22
22
|
runner: {
|
|
23
23
|
type: "string",
|
|
24
24
|
enum: ["process", "terminal"],
|
|
25
25
|
default: "process",
|
|
26
26
|
description: ( localize(
|
|
27
|
-
|
|
27
|
+
12822,
|
|
28
28
|
"Defines whether the task is executed as a process and the output is shown in the output window or inside the terminal."
|
|
29
29
|
))
|
|
30
30
|
},
|
|
31
31
|
windows: {
|
|
32
32
|
$ref: "#/definitions/taskRunnerConfiguration",
|
|
33
|
-
description: ( localize(
|
|
33
|
+
description: ( localize(12823, "Windows specific command configuration"))
|
|
34
34
|
},
|
|
35
35
|
osx: {
|
|
36
36
|
$ref: "#/definitions/taskRunnerConfiguration",
|
|
37
|
-
description: ( localize(
|
|
37
|
+
description: ( localize(12824, "Mac specific command configuration"))
|
|
38
38
|
},
|
|
39
39
|
linux: {
|
|
40
40
|
$ref: "#/definitions/taskRunnerConfiguration",
|
|
41
|
-
description: ( localize(
|
|
41
|
+
description: ( localize(12825, "Linux specific command configuration"))
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}, {
|
|
@@ -50,7 +50,7 @@ const shellCommand = {
|
|
|
50
50
|
type: "boolean",
|
|
51
51
|
default: true,
|
|
52
52
|
description: ( localize(
|
|
53
|
-
|
|
53
|
+
12826,
|
|
54
54
|
"Specifies whether the command is a shell command or an external program. Defaults to false if omitted."
|
|
55
55
|
))
|
|
56
56
|
};
|