@codingame/monaco-vscode-task-service-override 1.85.2
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/external/tslib/tslib.es6.js +11 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/override/vs/platform/dialogs/common/dialogs.js +8 -0
- package/package.json +24 -0
- package/task.d.ts +5 -0
- package/task.js +12 -0
- package/vscode/src/vs/base/common/parsers.js +44 -0
- package/vscode/src/vs/workbench/contrib/tasks/browser/abstractTaskService.js +3851 -0
- package/vscode/src/vs/workbench/contrib/tasks/browser/runAutomaticTasks.js +167 -0
- package/vscode/src/vs/workbench/contrib/tasks/browser/task.contribution.js +694 -0
- package/vscode/src/vs/workbench/contrib/tasks/browser/taskQuickPick.js +452 -0
- package/vscode/src/vs/workbench/contrib/tasks/browser/taskService.js +36 -0
- package/vscode/src/vs/workbench/contrib/tasks/browser/taskTerminalStatus.js +191 -0
- package/vscode/src/vs/workbench/contrib/tasks/browser/tasksQuickAccess.js +121 -0
- package/vscode/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.js +1713 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchemaCommon.js +440 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v1.js +125 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v2.js +901 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/problemCollectors.js +464 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.js +1796 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.js +1581 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/taskSystem.js +15 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/taskTemplates.js +145 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEscapeSequences.js +13 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
class TaskError {
|
|
2
|
+
constructor(severity, message, code) {
|
|
3
|
+
this.severity = severity;
|
|
4
|
+
this.message = message;
|
|
5
|
+
this.code = code;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
var Triggers;
|
|
9
|
+
( (function(Triggers) {
|
|
10
|
+
Triggers.shortcut = 'shortcut';
|
|
11
|
+
Triggers.command = 'command';
|
|
12
|
+
Triggers.reconnect = 'reconnect';
|
|
13
|
+
})(Triggers || (Triggers = {})));
|
|
14
|
+
|
|
15
|
+
export { TaskError, Triggers };
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import * as nls from 'monaco-editor/esm/vs/nls.js';
|
|
2
|
+
|
|
3
|
+
const dotnetBuild = {
|
|
4
|
+
id: 'dotnetCore',
|
|
5
|
+
label: '.NET Core',
|
|
6
|
+
sort: 'NET Core',
|
|
7
|
+
autoDetect: false,
|
|
8
|
+
description: ( nls.localizeWithPath(
|
|
9
|
+
'vs/workbench/contrib/tasks/common/taskTemplates',
|
|
10
|
+
'dotnetCore',
|
|
11
|
+
'Executes .NET Core build command'
|
|
12
|
+
)),
|
|
13
|
+
content: [
|
|
14
|
+
'{',
|
|
15
|
+
'\t// See https://go.microsoft.com/fwlink/?LinkId=733558',
|
|
16
|
+
'\t// for the documentation about the tasks.json format',
|
|
17
|
+
'\t"version": "2.0.0",',
|
|
18
|
+
'\t"tasks": [',
|
|
19
|
+
'\t\t{',
|
|
20
|
+
'\t\t\t"label": "build",',
|
|
21
|
+
'\t\t\t"command": "dotnet",',
|
|
22
|
+
'\t\t\t"type": "shell",',
|
|
23
|
+
'\t\t\t"args": [',
|
|
24
|
+
'\t\t\t\t"build",',
|
|
25
|
+
'\t\t\t\t// Ask dotnet build to generate full paths for file names.',
|
|
26
|
+
'\t\t\t\t"/property:GenerateFullPaths=true",',
|
|
27
|
+
'\t\t\t\t// Do not generate summary otherwise it leads to duplicate errors in Problems panel',
|
|
28
|
+
'\t\t\t\t"/consoleloggerparameters:NoSummary"',
|
|
29
|
+
'\t\t\t],',
|
|
30
|
+
'\t\t\t"group": "build",',
|
|
31
|
+
'\t\t\t"presentation": {',
|
|
32
|
+
'\t\t\t\t"reveal": "silent"',
|
|
33
|
+
'\t\t\t},',
|
|
34
|
+
'\t\t\t"problemMatcher": "$msCompile"',
|
|
35
|
+
'\t\t}',
|
|
36
|
+
'\t]',
|
|
37
|
+
'}'
|
|
38
|
+
].join('\n')
|
|
39
|
+
};
|
|
40
|
+
const msbuild = {
|
|
41
|
+
id: 'msbuild',
|
|
42
|
+
label: 'MSBuild',
|
|
43
|
+
autoDetect: false,
|
|
44
|
+
description: ( nls.localizeWithPath(
|
|
45
|
+
'vs/workbench/contrib/tasks/common/taskTemplates',
|
|
46
|
+
'msbuild',
|
|
47
|
+
'Executes the build target'
|
|
48
|
+
)),
|
|
49
|
+
content: [
|
|
50
|
+
'{',
|
|
51
|
+
'\t// See https://go.microsoft.com/fwlink/?LinkId=733558',
|
|
52
|
+
'\t// for the documentation about the tasks.json format',
|
|
53
|
+
'\t"version": "2.0.0",',
|
|
54
|
+
'\t"tasks": [',
|
|
55
|
+
'\t\t{',
|
|
56
|
+
'\t\t\t"label": "build",',
|
|
57
|
+
'\t\t\t"type": "shell",',
|
|
58
|
+
'\t\t\t"command": "msbuild",',
|
|
59
|
+
'\t\t\t"args": [',
|
|
60
|
+
'\t\t\t\t// Ask msbuild to generate full paths for file names.',
|
|
61
|
+
'\t\t\t\t"/property:GenerateFullPaths=true",',
|
|
62
|
+
'\t\t\t\t"/t:build",',
|
|
63
|
+
'\t\t\t\t// Do not generate summary otherwise it leads to duplicate errors in Problems panel',
|
|
64
|
+
'\t\t\t\t"/consoleloggerparameters:NoSummary"',
|
|
65
|
+
'\t\t\t],',
|
|
66
|
+
'\t\t\t"group": "build",',
|
|
67
|
+
'\t\t\t"presentation": {',
|
|
68
|
+
'\t\t\t\t// Reveal the output only if unrecognized errors occur.',
|
|
69
|
+
'\t\t\t\t"reveal": "silent"',
|
|
70
|
+
'\t\t\t},',
|
|
71
|
+
'\t\t\t// Use the standard MS compiler pattern to detect errors, warnings and infos',
|
|
72
|
+
'\t\t\t"problemMatcher": "$msCompile"',
|
|
73
|
+
'\t\t}',
|
|
74
|
+
'\t]',
|
|
75
|
+
'}'
|
|
76
|
+
].join('\n')
|
|
77
|
+
};
|
|
78
|
+
const command = {
|
|
79
|
+
id: 'externalCommand',
|
|
80
|
+
label: 'Others',
|
|
81
|
+
autoDetect: false,
|
|
82
|
+
description: ( nls.localizeWithPath(
|
|
83
|
+
'vs/workbench/contrib/tasks/common/taskTemplates',
|
|
84
|
+
'externalCommand',
|
|
85
|
+
'Example to run an arbitrary external command'
|
|
86
|
+
)),
|
|
87
|
+
content: [
|
|
88
|
+
'{',
|
|
89
|
+
'\t// See https://go.microsoft.com/fwlink/?LinkId=733558',
|
|
90
|
+
'\t// for the documentation about the tasks.json format',
|
|
91
|
+
'\t"version": "2.0.0",',
|
|
92
|
+
'\t"tasks": [',
|
|
93
|
+
'\t\t{',
|
|
94
|
+
'\t\t\t"label": "echo",',
|
|
95
|
+
'\t\t\t"type": "shell",',
|
|
96
|
+
'\t\t\t"command": "echo Hello"',
|
|
97
|
+
'\t\t}',
|
|
98
|
+
'\t]',
|
|
99
|
+
'}'
|
|
100
|
+
].join('\n')
|
|
101
|
+
};
|
|
102
|
+
const maven = {
|
|
103
|
+
id: 'maven',
|
|
104
|
+
label: 'maven',
|
|
105
|
+
sort: 'MVN',
|
|
106
|
+
autoDetect: false,
|
|
107
|
+
description: ( nls.localizeWithPath(
|
|
108
|
+
'vs/workbench/contrib/tasks/common/taskTemplates',
|
|
109
|
+
'Maven',
|
|
110
|
+
'Executes common maven commands'
|
|
111
|
+
)),
|
|
112
|
+
content: [
|
|
113
|
+
'{',
|
|
114
|
+
'\t// See https://go.microsoft.com/fwlink/?LinkId=733558',
|
|
115
|
+
'\t// for the documentation about the tasks.json format',
|
|
116
|
+
'\t"version": "2.0.0",',
|
|
117
|
+
'\t"tasks": [',
|
|
118
|
+
'\t\t{',
|
|
119
|
+
'\t\t\t"label": "verify",',
|
|
120
|
+
'\t\t\t"type": "shell",',
|
|
121
|
+
'\t\t\t"command": "mvn -B verify",',
|
|
122
|
+
'\t\t\t"group": "build"',
|
|
123
|
+
'\t\t},',
|
|
124
|
+
'\t\t{',
|
|
125
|
+
'\t\t\t"label": "test",',
|
|
126
|
+
'\t\t\t"type": "shell",',
|
|
127
|
+
'\t\t\t"command": "mvn -B test",',
|
|
128
|
+
'\t\t\t"group": "test"',
|
|
129
|
+
'\t\t}',
|
|
130
|
+
'\t]',
|
|
131
|
+
'}'
|
|
132
|
+
].join('\n')
|
|
133
|
+
};
|
|
134
|
+
let _templates = null;
|
|
135
|
+
function getTemplates() {
|
|
136
|
+
if (!_templates) {
|
|
137
|
+
_templates = [dotnetBuild, msbuild, maven].sort((a, b) => {
|
|
138
|
+
return (a.sort || a.label).localeCompare(b.sort || b.label);
|
|
139
|
+
});
|
|
140
|
+
_templates.push(command);
|
|
141
|
+
}
|
|
142
|
+
return _templates;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export { getTemplates };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
function VSCodeSequence(osc, data) {
|
|
2
|
+
return oscSequence(633 , osc, data);
|
|
3
|
+
}
|
|
4
|
+
function oscSequence(ps, pt, data) {
|
|
5
|
+
let result = `\x1b]${ps};${pt}`;
|
|
6
|
+
if (data) {
|
|
7
|
+
result += `;${data}`;
|
|
8
|
+
}
|
|
9
|
+
result += `\x07`;
|
|
10
|
+
return result;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { VSCodeSequence };
|