@theia/task 1.67.0-next.13 → 1.67.0-next.56
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/README.md +1 -1
- package/package.json +12 -12
- package/lib/browser/index.d.ts +0 -7
- package/lib/browser/index.d.ts.map +0 -1
- package/lib/browser/index.js +0 -25
- package/lib/browser/index.js.map +0 -1
- package/lib/browser/process/process-task-contribution.d.ts +0 -7
- package/lib/browser/process/process-task-contribution.d.ts.map +0 -1
- package/lib/browser/process/process-task-contribution.js +0 -36
- package/lib/browser/process/process-task-contribution.js.map +0 -1
- package/lib/browser/process/process-task-frontend-module.d.ts +0 -3
- package/lib/browser/process/process-task-frontend-module.d.ts.map +0 -1
- package/lib/browser/process/process-task-frontend-module.js +0 -28
- package/lib/browser/process/process-task-frontend-module.js.map +0 -1
- package/lib/browser/process/process-task-resolver.d.ts +0 -18
- package/lib/browser/process/process-task-resolver.d.ts.map +0 -1
- package/lib/browser/process/process-task-resolver.js +0 -94
- package/lib/browser/process/process-task-resolver.js.map +0 -1
- package/lib/browser/provided-task-configurations.d.ts +0 -44
- package/lib/browser/provided-task-configurations.d.ts.map +0 -1
- package/lib/browser/provided-task-configurations.js +0 -206
- package/lib/browser/provided-task-configurations.js.map +0 -1
- package/lib/browser/provided-task-configurations.spec.d.ts +0 -2
- package/lib/browser/provided-task-configurations.spec.d.ts.map +0 -1
- package/lib/browser/provided-task-configurations.spec.js +0 -44
- package/lib/browser/provided-task-configurations.spec.js.map +0 -1
- package/lib/browser/quick-open-task.d.ts +0 -146
- package/lib/browser/quick-open-task.d.ts.map +0 -1
- package/lib/browser/quick-open-task.js +0 -757
- package/lib/browser/quick-open-task.js.map +0 -1
- package/lib/browser/task-configuration-manager.d.ts +0 -63
- package/lib/browser/task-configuration-manager.d.ts.map +0 -1
- package/lib/browser/task-configuration-manager.js +0 -243
- package/lib/browser/task-configuration-manager.js.map +0 -1
- package/lib/browser/task-configuration-model.d.ts +0 -34
- package/lib/browser/task-configuration-model.d.ts.map +0 -1
- package/lib/browser/task-configuration-model.js +0 -83
- package/lib/browser/task-configuration-model.js.map +0 -1
- package/lib/browser/task-configurations.d.ts +0 -128
- package/lib/browser/task-configurations.d.ts.map +0 -1
- package/lib/browser/task-configurations.js +0 -479
- package/lib/browser/task-configurations.js.map +0 -1
- package/lib/browser/task-context-key-service.d.ts +0 -18
- package/lib/browser/task-context-key-service.d.ts.map +0 -1
- package/lib/browser/task-context-key-service.js +0 -72
- package/lib/browser/task-context-key-service.js.map +0 -1
- package/lib/browser/task-contribution.d.ts +0 -183
- package/lib/browser/task-contribution.d.ts.map +0 -1
- package/lib/browser/task-contribution.js +0 -199
- package/lib/browser/task-contribution.js.map +0 -1
- package/lib/browser/task-definition-registry.d.ts +0 -39
- package/lib/browser/task-definition-registry.d.ts.map +0 -1
- package/lib/browser/task-definition-registry.js +0 -130
- package/lib/browser/task-definition-registry.js.map +0 -1
- package/lib/browser/task-definition-registry.spec.d.ts +0 -2
- package/lib/browser/task-definition-registry.spec.d.ts.map +0 -1
- package/lib/browser/task-definition-registry.spec.js +0 -171
- package/lib/browser/task-definition-registry.spec.js.map +0 -1
- package/lib/browser/task-frontend-contribution.d.ts +0 -57
- package/lib/browser/task-frontend-contribution.d.ts.map +0 -1
- package/lib/browser/task-frontend-contribution.js +0 -351
- package/lib/browser/task-frontend-contribution.js.map +0 -1
- package/lib/browser/task-frontend-module.d.ts +0 -6
- package/lib/browser/task-frontend-module.d.ts.map +0 -1
- package/lib/browser/task-frontend-module.js +0 -82
- package/lib/browser/task-frontend-module.js.map +0 -1
- package/lib/browser/task-name-resolver.d.ts +0 -14
- package/lib/browser/task-name-resolver.d.ts.map +0 -1
- package/lib/browser/task-name-resolver.js +0 -60
- package/lib/browser/task-name-resolver.js.map +0 -1
- package/lib/browser/task-node.d.ts +0 -10
- package/lib/browser/task-node.d.ts.map +0 -1
- package/lib/browser/task-node.js +0 -18
- package/lib/browser/task-node.js.map +0 -1
- package/lib/browser/task-problem-matcher-registry.d.ts +0 -41
- package/lib/browser/task-problem-matcher-registry.d.ts.map +0 -1
- package/lib/browser/task-problem-matcher-registry.js +0 -302
- package/lib/browser/task-problem-matcher-registry.js.map +0 -1
- package/lib/browser/task-problem-pattern-registry.d.ts +0 -24
- package/lib/browser/task-problem-pattern-registry.d.ts.map +0 -1
- package/lib/browser/task-problem-pattern-registry.js +0 -203
- package/lib/browser/task-problem-pattern-registry.js.map +0 -1
- package/lib/browser/task-schema-updater.d.ts +0 -58
- package/lib/browser/task-schema-updater.d.ts.map +0 -1
- package/lib/browser/task-schema-updater.js +0 -676
- package/lib/browser/task-schema-updater.js.map +0 -1
- package/lib/browser/task-service.d.ts +0 -282
- package/lib/browser/task-service.d.ts.map +0 -1
- package/lib/browser/task-service.js +0 -1116
- package/lib/browser/task-service.js.map +0 -1
- package/lib/browser/task-source-resolver.d.ts +0 -10
- package/lib/browser/task-source-resolver.d.ts.map +0 -1
- package/lib/browser/task-source-resolver.js +0 -44
- package/lib/browser/task-source-resolver.js.map +0 -1
- package/lib/browser/task-templates.d.ts +0 -14
- package/lib/browser/task-templates.d.ts.map +0 -1
- package/lib/browser/task-templates.js +0 -158
- package/lib/browser/task-templates.js.map +0 -1
- package/lib/browser/task-terminal-widget-manager.d.ts +0 -45
- package/lib/browser/task-terminal-widget-manager.d.ts.map +0 -1
- package/lib/browser/task-terminal-widget-manager.js +0 -222
- package/lib/browser/task-terminal-widget-manager.js.map +0 -1
- package/lib/browser/tasks-monaco-contribution.d.ts +0 -2
- package/lib/browser/tasks-monaco-contribution.d.ts.map +0 -1
- package/lib/browser/tasks-monaco-contribution.js +0 -28
- package/lib/browser/tasks-monaco-contribution.js.map +0 -1
- package/lib/common/index.d.ts +0 -5
- package/lib/common/index.d.ts.map +0 -1
- package/lib/common/index.js +0 -23
- package/lib/common/index.js.map +0 -1
- package/lib/common/problem-matcher-protocol.d.ts +0 -125
- package/lib/common/problem-matcher-protocol.d.ts.map +0 -1
- package/lib/common/problem-matcher-protocol.js +0 -133
- package/lib/common/problem-matcher-protocol.js.map +0 -1
- package/lib/common/process/task-protocol.d.ts +0 -69
- package/lib/common/process/task-protocol.d.ts.map +0 -1
- package/lib/common/process/task-protocol.js +0 -34
- package/lib/common/process/task-protocol.js.map +0 -1
- package/lib/common/task-common-module.d.ts +0 -8
- package/lib/common/task-common-module.d.ts.map +0 -1
- package/lib/common/task-common-module.js +0 -29
- package/lib/common/task-common-module.js.map +0 -1
- package/lib/common/task-preferences.d.ts +0 -6
- package/lib/common/task-preferences.d.ts.map +0 -1
- package/lib/common/task-preferences.js +0 -41
- package/lib/common/task-preferences.js.map +0 -1
- package/lib/common/task-protocol.d.ts +0 -194
- package/lib/common/task-protocol.d.ts.map +0 -1
- package/lib/common/task-protocol.js +0 -138
- package/lib/common/task-protocol.js.map +0 -1
- package/lib/common/task-util.d.ts +0 -23
- package/lib/common/task-util.d.ts.map +0 -1
- package/lib/common/task-util.js +0 -47
- package/lib/common/task-util.js.map +0 -1
- package/lib/common/task-watcher.d.ts +0 -18
- package/lib/common/task-watcher.d.ts.map +0 -1
- package/lib/common/task-watcher.js +0 -82
- package/lib/common/task-watcher.js.map +0 -1
- package/lib/node/custom/custom-task-runner-backend-module.d.ts +0 -3
- package/lib/node/custom/custom-task-runner-backend-module.d.ts.map +0 -1
- package/lib/node/custom/custom-task-runner-backend-module.js +0 -37
- package/lib/node/custom/custom-task-runner-backend-module.js.map +0 -1
- package/lib/node/custom/custom-task-runner-contribution.d.ts +0 -7
- package/lib/node/custom/custom-task-runner-contribution.d.ts.map +0 -1
- package/lib/node/custom/custom-task-runner-contribution.js +0 -35
- package/lib/node/custom/custom-task-runner-contribution.js.map +0 -1
- package/lib/node/custom/custom-task-runner.d.ts +0 -16
- package/lib/node/custom/custom-task-runner.d.ts.map +0 -1
- package/lib/node/custom/custom-task-runner.js +0 -62
- package/lib/node/custom/custom-task-runner.js.map +0 -1
- package/lib/node/custom/custom-task.d.ts +0 -21
- package/lib/node/custom/custom-task.d.ts.map +0 -1
- package/lib/node/custom/custom-task.js +0 -68
- package/lib/node/custom/custom-task.js.map +0 -1
- package/lib/node/index.d.ts +0 -4
- package/lib/node/index.d.ts.map +0 -1
- package/lib/node/index.js +0 -22
- package/lib/node/index.js.map +0 -1
- package/lib/node/process/process-task-runner-backend-module.d.ts +0 -3
- package/lib/node/process/process-task-runner-backend-module.d.ts.map +0 -1
- package/lib/node/process/process-task-runner-backend-module.js +0 -37
- package/lib/node/process/process-task-runner-backend-module.js.map +0 -1
- package/lib/node/process/process-task-runner-contribution.d.ts +0 -7
- package/lib/node/process/process-task-runner-contribution.d.ts.map +0 -1
- package/lib/node/process/process-task-runner-contribution.js +0 -36
- package/lib/node/process/process-task-runner-contribution.js.map +0 -1
- package/lib/node/process/process-task-runner.d.ts +0 -61
- package/lib/node/process/process-task-runner.d.ts.map +0 -1
- package/lib/node/process/process-task-runner.js +0 -348
- package/lib/node/process/process-task-runner.js.map +0 -1
- package/lib/node/process/process-task.d.ts +0 -27
- package/lib/node/process/process-task.d.ts.map +0 -1
- package/lib/node/process/process-task.js +0 -125
- package/lib/node/process/process-task.js.map +0 -1
- package/lib/node/process/process-task.spec.d.ts +0 -2
- package/lib/node/process/process-task.spec.d.ts.map +0 -1
- package/lib/node/process/process-task.spec.js +0 -30
- package/lib/node/process/process-task.spec.js.map +0 -1
- package/lib/node/task-abstract-line-matcher.d.ts +0 -50
- package/lib/node/task-abstract-line-matcher.d.ts.map +0 -1
- package/lib/node/task-abstract-line-matcher.js +0 -274
- package/lib/node/task-abstract-line-matcher.js.map +0 -1
- package/lib/node/task-backend-application-contribution.d.ts +0 -9
- package/lib/node/task-backend-application-contribution.d.ts.map +0 -1
- package/lib/node/task-backend-application-contribution.js +0 -41
- package/lib/node/task-backend-application-contribution.js.map +0 -1
- package/lib/node/task-backend-module.d.ts +0 -4
- package/lib/node/task-backend-module.d.ts.map +0 -1
- package/lib/node/task-backend-module.js +0 -53
- package/lib/node/task-backend-module.js.map +0 -1
- package/lib/node/task-line-matchers.d.ts +0 -28
- package/lib/node/task-line-matchers.d.ts.map +0 -1
- package/lib/node/task-line-matchers.js +0 -122
- package/lib/node/task-line-matchers.js.map +0 -1
- package/lib/node/task-manager.d.ts +0 -56
- package/lib/node/task-manager.d.ts.map +0 -1
- package/lib/node/task-manager.js +0 -125
- package/lib/node/task-manager.js.map +0 -1
- package/lib/node/task-problem-collector.d.ts +0 -11
- package/lib/node/task-problem-collector.d.ts.map +0 -1
- package/lib/node/task-problem-collector.js +0 -58
- package/lib/node/task-problem-collector.js.map +0 -1
- package/lib/node/task-problem-collector.spec.d.ts +0 -2
- package/lib/node/task-problem-collector.spec.d.ts.map +0 -1
- package/lib/node/task-problem-collector.spec.js +0 -311
- package/lib/node/task-problem-collector.spec.js.map +0 -1
- package/lib/node/task-runner-protocol.d.ts +0 -17
- package/lib/node/task-runner-protocol.d.ts.map +0 -1
- package/lib/node/task-runner-protocol.js +0 -20
- package/lib/node/task-runner-protocol.js.map +0 -1
- package/lib/node/task-runner.d.ts +0 -51
- package/lib/node/task-runner.d.ts.map +0 -1
- package/lib/node/task-runner.js +0 -90
- package/lib/node/task-runner.js.map +0 -1
- package/lib/node/task-server.d.ts +0 -40
- package/lib/node/task-server.d.ts.map +0 -1
- package/lib/node/task-server.js +0 -232
- package/lib/node/task-server.js.map +0 -1
- package/lib/node/task-server.slow-spec.d.ts +0 -2
- package/lib/node/task-server.slow-spec.d.ts.map +0 -1
- package/lib/node/task-server.slow-spec.js +0 -395
- package/lib/node/task-server.slow-spec.js.map +0 -1
- package/lib/node/task.d.ts +0 -51
- package/lib/node/task.d.ts.map +0 -1
- package/lib/node/task.js +0 -73
- package/lib/node/task.js.map +0 -1
- package/lib/node/test/task-test-container.d.ts +0 -3
- package/lib/node/test/task-test-container.d.ts.map +0 -1
- package/lib/node/test/task-test-container.js +0 -59
- package/lib/node/test/task-test-container.js.map +0 -1
|
@@ -1,203 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,wCAAw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AC;CACJ,CAAA;AAxKY,wDAAsB;AAKrB;IADT,IAAA,yBAAa,GAAE;;;;kDAIf;iCARQ,sBAAsB;IADlC,IAAA,sBAAU,GAAE;GACA,sBAAsB,CAwKlC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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;AAC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