@theia/task 1.67.0-next.56 → 1.67.0-next.86
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/lib/browser/index.d.ts +7 -0
- package/lib/browser/index.d.ts.map +1 -0
- package/lib/browser/index.js +25 -0
- package/lib/browser/index.js.map +1 -0
- package/lib/browser/process/process-task-contribution.d.ts +7 -0
- package/lib/browser/process/process-task-contribution.d.ts.map +1 -0
- package/lib/browser/process/process-task-contribution.js +36 -0
- package/lib/browser/process/process-task-contribution.js.map +1 -0
- package/lib/browser/process/process-task-frontend-module.d.ts +3 -0
- package/lib/browser/process/process-task-frontend-module.d.ts.map +1 -0
- package/lib/browser/process/process-task-frontend-module.js +28 -0
- package/lib/browser/process/process-task-frontend-module.js.map +1 -0
- package/lib/browser/process/process-task-resolver.d.ts +18 -0
- package/lib/browser/process/process-task-resolver.d.ts.map +1 -0
- package/lib/browser/process/process-task-resolver.js +94 -0
- package/lib/browser/process/process-task-resolver.js.map +1 -0
- package/lib/browser/provided-task-configurations.d.ts +44 -0
- package/lib/browser/provided-task-configurations.d.ts.map +1 -0
- package/lib/browser/provided-task-configurations.js +206 -0
- package/lib/browser/provided-task-configurations.js.map +1 -0
- package/lib/browser/provided-task-configurations.spec.d.ts +2 -0
- package/lib/browser/provided-task-configurations.spec.d.ts.map +1 -0
- package/lib/browser/provided-task-configurations.spec.js +44 -0
- package/lib/browser/provided-task-configurations.spec.js.map +1 -0
- package/lib/browser/quick-open-task.d.ts +146 -0
- package/lib/browser/quick-open-task.d.ts.map +1 -0
- package/lib/browser/quick-open-task.js +757 -0
- package/lib/browser/quick-open-task.js.map +1 -0
- package/lib/browser/task-configuration-manager.d.ts +63 -0
- package/lib/browser/task-configuration-manager.d.ts.map +1 -0
- package/lib/browser/task-configuration-manager.js +243 -0
- package/lib/browser/task-configuration-manager.js.map +1 -0
- package/lib/browser/task-configuration-model.d.ts +34 -0
- package/lib/browser/task-configuration-model.d.ts.map +1 -0
- package/lib/browser/task-configuration-model.js +83 -0
- package/lib/browser/task-configuration-model.js.map +1 -0
- package/lib/browser/task-configurations.d.ts +128 -0
- package/lib/browser/task-configurations.d.ts.map +1 -0
- package/lib/browser/task-configurations.js +479 -0
- package/lib/browser/task-configurations.js.map +1 -0
- package/lib/browser/task-context-key-service.d.ts +18 -0
- package/lib/browser/task-context-key-service.d.ts.map +1 -0
- package/lib/browser/task-context-key-service.js +72 -0
- package/lib/browser/task-context-key-service.js.map +1 -0
- package/lib/browser/task-contribution.d.ts +183 -0
- package/lib/browser/task-contribution.d.ts.map +1 -0
- package/lib/browser/task-contribution.js +199 -0
- package/lib/browser/task-contribution.js.map +1 -0
- package/lib/browser/task-definition-registry.d.ts +39 -0
- package/lib/browser/task-definition-registry.d.ts.map +1 -0
- package/lib/browser/task-definition-registry.js +130 -0
- package/lib/browser/task-definition-registry.js.map +1 -0
- package/lib/browser/task-definition-registry.spec.d.ts +2 -0
- package/lib/browser/task-definition-registry.spec.d.ts.map +1 -0
- package/lib/browser/task-definition-registry.spec.js +171 -0
- package/lib/browser/task-definition-registry.spec.js.map +1 -0
- package/lib/browser/task-frontend-contribution.d.ts +57 -0
- package/lib/browser/task-frontend-contribution.d.ts.map +1 -0
- package/lib/browser/task-frontend-contribution.js +351 -0
- package/lib/browser/task-frontend-contribution.js.map +1 -0
- package/lib/browser/task-frontend-module.d.ts +6 -0
- package/lib/browser/task-frontend-module.d.ts.map +1 -0
- package/lib/browser/task-frontend-module.js +82 -0
- package/lib/browser/task-frontend-module.js.map +1 -0
- package/lib/browser/task-name-resolver.d.ts +14 -0
- package/lib/browser/task-name-resolver.d.ts.map +1 -0
- package/lib/browser/task-name-resolver.js +60 -0
- package/lib/browser/task-name-resolver.js.map +1 -0
- package/lib/browser/task-node.d.ts +10 -0
- package/lib/browser/task-node.d.ts.map +1 -0
- package/lib/browser/task-node.js +18 -0
- package/lib/browser/task-node.js.map +1 -0
- package/lib/browser/task-problem-matcher-registry.d.ts +41 -0
- package/lib/browser/task-problem-matcher-registry.d.ts.map +1 -0
- package/lib/browser/task-problem-matcher-registry.js +302 -0
- package/lib/browser/task-problem-matcher-registry.js.map +1 -0
- package/lib/browser/task-problem-pattern-registry.d.ts +24 -0
- package/lib/browser/task-problem-pattern-registry.d.ts.map +1 -0
- package/lib/browser/task-problem-pattern-registry.js +203 -0
- package/lib/browser/task-problem-pattern-registry.js.map +1 -0
- package/lib/browser/task-schema-updater.d.ts +58 -0
- package/lib/browser/task-schema-updater.d.ts.map +1 -0
- package/lib/browser/task-schema-updater.js +676 -0
- package/lib/browser/task-schema-updater.js.map +1 -0
- package/lib/browser/task-service.d.ts +282 -0
- package/lib/browser/task-service.d.ts.map +1 -0
- package/lib/browser/task-service.js +1116 -0
- package/lib/browser/task-service.js.map +1 -0
- package/lib/browser/task-source-resolver.d.ts +10 -0
- package/lib/browser/task-source-resolver.d.ts.map +1 -0
- package/lib/browser/task-source-resolver.js +44 -0
- package/lib/browser/task-source-resolver.js.map +1 -0
- package/lib/browser/task-templates.d.ts +14 -0
- package/lib/browser/task-templates.d.ts.map +1 -0
- package/lib/browser/task-templates.js +158 -0
- package/lib/browser/task-templates.js.map +1 -0
- package/lib/browser/task-terminal-widget-manager.d.ts +45 -0
- package/lib/browser/task-terminal-widget-manager.d.ts.map +1 -0
- package/lib/browser/task-terminal-widget-manager.js +222 -0
- package/lib/browser/task-terminal-widget-manager.js.map +1 -0
- package/lib/browser/tasks-monaco-contribution.d.ts +2 -0
- package/lib/browser/tasks-monaco-contribution.d.ts.map +1 -0
- package/lib/browser/tasks-monaco-contribution.js +28 -0
- package/lib/browser/tasks-monaco-contribution.js.map +1 -0
- package/lib/common/index.d.ts +5 -0
- package/lib/common/index.d.ts.map +1 -0
- package/lib/common/index.js +23 -0
- package/lib/common/index.js.map +1 -0
- package/lib/common/problem-matcher-protocol.d.ts +125 -0
- package/lib/common/problem-matcher-protocol.d.ts.map +1 -0
- package/lib/common/problem-matcher-protocol.js +133 -0
- package/lib/common/problem-matcher-protocol.js.map +1 -0
- package/lib/common/process/task-protocol.d.ts +69 -0
- package/lib/common/process/task-protocol.d.ts.map +1 -0
- package/lib/common/process/task-protocol.js +34 -0
- package/lib/common/process/task-protocol.js.map +1 -0
- package/lib/common/task-common-module.d.ts +8 -0
- package/lib/common/task-common-module.d.ts.map +1 -0
- package/lib/common/task-common-module.js +29 -0
- package/lib/common/task-common-module.js.map +1 -0
- package/lib/common/task-preferences.d.ts +6 -0
- package/lib/common/task-preferences.d.ts.map +1 -0
- package/lib/common/task-preferences.js +41 -0
- package/lib/common/task-preferences.js.map +1 -0
- package/lib/common/task-protocol.d.ts +194 -0
- package/lib/common/task-protocol.d.ts.map +1 -0
- package/lib/common/task-protocol.js +138 -0
- package/lib/common/task-protocol.js.map +1 -0
- package/lib/common/task-util.d.ts +23 -0
- package/lib/common/task-util.d.ts.map +1 -0
- package/lib/common/task-util.js +47 -0
- package/lib/common/task-util.js.map +1 -0
- package/lib/common/task-watcher.d.ts +18 -0
- package/lib/common/task-watcher.d.ts.map +1 -0
- package/lib/common/task-watcher.js +82 -0
- package/lib/common/task-watcher.js.map +1 -0
- package/lib/node/custom/custom-task-runner-backend-module.d.ts +3 -0
- package/lib/node/custom/custom-task-runner-backend-module.d.ts.map +1 -0
- package/lib/node/custom/custom-task-runner-backend-module.js +37 -0
- package/lib/node/custom/custom-task-runner-backend-module.js.map +1 -0
- package/lib/node/custom/custom-task-runner-contribution.d.ts +7 -0
- package/lib/node/custom/custom-task-runner-contribution.d.ts.map +1 -0
- package/lib/node/custom/custom-task-runner-contribution.js +35 -0
- package/lib/node/custom/custom-task-runner-contribution.js.map +1 -0
- package/lib/node/custom/custom-task-runner.d.ts +16 -0
- package/lib/node/custom/custom-task-runner.d.ts.map +1 -0
- package/lib/node/custom/custom-task-runner.js +62 -0
- package/lib/node/custom/custom-task-runner.js.map +1 -0
- package/lib/node/custom/custom-task.d.ts +21 -0
- package/lib/node/custom/custom-task.d.ts.map +1 -0
- package/lib/node/custom/custom-task.js +68 -0
- package/lib/node/custom/custom-task.js.map +1 -0
- package/lib/node/index.d.ts +4 -0
- package/lib/node/index.d.ts.map +1 -0
- package/lib/node/index.js +22 -0
- package/lib/node/index.js.map +1 -0
- package/lib/node/process/process-task-runner-backend-module.d.ts +3 -0
- package/lib/node/process/process-task-runner-backend-module.d.ts.map +1 -0
- package/lib/node/process/process-task-runner-backend-module.js +37 -0
- package/lib/node/process/process-task-runner-backend-module.js.map +1 -0
- package/lib/node/process/process-task-runner-contribution.d.ts +7 -0
- package/lib/node/process/process-task-runner-contribution.d.ts.map +1 -0
- package/lib/node/process/process-task-runner-contribution.js +36 -0
- package/lib/node/process/process-task-runner-contribution.js.map +1 -0
- package/lib/node/process/process-task-runner.d.ts +61 -0
- package/lib/node/process/process-task-runner.d.ts.map +1 -0
- package/lib/node/process/process-task-runner.js +348 -0
- package/lib/node/process/process-task-runner.js.map +1 -0
- package/lib/node/process/process-task.d.ts +27 -0
- package/lib/node/process/process-task.d.ts.map +1 -0
- package/lib/node/process/process-task.js +125 -0
- package/lib/node/process/process-task.js.map +1 -0
- package/lib/node/process/process-task.spec.d.ts +2 -0
- package/lib/node/process/process-task.spec.d.ts.map +1 -0
- package/lib/node/process/process-task.spec.js +30 -0
- package/lib/node/process/process-task.spec.js.map +1 -0
- package/lib/node/task-abstract-line-matcher.d.ts +50 -0
- package/lib/node/task-abstract-line-matcher.d.ts.map +1 -0
- package/lib/node/task-abstract-line-matcher.js +274 -0
- package/lib/node/task-abstract-line-matcher.js.map +1 -0
- package/lib/node/task-backend-application-contribution.d.ts +9 -0
- package/lib/node/task-backend-application-contribution.d.ts.map +1 -0
- package/lib/node/task-backend-application-contribution.js +41 -0
- package/lib/node/task-backend-application-contribution.js.map +1 -0
- package/lib/node/task-backend-module.d.ts +4 -0
- package/lib/node/task-backend-module.d.ts.map +1 -0
- package/lib/node/task-backend-module.js +53 -0
- package/lib/node/task-backend-module.js.map +1 -0
- package/lib/node/task-line-matchers.d.ts +28 -0
- package/lib/node/task-line-matchers.d.ts.map +1 -0
- package/lib/node/task-line-matchers.js +122 -0
- package/lib/node/task-line-matchers.js.map +1 -0
- package/lib/node/task-manager.d.ts +56 -0
- package/lib/node/task-manager.d.ts.map +1 -0
- package/lib/node/task-manager.js +125 -0
- package/lib/node/task-manager.js.map +1 -0
- package/lib/node/task-problem-collector.d.ts +11 -0
- package/lib/node/task-problem-collector.d.ts.map +1 -0
- package/lib/node/task-problem-collector.js +58 -0
- package/lib/node/task-problem-collector.js.map +1 -0
- package/lib/node/task-problem-collector.spec.d.ts +2 -0
- package/lib/node/task-problem-collector.spec.d.ts.map +1 -0
- package/lib/node/task-problem-collector.spec.js +311 -0
- package/lib/node/task-problem-collector.spec.js.map +1 -0
- package/lib/node/task-runner-protocol.d.ts +17 -0
- package/lib/node/task-runner-protocol.d.ts.map +1 -0
- package/lib/node/task-runner-protocol.js +20 -0
- package/lib/node/task-runner-protocol.js.map +1 -0
- package/lib/node/task-runner.d.ts +51 -0
- package/lib/node/task-runner.d.ts.map +1 -0
- package/lib/node/task-runner.js +90 -0
- package/lib/node/task-runner.js.map +1 -0
- package/lib/node/task-server.d.ts +40 -0
- package/lib/node/task-server.d.ts.map +1 -0
- package/lib/node/task-server.js +232 -0
- package/lib/node/task-server.js.map +1 -0
- package/lib/node/task-server.slow-spec.d.ts +2 -0
- package/lib/node/task-server.slow-spec.d.ts.map +1 -0
- package/lib/node/task-server.slow-spec.js +395 -0
- package/lib/node/task-server.slow-spec.js.map +1 -0
- package/lib/node/task.d.ts +51 -0
- package/lib/node/task.d.ts.map +1 -0
- package/lib/node/task.js +73 -0
- package/lib/node/task.js.map +1 -0
- package/lib/node/test/task-test-container.d.ts +3 -0
- package/lib/node/test/task-test-container.d.ts.map +1 -0
- package/lib/node/test/task-test-container.js +59 -0
- package/lib/node/test/task-test-container.js.map +1 -0
- package/package.json +12 -12
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2019 Ericsson and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ProblemPatternRegistry = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
/*---------------------------------------------------------------------------------------------
|
|
21
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
22
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
23
|
+
*--------------------------------------------------------------------------------------------*/
|
|
24
|
+
const disposable_1 = require("@theia/core/lib/common/disposable");
|
|
25
|
+
const promise_util_1 = require("@theia/core/lib/common/promise-util");
|
|
26
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
27
|
+
const common_1 = require("../common");
|
|
28
|
+
let ProblemPatternRegistry = class ProblemPatternRegistry {
|
|
29
|
+
constructor() {
|
|
30
|
+
this.patterns = new Map();
|
|
31
|
+
this.readyPromise = new promise_util_1.Deferred();
|
|
32
|
+
}
|
|
33
|
+
init() {
|
|
34
|
+
this.fillDefaults();
|
|
35
|
+
this.readyPromise.resolve();
|
|
36
|
+
}
|
|
37
|
+
onReady() {
|
|
38
|
+
return this.readyPromise.promise;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Add a problem pattern to the registry.
|
|
42
|
+
*
|
|
43
|
+
* @param definition the problem pattern to be added.
|
|
44
|
+
*/
|
|
45
|
+
register(value) {
|
|
46
|
+
if (Array.isArray(value)) {
|
|
47
|
+
const toDispose = new disposable_1.DisposableCollection();
|
|
48
|
+
value.forEach(problemPatternContribution => toDispose.push(this.register(problemPatternContribution)));
|
|
49
|
+
return toDispose;
|
|
50
|
+
}
|
|
51
|
+
if (!value.name) {
|
|
52
|
+
console.error('Only named Problem Patterns can be registered.');
|
|
53
|
+
return disposable_1.Disposable.NULL;
|
|
54
|
+
}
|
|
55
|
+
const problemPattern = common_1.ProblemPattern.fromProblemPatternContribution(value);
|
|
56
|
+
return this.add(problemPattern.name, problemPattern);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Finds the problem pattern(s) from the registry with the given name.
|
|
60
|
+
*
|
|
61
|
+
* @param key the name of the problem patterns
|
|
62
|
+
* @return a problem pattern or an array of the problem patterns associated with the name. If no problem patterns are found, `undefined` is returned.
|
|
63
|
+
*/
|
|
64
|
+
get(key) {
|
|
65
|
+
return this.patterns.get(key);
|
|
66
|
+
}
|
|
67
|
+
add(key, value) {
|
|
68
|
+
let toAdd;
|
|
69
|
+
if (Array.isArray(value)) {
|
|
70
|
+
toAdd = value.map(v => Object.assign(v, { name: key }));
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
toAdd = Object.assign(value, { name: key });
|
|
74
|
+
}
|
|
75
|
+
this.patterns.set(key, toAdd);
|
|
76
|
+
return disposable_1.Disposable.create(() => this.patterns.delete(key));
|
|
77
|
+
}
|
|
78
|
+
// copied from https://github.com/Microsoft/vscode/blob/1.33.1/src/vs/workbench/contrib/tasks/common/problemMatcher.ts
|
|
79
|
+
fillDefaults() {
|
|
80
|
+
this.add('msCompile', {
|
|
81
|
+
regexp: /^(?:\s+\d+\>)?([^\s].*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\)\s*:\s+(error|warning|info)\s+(\w{1,2}\d+)\s*:\s*(.*)$/.source,
|
|
82
|
+
kind: common_1.ProblemLocationKind.Location,
|
|
83
|
+
file: 1,
|
|
84
|
+
location: 2,
|
|
85
|
+
severity: 3,
|
|
86
|
+
code: 4,
|
|
87
|
+
message: 5
|
|
88
|
+
});
|
|
89
|
+
this.add('gulp-tsc', {
|
|
90
|
+
regexp: /^([^\s].*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\):\s+(\d+)\s+(.*)$/.source,
|
|
91
|
+
kind: common_1.ProblemLocationKind.Location,
|
|
92
|
+
file: 1,
|
|
93
|
+
location: 2,
|
|
94
|
+
code: 3,
|
|
95
|
+
message: 4
|
|
96
|
+
});
|
|
97
|
+
this.add('cpp', {
|
|
98
|
+
regexp: /^([^\s].*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\):\s+(error|warning|info)\s+(C\d+)\s*:\s*(.*)$/.source,
|
|
99
|
+
kind: common_1.ProblemLocationKind.Location,
|
|
100
|
+
file: 1,
|
|
101
|
+
location: 2,
|
|
102
|
+
severity: 3,
|
|
103
|
+
code: 4,
|
|
104
|
+
message: 5
|
|
105
|
+
});
|
|
106
|
+
this.add('csc', {
|
|
107
|
+
regexp: /^([^\s].*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\):\s+(error|warning|info)\s+(CS\d+)\s*:\s*(.*)$/.source,
|
|
108
|
+
kind: common_1.ProblemLocationKind.Location,
|
|
109
|
+
file: 1,
|
|
110
|
+
location: 2,
|
|
111
|
+
severity: 3,
|
|
112
|
+
code: 4,
|
|
113
|
+
message: 5
|
|
114
|
+
});
|
|
115
|
+
this.add('vb', {
|
|
116
|
+
regexp: /^([^\s].*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\):\s+(error|warning|info)\s+(BC\d+)\s*:\s*(.*)$/.source,
|
|
117
|
+
kind: common_1.ProblemLocationKind.Location,
|
|
118
|
+
file: 1,
|
|
119
|
+
location: 2,
|
|
120
|
+
severity: 3,
|
|
121
|
+
code: 4,
|
|
122
|
+
message: 5
|
|
123
|
+
});
|
|
124
|
+
this.add('lessCompile', {
|
|
125
|
+
regexp: /^\s*(.*) in file (.*) line no. (\d+)$/.source,
|
|
126
|
+
kind: common_1.ProblemLocationKind.Location,
|
|
127
|
+
message: 1,
|
|
128
|
+
file: 2,
|
|
129
|
+
line: 3
|
|
130
|
+
});
|
|
131
|
+
this.add('jshint', {
|
|
132
|
+
regexp: /^(.*):\s+line\s+(\d+),\s+col\s+(\d+),\s(.+?)(?:\s+\((\w)(\d+)\))?$/.source,
|
|
133
|
+
kind: common_1.ProblemLocationKind.Location,
|
|
134
|
+
file: 1,
|
|
135
|
+
line: 2,
|
|
136
|
+
character: 3,
|
|
137
|
+
message: 4,
|
|
138
|
+
severity: 5,
|
|
139
|
+
code: 6
|
|
140
|
+
});
|
|
141
|
+
this.add('jshint-stylish', [
|
|
142
|
+
{
|
|
143
|
+
regexp: /^(.+)$/.source,
|
|
144
|
+
kind: common_1.ProblemLocationKind.Location,
|
|
145
|
+
file: 1
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
regexp: /^\s+line\s+(\d+)\s+col\s+(\d+)\s+(.+?)(?:\s+\((\w)(\d+)\))?$/.source,
|
|
149
|
+
line: 1,
|
|
150
|
+
character: 2,
|
|
151
|
+
message: 3,
|
|
152
|
+
severity: 4,
|
|
153
|
+
code: 5,
|
|
154
|
+
loop: true
|
|
155
|
+
}
|
|
156
|
+
]);
|
|
157
|
+
this.add('eslint-compact', {
|
|
158
|
+
regexp: /^(.+):\sline\s(\d+),\scol\s(\d+),\s(Error|Warning|Info)\s-\s(.+)\s\((.+)\)$/.source,
|
|
159
|
+
file: 1,
|
|
160
|
+
kind: common_1.ProblemLocationKind.Location,
|
|
161
|
+
line: 2,
|
|
162
|
+
character: 3,
|
|
163
|
+
severity: 4,
|
|
164
|
+
message: 5,
|
|
165
|
+
code: 6
|
|
166
|
+
});
|
|
167
|
+
this.add('eslint-stylish', [
|
|
168
|
+
{
|
|
169
|
+
regexp: /^([^\s].*)$/.source,
|
|
170
|
+
kind: common_1.ProblemLocationKind.Location,
|
|
171
|
+
file: 1
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
regexp: /^\s+(\d+):(\d+)\s+(error|warning|info)\s+(.+?)(?:\s\s+(.*))?$/.source,
|
|
175
|
+
line: 1,
|
|
176
|
+
character: 2,
|
|
177
|
+
severity: 3,
|
|
178
|
+
message: 4,
|
|
179
|
+
code: 5,
|
|
180
|
+
loop: true
|
|
181
|
+
}
|
|
182
|
+
]);
|
|
183
|
+
this.add('go', {
|
|
184
|
+
regexp: /^([^:]*: )?((.:)?[^:]*):(\d+)(:(\d+))?: (.*)$/.source,
|
|
185
|
+
kind: common_1.ProblemLocationKind.Location,
|
|
186
|
+
file: 2,
|
|
187
|
+
line: 4,
|
|
188
|
+
character: 6,
|
|
189
|
+
message: 7
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
exports.ProblemPatternRegistry = ProblemPatternRegistry;
|
|
194
|
+
tslib_1.__decorate([
|
|
195
|
+
(0, inversify_1.postConstruct)(),
|
|
196
|
+
tslib_1.__metadata("design:type", Function),
|
|
197
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
198
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
199
|
+
], ProblemPatternRegistry.prototype, "init", null);
|
|
200
|
+
exports.ProblemPatternRegistry = ProblemPatternRegistry = tslib_1.__decorate([
|
|
201
|
+
(0, inversify_1.injectable)()
|
|
202
|
+
], ProblemPatternRegistry);
|
|
203
|
+
//# sourceMappingURL=task-problem-pattern-registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-problem-pattern-registry.js","sourceRoot":"","sources":["../../src/browser/task-problem-pattern-registry.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;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;AAxKY,wDAAsB;AAKrB;IADT,IAAA,yBAAa,GAAE;;;;kDAIf;iCARQ,sBAAsB;IADlC,IAAA,sBAAU,GAAE;GACA,sBAAsB,CAwKlC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as Ajv from '@theia/core/shared/ajv';
|
|
2
|
+
import { JsonSchemaContribution, JsonSchemaDataStore, JsonSchemaRegisterContext } from '@theia/core/lib/browser/json-schema-store';
|
|
3
|
+
import { Emitter } from '@theia/core/lib/common';
|
|
4
|
+
import { IJSONSchema } from '@theia/core/lib/common/json-schema';
|
|
5
|
+
import URI from '@theia/core/lib/common/uri';
|
|
6
|
+
import { ProblemMatcherRegistry } from './task-problem-matcher-registry';
|
|
7
|
+
import { TaskDefinitionRegistry } from './task-definition-registry';
|
|
8
|
+
import { TaskServer } from '../common';
|
|
9
|
+
import { WorkspaceService } from '@theia/workspace/lib/browser';
|
|
10
|
+
import { JSONObject } from '@theia/core/shared/@lumino/coreutils';
|
|
11
|
+
export declare class TaskSchemaUpdater implements JsonSchemaContribution {
|
|
12
|
+
protected readonly jsonSchemaData: JsonSchemaDataStore;
|
|
13
|
+
protected readonly problemMatcherRegistry: ProblemMatcherRegistry;
|
|
14
|
+
protected readonly taskDefinitionRegistry: TaskDefinitionRegistry;
|
|
15
|
+
protected readonly taskServer: TaskServer;
|
|
16
|
+
protected readonly workspaceService: WorkspaceService;
|
|
17
|
+
protected readonly onDidChangeTaskSchemaEmitter: Emitter<void>;
|
|
18
|
+
readonly onDidChangeTaskSchema: import("@theia/core/lib/common").Event<void>;
|
|
19
|
+
protected readonly uri: URI;
|
|
20
|
+
protected init(): void;
|
|
21
|
+
registerSchemas(context: JsonSchemaRegisterContext): void;
|
|
22
|
+
readonly update: () => Promise<void>;
|
|
23
|
+
protected doUpdate(): void;
|
|
24
|
+
validate(data: any): boolean;
|
|
25
|
+
protected doValidate: Ajv.ValidateFunction | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Adds given task schema to `taskConfigurationSchema` as `oneOf` subschema.
|
|
28
|
+
* Replaces existed subschema by given schema if the corresponding `$id` properties are equal.
|
|
29
|
+
*
|
|
30
|
+
* Note: please provide `$id` property for subschema to have ability remove/replace it.
|
|
31
|
+
* @param schema subschema for adding to `taskConfigurationSchema`
|
|
32
|
+
*/
|
|
33
|
+
addSubschema(schema: IJSONSchema): void;
|
|
34
|
+
/**
|
|
35
|
+
* Removes task subschema from `taskConfigurationSchema`.
|
|
36
|
+
*
|
|
37
|
+
* @param arg `$id` property of subschema
|
|
38
|
+
*/
|
|
39
|
+
removeSubschema(arg: string): void;
|
|
40
|
+
/**
|
|
41
|
+
* Removes task subschema from `customSchemas`, use `update()` to apply the changes for `taskConfigurationSchema`.
|
|
42
|
+
*
|
|
43
|
+
* @param arg `$id` property of subschema
|
|
44
|
+
* @returns `true` if subschema was removed, `false` otherwise
|
|
45
|
+
*/
|
|
46
|
+
protected doRemoveSubschema(arg: string): boolean;
|
|
47
|
+
/** Returns an array of task types that are registered, including the default types */
|
|
48
|
+
getRegisteredTaskTypes(): Promise<string[]>;
|
|
49
|
+
private updateSchemasForRegisteredTasks;
|
|
50
|
+
/** Returns the task's JSON schema */
|
|
51
|
+
getTaskSchema(): IJSONSchema & {
|
|
52
|
+
default: JSONObject;
|
|
53
|
+
};
|
|
54
|
+
/** Gets the most up-to-date names of problem matchers from the registry and update the task schema */
|
|
55
|
+
private updateProblemMatcherNames;
|
|
56
|
+
private updateSupportedTaskTypes;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=task-schema-updater.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-schema-updater.d.ts","sourceRoot":"","sources":["../../src/browser/task-schema-updater.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,GAAG,MAAM,wBAAwB,CAAC;AAG9C,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACnI,OAAO,EAAa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