@theia/task 1.77.0-next.95 → 1.77.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/lib/browser/index.d.ts +6 -6
- package/lib/browser/index.d.ts.map +1 -1
- package/lib/browser/index.js +6 -9
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/process/process-task-contribution.d.ts +2 -2
- package/lib/browser/process/process-task-contribution.d.ts.map +1 -1
- package/lib/browser/process/process-task-contribution.js +8 -12
- package/lib/browser/process/process-task-contribution.js.map +1 -1
- package/lib/browser/process/process-task-frontend-module.js +7 -10
- package/lib/browser/process/process-task-frontend-module.js.map +1 -1
- package/lib/browser/process/process-task-resolver.d.ts +4 -4
- package/lib/browser/process/process-task-resolver.d.ts.map +1 -1
- package/lib/browser/process/process-task-resolver.js +18 -24
- package/lib/browser/process/process-task-resolver.js.map +1 -1
- package/lib/browser/process/process-task-resolver.spec.js +49 -52
- package/lib/browser/process/process-task-resolver.spec.js.map +1 -1
- package/lib/browser/provided-task-configurations.d.ts +3 -3
- package/lib/browser/provided-task-configurations.d.ts.map +1 -1
- package/lib/browser/provided-task-configurations.js +18 -23
- package/lib/browser/provided-task-configurations.js.map +1 -1
- package/lib/browser/provided-task-configurations.spec.js +14 -16
- package/lib/browser/provided-task-configurations.spec.js.map +1 -1
- package/lib/browser/quick-open-task.d.ts +7 -7
- package/lib/browser/quick-open-task.d.ts.map +1 -1
- package/lib/browser/quick-open-task.js +160 -199
- package/lib/browser/quick-open-task.js.map +1 -1
- package/lib/browser/task-configuration-manager.d.ts +4 -4
- package/lib/browser/task-configuration-manager.d.ts.map +1 -1
- package/lib/browser/task-configuration-manager.js +62 -78
- package/lib/browser/task-configuration-manager.js.map +1 -1
- package/lib/browser/task-configuration-model.d.ts +1 -1
- package/lib/browser/task-configuration-model.d.ts.map +1 -1
- package/lib/browser/task-configuration-model.js +9 -13
- package/lib/browser/task-configuration-model.js.map +1 -1
- package/lib/browser/task-configurations.d.ts +6 -6
- package/lib/browser/task-configurations.d.ts.map +1 -1
- package/lib/browser/task-configurations.js +41 -55
- package/lib/browser/task-configurations.js.map +1 -1
- package/lib/browser/task-context-key-service.js +13 -21
- package/lib/browser/task-context-key-service.js.map +1 -1
- package/lib/browser/task-contribution.d.ts +1 -1
- package/lib/browser/task-contribution.d.ts.map +1 -1
- package/lib/browser/task-contribution.js +20 -27
- package/lib/browser/task-contribution.js.map +1 -1
- package/lib/browser/task-definition-registry.d.ts +1 -1
- package/lib/browser/task-definition-registry.d.ts.map +1 -1
- package/lib/browser/task-definition-registry.js +12 -15
- package/lib/browser/task-definition-registry.js.map +1 -1
- package/lib/browser/task-definition-registry.spec.js +20 -22
- package/lib/browser/task-definition-registry.spec.js.map +1 -1
- package/lib/browser/task-frontend-contribution.d.ts +5 -5
- package/lib/browser/task-frontend-contribution.d.ts.map +1 -1
- package/lib/browser/task-frontend-contribution.js +83 -106
- package/lib/browser/task-frontend-contribution.js.map +1 -1
- package/lib/browser/task-frontend-module.d.ts +1 -1
- package/lib/browser/task-frontend-module.d.ts.map +1 -1
- package/lib/browser/task-frontend-module.js +64 -66
- package/lib/browser/task-frontend-module.js.map +1 -1
- package/lib/browser/task-name-resolver.d.ts +3 -3
- package/lib/browser/task-name-resolver.d.ts.map +1 -1
- package/lib/browser/task-name-resolver.js +11 -16
- package/lib/browser/task-name-resolver.js.map +1 -1
- package/lib/browser/task-node.d.ts +1 -1
- package/lib/browser/task-node.d.ts.map +1 -1
- package/lib/browser/task-node.js +1 -5
- package/lib/browser/task-node.js.map +1 -1
- package/lib/browser/task-problem-matcher-registry.d.ts +2 -2
- package/lib/browser/task-problem-matcher-registry.d.ts.map +1 -1
- package/lib/browser/task-problem-matcher-registry.js +64 -72
- package/lib/browser/task-problem-matcher-registry.js.map +1 -1
- package/lib/browser/task-problem-pattern-registry.d.ts +1 -1
- package/lib/browser/task-problem-pattern-registry.d.ts.map +1 -1
- package/lib/browser/task-problem-pattern-registry.js +30 -37
- package/lib/browser/task-problem-pattern-registry.js.map +1 -1
- package/lib/browser/task-schema-updater.d.ts +3 -3
- package/lib/browser/task-schema-updater.d.ts.map +1 -1
- package/lib/browser/task-schema-updater.js +116 -127
- package/lib/browser/task-schema-updater.js.map +1 -1
- package/lib/browser/task-service.d.ts +19 -15
- package/lib/browser/task-service.d.ts.map +1 -1
- package/lib/browser/task-service.js +170 -203
- package/lib/browser/task-service.js.map +1 -1
- package/lib/browser/task-service.spec.js +21 -24
- package/lib/browser/task-service.spec.js.map +1 -1
- package/lib/browser/task-source-resolver.d.ts +2 -2
- package/lib/browser/task-source-resolver.d.ts.map +1 -1
- package/lib/browser/task-source-resolver.js +10 -14
- package/lib/browser/task-source-resolver.js.map +1 -1
- package/lib/browser/task-templates.js +10 -13
- package/lib/browser/task-templates.js.map +1 -1
- package/lib/browser/task-terminal-widget-manager.d.ts +2 -2
- package/lib/browser/task-terminal-widget-manager.d.ts.map +1 -1
- package/lib/browser/task-terminal-widget-manager.js +39 -50
- package/lib/browser/task-terminal-widget-manager.js.map +1 -1
- package/lib/browser/tasks-monaco-contribution.js +1 -4
- package/lib/browser/tasks-monaco-contribution.js.map +1 -1
- package/lib/common/index.d.ts +4 -4
- package/lib/common/index.d.ts.map +1 -1
- package/lib/common/index.js +4 -7
- package/lib/common/index.js.map +1 -1
- package/lib/common/problem-matcher-protocol.js +17 -20
- package/lib/common/problem-matcher-protocol.js.map +1 -1
- package/lib/common/process/task-protocol.d.ts +1 -1
- package/lib/common/process/task-protocol.d.ts.map +1 -1
- package/lib/common/process/task-protocol.js +6 -9
- package/lib/common/process/task-protocol.js.map +1 -1
- package/lib/common/task-common-module.js +3 -6
- package/lib/common/task-common-module.js.map +1 -1
- package/lib/common/task-preferences.js +10 -14
- package/lib/common/task-preferences.js.map +1 -1
- package/lib/common/task-protocol.d.ts +1 -1
- package/lib/common/task-protocol.d.ts.map +1 -1
- package/lib/common/task-protocol.js +15 -18
- package/lib/common/task-protocol.js.map +1 -1
- package/lib/common/task-util.js +2 -6
- package/lib/common/task-util.js.map +1 -1
- package/lib/common/task-watcher.d.ts +1 -1
- package/lib/common/task-watcher.d.ts.map +1 -1
- package/lib/common/task-watcher.js +12 -15
- package/lib/common/task-watcher.js.map +1 -1
- package/lib/node/custom/custom-task-runner-backend-module.js +14 -17
- package/lib/node/custom/custom-task-runner-backend-module.js.map +1 -1
- package/lib/node/custom/custom-task-runner-contribution.d.ts +2 -2
- package/lib/node/custom/custom-task-runner-contribution.d.ts.map +1 -1
- package/lib/node/custom/custom-task-runner-contribution.js +8 -12
- package/lib/node/custom/custom-task-runner-contribution.js.map +1 -1
- package/lib/node/custom/custom-task-runner.d.ts +4 -4
- package/lib/node/custom/custom-task-runner.d.ts.map +1 -1
- package/lib/node/custom/custom-task-runner.js +15 -21
- package/lib/node/custom/custom-task-runner.js.map +1 -1
- package/lib/node/custom/custom-task.d.ts +4 -4
- package/lib/node/custom/custom-task.d.ts.map +1 -1
- package/lib/node/custom/custom-task.js +15 -19
- package/lib/node/custom/custom-task.js.map +1 -1
- package/lib/node/index.d.ts +3 -3
- package/lib/node/index.d.ts.map +1 -1
- package/lib/node/index.js +3 -6
- package/lib/node/index.js.map +1 -1
- package/lib/node/process/process-task-runner-backend-module.js +14 -17
- package/lib/node/process/process-task-runner-backend-module.js.map +1 -1
- package/lib/node/process/process-task-runner-contribution.d.ts +2 -2
- package/lib/node/process/process-task-runner-contribution.d.ts.map +1 -1
- package/lib/node/process/process-task-runner-contribution.js +8 -12
- package/lib/node/process/process-task-runner-contribution.js.map +1 -1
- package/lib/node/process/process-task-runner.d.ts +5 -5
- package/lib/node/process/process-task-runner.d.ts.map +1 -1
- package/lib/node/process/process-task-runner.js +37 -44
- package/lib/node/process/process-task-runner.js.map +1 -1
- package/lib/node/process/process-task.d.ts +5 -5
- package/lib/node/process/process-task.d.ts.map +1 -1
- package/lib/node/process/process-task.js +16 -21
- package/lib/node/process/process-task.js.map +1 -1
- package/lib/node/process/process-task.spec.js +6 -8
- package/lib/node/process/process-task.spec.js.map +1 -1
- package/lib/node/task-abstract-line-matcher.d.ts +1 -1
- package/lib/node/task-abstract-line-matcher.d.ts.map +1 -1
- package/lib/node/task-abstract-line-matcher.js +28 -33
- package/lib/node/task-abstract-line-matcher.js.map +1 -1
- package/lib/node/task-backend-application-contribution.d.ts +1 -1
- package/lib/node/task-backend-application-contribution.d.ts.map +1 -1
- package/lib/node/task-backend-application-contribution.js +12 -17
- package/lib/node/task-backend-application-contribution.js.map +1 -1
- package/lib/node/task-backend-module.js +27 -29
- package/lib/node/task-backend-module.js.map +1 -1
- package/lib/node/task-line-matchers.d.ts +2 -2
- package/lib/node/task-line-matchers.d.ts.map +1 -1
- package/lib/node/task-line-matchers.js +3 -8
- package/lib/node/task-line-matchers.js.map +1 -1
- package/lib/node/task-manager.d.ts +2 -2
- package/lib/node/task-manager.d.ts.map +1 -1
- package/lib/node/task-manager.js +9 -13
- package/lib/node/task-manager.js.map +1 -1
- package/lib/node/task-problem-collector.d.ts +1 -1
- package/lib/node/task-problem-collector.d.ts.map +1 -1
- package/lib/node/task-problem-collector.js +9 -13
- package/lib/node/task-problem-collector.js.map +1 -1
- package/lib/node/task-problem-collector.spec.js +63 -65
- package/lib/node/task-problem-collector.spec.js.map +1 -1
- package/lib/node/task-runner-protocol.d.ts +2 -2
- package/lib/node/task-runner-protocol.d.ts.map +1 -1
- package/lib/node/task-runner-protocol.js +1 -4
- package/lib/node/task-runner-protocol.js.map +1 -1
- package/lib/node/task-runner.d.ts +2 -2
- package/lib/node/task-runner.d.ts.map +1 -1
- package/lib/node/task-runner.js +13 -20
- package/lib/node/task-runner.js.map +1 -1
- package/lib/node/task-server.d.ts +5 -5
- package/lib/node/task-server.d.ts.map +1 -1
- package/lib/node/task-server.js +21 -27
- package/lib/node/task-server.js.map +1 -1
- package/lib/node/task-server.slow-spec.js +58 -60
- package/lib/node/task-server.slow-spec.js.map +1 -1
- package/lib/node/task.d.ts +2 -2
- package/lib/node/task.d.ts.map +1 -1
- package/lib/node/task.js +12 -16
- package/lib/node/task.js.map +1 -1
- package/lib/node/test/task-test-container.js +28 -32
- package/lib/node/test/task-test-container.js.map +1 -1
- package/package.json +24 -13
- package/src/browser/index.ts +6 -6
- package/src/browser/process/process-task-contribution.ts +2 -2
- package/src/browser/process/process-task-frontend-module.ts +3 -3
- package/src/browser/process/process-task-resolver.spec.ts +4 -4
- package/src/browser/process/process-task-resolver.ts +4 -4
- package/src/browser/provided-task-configurations.spec.ts +4 -4
- package/src/browser/provided-task-configurations.ts +3 -3
- package/src/browser/quick-open-task.ts +8 -8
- package/src/browser/task-configuration-manager.ts +6 -6
- package/src/browser/task-configuration-model.ts +2 -2
- package/src/browser/task-configurations.ts +6 -6
- package/src/browser/task-contribution.ts +1 -1
- package/src/browser/task-definition-registry.spec.ts +2 -2
- package/src/browser/task-definition-registry.ts +1 -1
- package/src/browser/task-frontend-contribution.ts +5 -5
- package/src/browser/task-frontend-module.ts +22 -22
- package/src/browser/task-name-resolver.ts +3 -3
- package/src/browser/task-node.ts +1 -1
- package/src/browser/task-problem-matcher-registry.ts +2 -2
- package/src/browser/task-problem-pattern-registry.ts +1 -1
- package/src/browser/task-schema-updater.ts +5 -5
- package/src/browser/task-service.spec.ts +4 -4
- package/src/browser/task-service.ts +20 -16
- package/src/browser/task-source-resolver.ts +2 -2
- package/src/browser/task-terminal-widget-manager.ts +3 -3
- package/src/common/index.ts +4 -4
- package/src/common/process/task-protocol.ts +1 -1
- package/src/common/task-common-module.ts +1 -1
- package/src/common/task-protocol.ts +1 -1
- package/src/common/task-watcher.ts +1 -1
- package/src/node/custom/custom-task-runner-backend-module.ts +4 -4
- package/src/node/custom/custom-task-runner-contribution.ts +2 -2
- package/src/node/custom/custom-task-runner.ts +4 -4
- package/src/node/custom/custom-task.ts +4 -4
- package/src/node/index.ts +3 -3
- package/src/node/process/process-task-runner-backend-module.ts +4 -4
- package/src/node/process/process-task-runner-contribution.ts +2 -2
- package/src/node/process/process-task-runner.ts +5 -5
- package/src/node/process/process-task.spec.ts +1 -1
- package/src/node/process/process-task.ts +5 -5
- package/src/node/task-abstract-line-matcher.ts +1 -1
- package/src/node/task-backend-application-contribution.ts +1 -1
- package/src/node/task-backend-module.ts +9 -9
- package/src/node/task-line-matchers.ts +2 -2
- package/src/node/task-manager.ts +2 -2
- package/src/node/task-problem-collector.spec.ts +2 -2
- package/src/node/task-problem-collector.ts +3 -3
- package/src/node/task-runner-protocol.ts +2 -2
- package/src/node/task-runner.ts +2 -2
- package/src/node/task-server.slow-spec.ts +4 -4
- package/src/node/task-server.ts +8 -8
- package/src/node/task.ts +2 -2
- package/src/node/test/task-test-container.ts +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2017 Ericsson and others.
|
|
4
3
|
//
|
|
@@ -14,75 +13,74 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
bind(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
bind(identifier).toService(task_frontend_contribution_1.TaskFrontendContribution);
|
|
16
|
+
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
17
|
+
import { FrontendApplicationContribution, KeybindingContribution } from '@theia/core/lib/browser';
|
|
18
|
+
import { CommandContribution, MenuContribution, bindRootContributionProvider, nls } from '@theia/core/lib/common';
|
|
19
|
+
import { WebSocketConnectionProvider } from '@theia/core/lib/browser/messaging';
|
|
20
|
+
import { QuickOpenTask, TaskTerminateQuickOpen, TaskRestartRunningQuickOpen, TaskRunningQuickOpen } from './quick-open-task.js';
|
|
21
|
+
import { TaskContribution, TaskProviderRegistry, TaskResolverRegistry } from './task-contribution.js';
|
|
22
|
+
import { TaskService } from './task-service.js';
|
|
23
|
+
import { TaskConfigurations } from './task-configurations.js';
|
|
24
|
+
import { ProvidedTaskConfigurations } from './provided-task-configurations.js';
|
|
25
|
+
import { TaskFrontendContribution } from './task-frontend-contribution.js';
|
|
26
|
+
import { createCommonBindings } from '../common/task-common-module.js';
|
|
27
|
+
import { TaskServer, taskPath } from '../common/task-protocol.js';
|
|
28
|
+
import { TaskWatcher } from '../common/task-watcher.js';
|
|
29
|
+
import { bindProcessTaskModule } from './process/process-task-frontend-module.js';
|
|
30
|
+
import { TaskSchemaUpdater } from './task-schema-updater.js';
|
|
31
|
+
import { TaskDefinitionRegistry } from './task-definition-registry.js';
|
|
32
|
+
import { ProblemMatcherRegistry } from './task-problem-matcher-registry.js';
|
|
33
|
+
import { ProblemPatternRegistry } from './task-problem-pattern-registry.js';
|
|
34
|
+
import { TaskConfigurationManager } from './task-configuration-manager.js';
|
|
35
|
+
import { bindTaskPreferences } from '../common/task-preferences.js';
|
|
36
|
+
import '../../src/browser/style/index.css';
|
|
37
|
+
import './tasks-monaco-contribution.js';
|
|
38
|
+
import { TaskNameResolver } from './task-name-resolver.js';
|
|
39
|
+
import { TaskSourceResolver } from './task-source-resolver.js';
|
|
40
|
+
import { TaskTemplateSelector } from './task-templates.js';
|
|
41
|
+
import { TaskTerminalWidgetManager } from './task-terminal-widget-manager.js';
|
|
42
|
+
import { JsonSchemaContribution } from '@theia/core/lib/browser/json-schema-store';
|
|
43
|
+
import { QuickAccessContribution } from '@theia/core/lib/browser/quick-input/quick-access';
|
|
44
|
+
import { TaskContextKeyService } from './task-context-key-service.js';
|
|
45
|
+
import { WorkspaceRestrictionContribution } from '@theia/workspace/lib/browser/workspace-trust-service';
|
|
46
|
+
export default new ContainerModule(bind => {
|
|
47
|
+
bind(TaskFrontendContribution).toSelf().inSingletonScope();
|
|
48
|
+
bind(TaskService).toSelf().inSingletonScope();
|
|
49
|
+
for (const identifier of [FrontendApplicationContribution, CommandContribution, KeybindingContribution, MenuContribution, QuickAccessContribution]) {
|
|
50
|
+
bind(identifier).toService(TaskFrontendContribution);
|
|
53
51
|
}
|
|
54
|
-
bind(
|
|
55
|
-
bind(
|
|
56
|
-
bind(
|
|
57
|
-
bind(
|
|
58
|
-
bind(
|
|
59
|
-
bind(
|
|
60
|
-
bind(
|
|
61
|
-
bind(
|
|
62
|
-
const connection = ctx.container.get(
|
|
63
|
-
const taskWatcher = ctx.container.get(
|
|
64
|
-
return connection.createProxy(
|
|
52
|
+
bind(QuickOpenTask).toSelf().inSingletonScope();
|
|
53
|
+
bind(TaskRunningQuickOpen).toSelf().inSingletonScope();
|
|
54
|
+
bind(TaskTerminateQuickOpen).toSelf().inSingletonScope();
|
|
55
|
+
bind(TaskRestartRunningQuickOpen).toSelf().inSingletonScope();
|
|
56
|
+
bind(TaskConfigurations).toSelf().inSingletonScope();
|
|
57
|
+
bind(ProvidedTaskConfigurations).toSelf().inSingletonScope();
|
|
58
|
+
bind(TaskConfigurationManager).toSelf().inSingletonScope();
|
|
59
|
+
bind(TaskServer).toDynamicValue(ctx => {
|
|
60
|
+
const connection = ctx.container.get(WebSocketConnectionProvider);
|
|
61
|
+
const taskWatcher = ctx.container.get(TaskWatcher);
|
|
62
|
+
return connection.createProxy(taskPath, taskWatcher.getTaskClient());
|
|
65
63
|
}).inSingletonScope();
|
|
66
|
-
bind(
|
|
67
|
-
bind(
|
|
68
|
-
bind(
|
|
69
|
-
|
|
70
|
-
bind(
|
|
71
|
-
bind(
|
|
72
|
-
|
|
73
|
-
bind(
|
|
74
|
-
bind(
|
|
75
|
-
bind(
|
|
76
|
-
bind(
|
|
77
|
-
bind(
|
|
78
|
-
bind(
|
|
79
|
-
bind(
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
bind(
|
|
64
|
+
bind(TaskDefinitionRegistry).toSelf().inSingletonScope();
|
|
65
|
+
bind(ProblemMatcherRegistry).toSelf().inSingletonScope();
|
|
66
|
+
bind(ProblemPatternRegistry).toSelf().inSingletonScope();
|
|
67
|
+
createCommonBindings(bind);
|
|
68
|
+
bind(TaskProviderRegistry).toSelf().inSingletonScope();
|
|
69
|
+
bind(TaskResolverRegistry).toSelf().inSingletonScope();
|
|
70
|
+
bindRootContributionProvider(bind, TaskContribution);
|
|
71
|
+
bind(TaskSchemaUpdater).toSelf().inSingletonScope();
|
|
72
|
+
bind(JsonSchemaContribution).toService(TaskSchemaUpdater);
|
|
73
|
+
bind(TaskNameResolver).toSelf().inSingletonScope();
|
|
74
|
+
bind(TaskSourceResolver).toSelf().inSingletonScope();
|
|
75
|
+
bind(TaskTemplateSelector).toSelf().inSingletonScope();
|
|
76
|
+
bind(TaskTerminalWidgetManager).toSelf().inSingletonScope();
|
|
77
|
+
bind(TaskContextKeyService).toSelf().inSingletonScope();
|
|
78
|
+
bindProcessTaskModule(bind);
|
|
79
|
+
bindTaskPreferences(bind);
|
|
80
|
+
bind(WorkspaceRestrictionContribution).toConstantValue({
|
|
83
81
|
getRestrictions() {
|
|
84
82
|
return [{
|
|
85
|
-
label:
|
|
83
|
+
label: nls.localize('theia/task/taskRestricted', 'Task execution is disabled in Restricted Mode')
|
|
86
84
|
}];
|
|
87
85
|
}
|
|
88
86
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-frontend-module.js","sourceRoot":"","sources":["../../src/browser/task-frontend-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"task-frontend-module.js","sourceRoot":"","sources":["../../src/browser/task-frontend-module.ts"],"names":[],"mappings":"A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iB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACpD,IAAI,CAAC,sBAAsB,CAAC,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC1D,IAAI,CAAC,gBAAgB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACnD,IAAI,CAAC,kBAAkB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACrD,IAAI,CAAC,oBAAoB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACvD,IAAI,CAAC,yBAAyB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC5D,IAAI,CAAC,qBAAqB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAExD,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAC5B,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAE1B,IAAI,CAAC,gCAAgC,CAAC,CAAC,eAAe,CAAC;QACnD,eAAe;YACX,OAAO,CAAC;oBACJ,KAAK,EAAE,GAAG,CAAC,QAAQ,CAAC,2BAA2B,EAAE,+CAA+C,CAAC;iBACpG,CAAC,CAAC;QACP,CAAC;KACJ,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TaskConfiguration } from '../common';
|
|
2
|
-
import { TaskDefinitionRegistry } from './task-definition-registry';
|
|
3
|
-
import { TaskConfigurations } from './task-configurations';
|
|
1
|
+
import { TaskConfiguration } from '../common/index.js';
|
|
2
|
+
import { TaskDefinitionRegistry } from './task-definition-registry.js';
|
|
3
|
+
import { TaskConfigurations } from './task-configurations.js';
|
|
4
4
|
export declare class TaskNameResolver {
|
|
5
5
|
protected taskDefinitionRegistry: TaskDefinitionRegistry;
|
|
6
6
|
protected readonly taskConfigurations: TaskConfigurations;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-name-resolver.d.ts","sourceRoot":"","sources":["../../src/browser/task-name-resolver.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"task-name-resolver.d.ts","sourceRoot":"","sources":["../../src/browser/task-name-resolver.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,qBACa,gBAAgB;IAEzB,SAAS,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;IAGzD,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAE1D;;;OAGG;IACH,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM;IAkBxC,OAAO,CAAC,cAAc;CAGzB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2019 Red Hat, Inc. and others.
|
|
4
3
|
//
|
|
@@ -14,12 +13,10 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const task_definition_registry_1 = require("./task-definition-registry");
|
|
22
|
-
const task_configurations_1 = require("./task-configurations");
|
|
16
|
+
import { __decorate } from "tslib";
|
|
17
|
+
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
18
|
+
import { TaskDefinitionRegistry } from './task-definition-registry.js';
|
|
19
|
+
import { TaskConfigurations } from './task-configurations.js';
|
|
23
20
|
let TaskNameResolver = class TaskNameResolver {
|
|
24
21
|
/**
|
|
25
22
|
* Returns task name to display.
|
|
@@ -45,16 +42,14 @@ let TaskNameResolver = class TaskNameResolver {
|
|
|
45
42
|
return !!this.taskDefinitionRegistry.getDefinition(task);
|
|
46
43
|
}
|
|
47
44
|
};
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
(0, inversify_1.inject)(task_definition_registry_1.TaskDefinitionRegistry),
|
|
51
|
-
tslib_1.__metadata("design:type", task_definition_registry_1.TaskDefinitionRegistry)
|
|
45
|
+
__decorate([
|
|
46
|
+
inject(TaskDefinitionRegistry)
|
|
52
47
|
], TaskNameResolver.prototype, "taskDefinitionRegistry", void 0);
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
tslib_1.__metadata("design:type", task_configurations_1.TaskConfigurations)
|
|
48
|
+
__decorate([
|
|
49
|
+
inject(TaskConfigurations)
|
|
56
50
|
], TaskNameResolver.prototype, "taskConfigurations", void 0);
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
TaskNameResolver = __decorate([
|
|
52
|
+
injectable()
|
|
59
53
|
], TaskNameResolver);
|
|
54
|
+
export { TaskNameResolver };
|
|
60
55
|
//# sourceMappingURL=task-name-resolver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-name-resolver.js","sourceRoot":"","sources":["../../src/browser/task-name-resolver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"task-name-resolver.js","sourceRoot":"","sources":["../../src/browser/task-name-resolver.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAElE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,kBA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],"mappings":"AAeA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"task-node.d.ts","sourceRoot":"","sources":["../../src/browser/task-node.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,qBAAa,QAAQ;IAEjB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,UAAU,EAAE,QAAQ,EAAE,CAAC;IACvB,SAAS,EAAE,iBAAiB,EAAE,CAAC;gBAEnB,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,iBAAiB,EAAE;IAM7F,kBAAkB,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI;IAIxC,mBAAmB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI;CAGzD"}
|
package/lib/browser/task-node.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TaskNode = void 0;
|
|
4
|
-
class TaskNode {
|
|
1
|
+
export class TaskNode {
|
|
5
2
|
constructor(taskId, childTasks, parentsID) {
|
|
6
3
|
this.taskId = taskId;
|
|
7
4
|
this.childTasks = childTasks;
|
|
@@ -14,5 +11,4 @@ class TaskNode {
|
|
|
14
11
|
this.parentsID.push(parentId);
|
|
15
12
|
}
|
|
16
13
|
}
|
|
17
|
-
exports.TaskNode = TaskNode;
|
|
18
14
|
//# sourceMappingURL=task-node.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-node.js","sourceRoot":"","sources":["../../src/browser/task-node.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"task-node.js","sourceRoot":"","sources":["../../src/browser/task-node.ts"],"names":[],"mappings":"AAiBA,MAAM,OAAO,QAAQ;IAMjB,YAAY,MAAyB,EAAE,UAAsB,EAAE,SAA8B;QACzF,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IAED,kBAAkB,CAAC,IAAc;QAC7B,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED,mBAAmB,CAAC,QAA2B;QAC3C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;CACJ"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Event, Emitter } from '@theia/core/lib/common';
|
|
2
2
|
import { Disposable, DisposableCollection } from '@theia/core/lib/common/disposable';
|
|
3
|
-
import { NamedProblemMatcher, ProblemMatcher, ProblemMatcherContribution } from '../common';
|
|
4
|
-
import { ProblemPatternRegistry } from './task-problem-pattern-registry';
|
|
3
|
+
import { NamedProblemMatcher, ProblemMatcher, ProblemMatcherContribution } from '../common/index.js';
|
|
4
|
+
import { ProblemPatternRegistry } from './task-problem-pattern-registry.js';
|
|
5
5
|
import { ILogger } from '@theia/core';
|
|
6
6
|
export declare class ProblemMatcherRegistry {
|
|
7
7
|
private readonly matchers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-problem-matcher-registry.d.ts","sourceRoot":"","sources":["../../src/browser/task-problem-matcher-registry.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAO,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAC4B,mBAAmB,EAClC,cAAc,EAAE,0BAA0B,EAE7D,MAAM,
|
|
1
|
+
{"version":3,"file":"task-problem-matcher-registry.d.ts","sourceRoot":"","sources":["../../src/browser/task-problem-matcher-registry.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAO,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAC4B,mBAAmB,EAClC,cAAc,EAAE,0BAA0B,EAE7D,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAG5E,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,qBACa,sBAAsB;IAE/B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA0C;IACnE,OAAO,CAAC,YAAY,CAAwB;IAG5C,SAAS,CAAC,QAAQ,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;IAGlE,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IAEnC,SAAS,CAAC,QAAQ,CAAC,gCAAgC,gBAAuB;IAC1E,IAAI,yBAAyB,IAAI,KAAK,CAAC,IAAI,CAAC,CAE3C;IAGD,SAAS,CAAC,IAAI,IAAI,IAAI;IAQtB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxB;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,0BAA0B,GAAG,UAAU;cAazC,UAAU,CAAC,OAAO,EAAE,0BAA0B,EAAE,SAAS,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ/G;;;;;OAKG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS;IAIlD;;OAEG;IACH,MAAM,IAAI,mBAAmB,EAAE;IAS/B;;;;OAIG;IACG,iCAAiC,CAAC,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC,cAAc,CAAC;IA4ErG,OAAO,CAAC,GAAG;IAKX,OAAO,CAAC,4BAA4B;IA4BpC,OAAO,CAAC,YAAY;CAqFvB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2019 Ericsson and others.
|
|
4
3
|
//
|
|
@@ -14,26 +13,24 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
exports.ProblemMatcherRegistry = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
16
|
+
import { __decorate } from "tslib";
|
|
20
17
|
/*---------------------------------------------------------------------------------------------
|
|
21
18
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
22
19
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
23
20
|
*--------------------------------------------------------------------------------------------*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
import { inject, injectable, postConstruct, named } from '@theia/core/shared/inversify';
|
|
22
|
+
import { Emitter, nls } from '@theia/core/lib/common';
|
|
23
|
+
import { Disposable, DisposableCollection } from '@theia/core/lib/common/disposable';
|
|
24
|
+
import { ApplyToKind, FileLocationKind, ProblemPattern, WatchingMatcher, fromVariableName } from '../common/index.js';
|
|
25
|
+
import { ProblemPatternRegistry } from './task-problem-pattern-registry.js';
|
|
26
|
+
import { Severity } from '@theia/core/lib/common/severity';
|
|
27
|
+
import { Deferred } from '@theia/core/lib/common/promise-util';
|
|
28
|
+
import { ILogger } from '@theia/core';
|
|
32
29
|
let ProblemMatcherRegistry = class ProblemMatcherRegistry {
|
|
33
30
|
constructor() {
|
|
34
31
|
this.matchers = new Map();
|
|
35
|
-
this.readyPromise = new
|
|
36
|
-
this.onDidChangeProblemMatcherEmitter = new
|
|
32
|
+
this.readyPromise = new Deferred();
|
|
33
|
+
this.onDidChangeProblemMatcherEmitter = new Emitter();
|
|
37
34
|
}
|
|
38
35
|
get onDidChangeProblemMatcher() {
|
|
39
36
|
return this.onDidChangeProblemMatcherEmitter.event;
|
|
@@ -56,9 +53,9 @@ let ProblemMatcherRegistry = class ProblemMatcherRegistry {
|
|
|
56
53
|
register(matcher) {
|
|
57
54
|
if (!matcher.name) {
|
|
58
55
|
this.logger.error('Only named Problem Matchers can be registered.');
|
|
59
|
-
return
|
|
56
|
+
return Disposable.NULL;
|
|
60
57
|
}
|
|
61
|
-
const toDispose = new
|
|
58
|
+
const toDispose = new DisposableCollection(Disposable.create(() => {
|
|
62
59
|
/* mark as not disposed */
|
|
63
60
|
this.onDidChangeProblemMatcherEmitter.fire(undefined);
|
|
64
61
|
}));
|
|
@@ -79,7 +76,7 @@ let ProblemMatcherRegistry = class ProblemMatcherRegistry {
|
|
|
79
76
|
* @return the problem matcher. If the task definition is not found, `undefined` is returned.
|
|
80
77
|
*/
|
|
81
78
|
get(name) {
|
|
82
|
-
return this.matchers.get(
|
|
79
|
+
return this.matchers.get(fromVariableName(name));
|
|
83
80
|
}
|
|
84
81
|
/**
|
|
85
82
|
* Returns all registered problem matchers in the registry.
|
|
@@ -105,7 +102,7 @@ let ProblemMatcherRegistry = class ProblemMatcherRegistry {
|
|
|
105
102
|
let fileLocation;
|
|
106
103
|
let filePrefix;
|
|
107
104
|
if (matcher.fileLocation === undefined) {
|
|
108
|
-
fileLocation = baseMatcher ? baseMatcher.fileLocation :
|
|
105
|
+
fileLocation = baseMatcher ? baseMatcher.fileLocation : FileLocationKind.Relative;
|
|
109
106
|
filePrefix = baseMatcher ? baseMatcher.filePrefix : '${workspaceFolder}';
|
|
110
107
|
}
|
|
111
108
|
else {
|
|
@@ -117,7 +114,7 @@ let ProblemMatcherRegistry = class ProblemMatcherRegistry {
|
|
|
117
114
|
if (matcher.pattern) {
|
|
118
115
|
if (typeof matcher.pattern === 'string') {
|
|
119
116
|
await this.problemPatternRegistry.onReady();
|
|
120
|
-
const registeredPattern = this.problemPatternRegistry.get(
|
|
117
|
+
const registeredPattern = this.problemPatternRegistry.get(fromVariableName(matcher.pattern));
|
|
121
118
|
if (Array.isArray(registeredPattern)) {
|
|
122
119
|
patterns.push(...registeredPattern);
|
|
123
120
|
}
|
|
@@ -126,10 +123,10 @@ let ProblemMatcherRegistry = class ProblemMatcherRegistry {
|
|
|
126
123
|
}
|
|
127
124
|
}
|
|
128
125
|
else if (Array.isArray(matcher.pattern)) {
|
|
129
|
-
patterns.push(...matcher.pattern.map(p =>
|
|
126
|
+
patterns.push(...matcher.pattern.map(p => ProblemPattern.fromProblemPatternContribution(p)));
|
|
130
127
|
}
|
|
131
128
|
else {
|
|
132
|
-
patterns.push(
|
|
129
|
+
patterns.push(ProblemPattern.fromProblemPatternContribution(matcher.pattern));
|
|
133
130
|
}
|
|
134
131
|
}
|
|
135
132
|
else if (baseMatcher) {
|
|
@@ -146,16 +143,16 @@ let ProblemMatcherRegistry = class ProblemMatcherRegistry {
|
|
|
146
143
|
}
|
|
147
144
|
let applyTo;
|
|
148
145
|
if (matcher.applyTo === undefined) {
|
|
149
|
-
applyTo = baseMatcher ? baseMatcher.applyTo :
|
|
146
|
+
applyTo = baseMatcher ? baseMatcher.applyTo : ApplyToKind.allDocuments;
|
|
150
147
|
}
|
|
151
148
|
else {
|
|
152
|
-
applyTo =
|
|
149
|
+
applyTo = ApplyToKind.fromString(matcher.applyTo) || ApplyToKind.allDocuments;
|
|
153
150
|
}
|
|
154
|
-
let severity =
|
|
151
|
+
let severity = Severity.fromValue(matcher.severity);
|
|
155
152
|
if (matcher.severity === undefined && baseMatcher && baseMatcher.severity !== undefined) {
|
|
156
153
|
severity = baseMatcher.severity;
|
|
157
154
|
}
|
|
158
|
-
let watching =
|
|
155
|
+
let watching = WatchingMatcher.fromWatchingMatcherContribution(matcher.background || matcher.watching);
|
|
159
156
|
if (watching === undefined && baseMatcher) {
|
|
160
157
|
watching = baseMatcher.watching;
|
|
161
158
|
}
|
|
@@ -176,29 +173,29 @@ let ProblemMatcherRegistry = class ProblemMatcherRegistry {
|
|
|
176
173
|
}
|
|
177
174
|
add(matcher) {
|
|
178
175
|
this.matchers.set(matcher.name, matcher);
|
|
179
|
-
return
|
|
176
|
+
return Disposable.create(() => this.matchers.delete(matcher.name));
|
|
180
177
|
}
|
|
181
178
|
getFileLocationKindAndPrefix(matcher) {
|
|
182
|
-
let fileLocation =
|
|
179
|
+
let fileLocation = FileLocationKind.Relative;
|
|
183
180
|
let filePrefix = '${workspaceFolder}';
|
|
184
181
|
if (matcher.fileLocation !== undefined) {
|
|
185
182
|
if (Array.isArray(matcher.fileLocation)) {
|
|
186
183
|
if (matcher.fileLocation.length > 0) {
|
|
187
|
-
const locationKind =
|
|
188
|
-
if (matcher.fileLocation.length === 1 && locationKind ===
|
|
184
|
+
const locationKind = FileLocationKind.fromString(matcher.fileLocation[0]);
|
|
185
|
+
if (matcher.fileLocation.length === 1 && locationKind === FileLocationKind.Absolute) {
|
|
189
186
|
fileLocation = locationKind;
|
|
190
187
|
}
|
|
191
|
-
else if (matcher.fileLocation.length === 2 && locationKind ===
|
|
188
|
+
else if (matcher.fileLocation.length === 2 && locationKind === FileLocationKind.Relative && matcher.fileLocation[1]) {
|
|
192
189
|
fileLocation = locationKind;
|
|
193
190
|
filePrefix = matcher.fileLocation[1];
|
|
194
191
|
}
|
|
195
192
|
}
|
|
196
193
|
}
|
|
197
194
|
else {
|
|
198
|
-
const locationKind =
|
|
195
|
+
const locationKind = FileLocationKind.fromString(matcher.fileLocation);
|
|
199
196
|
if (locationKind) {
|
|
200
197
|
fileLocation = locationKind;
|
|
201
|
-
if (locationKind ===
|
|
198
|
+
if (locationKind === FileLocationKind.Relative) {
|
|
202
199
|
filePrefix = '${workspaceFolder}';
|
|
203
200
|
}
|
|
204
201
|
}
|
|
@@ -210,99 +207,94 @@ let ProblemMatcherRegistry = class ProblemMatcherRegistry {
|
|
|
210
207
|
fillDefaults() {
|
|
211
208
|
this.add({
|
|
212
209
|
name: 'msCompile',
|
|
213
|
-
label:
|
|
210
|
+
label: nls.localizeByDefault('Microsoft compiler problems'),
|
|
214
211
|
owner: 'msCompile',
|
|
215
|
-
applyTo:
|
|
216
|
-
fileLocation:
|
|
212
|
+
applyTo: ApplyToKind.allDocuments,
|
|
213
|
+
fileLocation: FileLocationKind.Absolute,
|
|
217
214
|
pattern: (this.problemPatternRegistry.get('msCompile'))
|
|
218
215
|
});
|
|
219
216
|
this.add({
|
|
220
217
|
name: 'lessCompile',
|
|
221
|
-
label:
|
|
218
|
+
label: nls.localizeByDefault('Less problems'),
|
|
222
219
|
deprecated: true,
|
|
223
220
|
owner: 'lessCompile',
|
|
224
221
|
source: 'less',
|
|
225
|
-
applyTo:
|
|
226
|
-
fileLocation:
|
|
222
|
+
applyTo: ApplyToKind.allDocuments,
|
|
223
|
+
fileLocation: FileLocationKind.Absolute,
|
|
227
224
|
pattern: (this.problemPatternRegistry.get('lessCompile')),
|
|
228
|
-
severity:
|
|
225
|
+
severity: Severity.Error
|
|
229
226
|
});
|
|
230
227
|
this.add({
|
|
231
228
|
name: 'gulp-tsc',
|
|
232
|
-
label:
|
|
229
|
+
label: nls.localizeByDefault('Gulp TSC Problems'),
|
|
233
230
|
owner: 'typescript',
|
|
234
231
|
source: 'ts',
|
|
235
|
-
applyTo:
|
|
236
|
-
fileLocation:
|
|
232
|
+
applyTo: ApplyToKind.closedDocuments,
|
|
233
|
+
fileLocation: FileLocationKind.Relative,
|
|
237
234
|
filePrefix: '${workspaceFolder}',
|
|
238
235
|
pattern: (this.problemPatternRegistry.get('gulp-tsc'))
|
|
239
236
|
});
|
|
240
237
|
this.add({
|
|
241
238
|
name: 'jshint',
|
|
242
|
-
label:
|
|
239
|
+
label: nls.localizeByDefault('JSHint problems'),
|
|
243
240
|
owner: 'jshint',
|
|
244
241
|
source: 'jshint',
|
|
245
|
-
applyTo:
|
|
246
|
-
fileLocation:
|
|
242
|
+
applyTo: ApplyToKind.allDocuments,
|
|
243
|
+
fileLocation: FileLocationKind.Absolute,
|
|
247
244
|
pattern: (this.problemPatternRegistry.get('jshint'))
|
|
248
245
|
});
|
|
249
246
|
this.add({
|
|
250
247
|
name: 'jshint-stylish',
|
|
251
|
-
label:
|
|
248
|
+
label: nls.localizeByDefault('JSHint stylish problems'),
|
|
252
249
|
owner: 'jshint',
|
|
253
250
|
source: 'jshint',
|
|
254
|
-
applyTo:
|
|
255
|
-
fileLocation:
|
|
251
|
+
applyTo: ApplyToKind.allDocuments,
|
|
252
|
+
fileLocation: FileLocationKind.Absolute,
|
|
256
253
|
pattern: (this.problemPatternRegistry.get('jshint-stylish'))
|
|
257
254
|
});
|
|
258
255
|
this.add({
|
|
259
256
|
name: 'eslint-compact',
|
|
260
|
-
label:
|
|
257
|
+
label: nls.localizeByDefault('ESLint compact problems'),
|
|
261
258
|
owner: 'eslint',
|
|
262
259
|
source: 'eslint',
|
|
263
|
-
applyTo:
|
|
264
|
-
fileLocation:
|
|
260
|
+
applyTo: ApplyToKind.allDocuments,
|
|
261
|
+
fileLocation: FileLocationKind.Absolute,
|
|
265
262
|
filePrefix: '${workspaceFolder}',
|
|
266
263
|
pattern: (this.problemPatternRegistry.get('eslint-compact'))
|
|
267
264
|
});
|
|
268
265
|
this.add({
|
|
269
266
|
name: 'eslint-stylish',
|
|
270
|
-
label:
|
|
267
|
+
label: nls.localizeByDefault('ESLint stylish problems'),
|
|
271
268
|
owner: 'eslint',
|
|
272
269
|
source: 'eslint',
|
|
273
|
-
applyTo:
|
|
274
|
-
fileLocation:
|
|
270
|
+
applyTo: ApplyToKind.allDocuments,
|
|
271
|
+
fileLocation: FileLocationKind.Absolute,
|
|
275
272
|
pattern: (this.problemPatternRegistry.get('eslint-stylish'))
|
|
276
273
|
});
|
|
277
274
|
this.add({
|
|
278
275
|
name: 'go',
|
|
279
|
-
label:
|
|
276
|
+
label: nls.localizeByDefault('Go problems'),
|
|
280
277
|
owner: 'go',
|
|
281
278
|
source: 'go',
|
|
282
|
-
applyTo:
|
|
283
|
-
fileLocation:
|
|
279
|
+
applyTo: ApplyToKind.allDocuments,
|
|
280
|
+
fileLocation: FileLocationKind.Relative,
|
|
284
281
|
filePrefix: '${workspaceFolder}',
|
|
285
282
|
pattern: (this.problemPatternRegistry.get('go'))
|
|
286
283
|
});
|
|
287
284
|
}
|
|
288
285
|
};
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
(0, inversify_1.inject)(task_problem_pattern_registry_1.ProblemPatternRegistry),
|
|
292
|
-
tslib_1.__metadata("design:type", task_problem_pattern_registry_1.ProblemPatternRegistry)
|
|
286
|
+
__decorate([
|
|
287
|
+
inject(ProblemPatternRegistry)
|
|
293
288
|
], ProblemMatcherRegistry.prototype, "problemPatternRegistry", void 0);
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
tslib_1.__metadata("design:type", Object)
|
|
289
|
+
__decorate([
|
|
290
|
+
inject(ILogger),
|
|
291
|
+
named('task:ProblemMatcherRegistry')
|
|
298
292
|
], ProblemMatcherRegistry.prototype, "logger", void 0);
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
tslib_1.__metadata("design:type", Function),
|
|
302
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
303
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
293
|
+
__decorate([
|
|
294
|
+
postConstruct()
|
|
304
295
|
], ProblemMatcherRegistry.prototype, "init", null);
|
|
305
|
-
|
|
306
|
-
|
|
296
|
+
ProblemMatcherRegistry = __decorate([
|
|
297
|
+
injectable()
|
|
307
298
|
], ProblemMatcherRegistry);
|
|
299
|
+
export { ProblemMatcherRegistry };
|
|
308
300
|
//# sourceMappingURL=task-problem-matcher-registry.js.map
|