@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,11 @@
|
|
|
1
|
+
function __decorate(decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
}
|
|
7
|
+
function __param(paramIndex, decorator) {
|
|
8
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { __decorate, __param };
|
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './task.js';
|
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './task.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var ConfirmResult;
|
|
2
|
+
( (function(ConfirmResult) {
|
|
3
|
+
ConfirmResult[ConfirmResult["SAVE"] = 0] = "SAVE";
|
|
4
|
+
ConfirmResult[ConfirmResult["DONT_SAVE"] = 1] = "DONT_SAVE";
|
|
5
|
+
ConfirmResult[ConfirmResult["CANCEL"] = 2] = "CANCEL";
|
|
6
|
+
})(ConfirmResult || (ConfirmResult = {})));
|
|
7
|
+
|
|
8
|
+
export { ConfirmResult };
|
package/package.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@codingame/monaco-vscode-task-service-override",
|
|
3
|
+
"version": "1.85.2",
|
|
4
|
+
"keywords": [],
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "CodinGame",
|
|
7
|
+
"url": "http://www.codingame.com"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/CodinGame/monaco-vscode-api.git"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"private": false,
|
|
16
|
+
"description": "VSCode public API plugged on the monaco editor - task service-override",
|
|
17
|
+
"main": "index.js",
|
|
18
|
+
"module": "index.js",
|
|
19
|
+
"types": "index.d.ts",
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@1.85.2",
|
|
22
|
+
"monaco-editor": "0.45.0"
|
|
23
|
+
}
|
|
24
|
+
}
|
package/task.d.ts
ADDED
package/task.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
|
|
2
|
+
import { ITaskService } from 'vscode/vscode/vs/workbench/contrib/tasks/common/taskService';
|
|
3
|
+
import { TaskService } from './vscode/src/vs/workbench/contrib/tasks/browser/taskService.js';
|
|
4
|
+
import './vscode/src/vs/workbench/contrib/tasks/browser/task.contribution.js';
|
|
5
|
+
|
|
6
|
+
function getServiceOverride() {
|
|
7
|
+
return {
|
|
8
|
+
[( ITaskService.toString())]: new SyncDescriptor(TaskService, [], true)
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { getServiceOverride as default };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
class ValidationStatus {
|
|
2
|
+
constructor() {
|
|
3
|
+
this._state = 0 ;
|
|
4
|
+
}
|
|
5
|
+
get state() {
|
|
6
|
+
return this._state;
|
|
7
|
+
}
|
|
8
|
+
set state(value) {
|
|
9
|
+
if (value > this._state) {
|
|
10
|
+
this._state = value;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
isOK() {
|
|
14
|
+
return this._state === 0 ;
|
|
15
|
+
}
|
|
16
|
+
isFatal() {
|
|
17
|
+
return this._state === 4 ;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
class Parser {
|
|
21
|
+
constructor(problemReporter) {
|
|
22
|
+
this._problemReporter = problemReporter;
|
|
23
|
+
}
|
|
24
|
+
reset() {
|
|
25
|
+
this._problemReporter.status.state = 0 ;
|
|
26
|
+
}
|
|
27
|
+
get problemReporter() {
|
|
28
|
+
return this._problemReporter;
|
|
29
|
+
}
|
|
30
|
+
info(message) {
|
|
31
|
+
this._problemReporter.info(message);
|
|
32
|
+
}
|
|
33
|
+
warn(message) {
|
|
34
|
+
this._problemReporter.warn(message);
|
|
35
|
+
}
|
|
36
|
+
error(message) {
|
|
37
|
+
this._problemReporter.error(message);
|
|
38
|
+
}
|
|
39
|
+
fatal(message) {
|
|
40
|
+
this._problemReporter.fatal(message);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { Parser, ValidationStatus };
|