@theia/task 1.77.0-next.1 → 1.77.0-next.108
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 +8 -4
- package/lib/browser/process/process-task-resolver.d.ts.map +1 -1
- package/lib/browser/process/process-task-resolver.js +50 -44
- package/lib/browser/process/process-task-resolver.js.map +1 -1
- package/lib/browser/process/process-task-resolver.spec.d.ts +2 -0
- package/lib/browser/process/process-task-resolver.spec.d.ts.map +1 -0
- package/lib/browser/process/process-task-resolver.spec.js +215 -0
- package/lib/browser/process/process-task-resolver.spec.js.map +1 -0
- 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 +61 -77
- 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 +8 -12
- 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 +4 -4
- package/lib/browser/task-schema-updater.d.ts.map +1 -1
- package/lib/browser/task-schema-updater.js +115 -126
- package/lib/browser/task-schema-updater.js.map +1 -1
- package/lib/browser/task-service.d.ts +14 -14
- package/lib/browser/task-service.d.ts.map +1 -1
- package/lib/browser/task-service.js +168 -202
- package/lib/browser/task-service.js.map +1 -1
- package/lib/browser/task-service.spec.d.ts +2 -0
- package/lib/browser/task-service.spec.d.ts.map +1 -0
- package/lib/browser/task-service.spec.js +91 -0
- package/lib/browser/task-service.spec.js.map +1 -0
- 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 -3
- 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 -32
- 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.d.ts.map +1 -1
- package/lib/node/task-server.slow-spec.js +58 -61
- 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 -31
- package/lib/node/test/task-test-container.js.map +1 -1
- package/package.json +23 -12
- 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 +247 -0
- package/src/browser/process/process-task-resolver.ts +44 -27
- 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 +5 -5
- package/src/browser/task-configuration-model.ts +1 -1
- 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 +6 -6
- package/src/browser/task-service.spec.ts +102 -0
- package/src/browser/task-service.ts +20 -17
- 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 -5
- 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,50 +13,48 @@
|
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
const terminal_preferences_1 = require("@theia/terminal/lib/common/terminal-preferences");
|
|
56
|
-
var TaskEndedTypes;
|
|
16
|
+
import { __decorate } from "tslib";
|
|
17
|
+
import { ApplicationShell, FrontendApplication, WidgetManager } from '@theia/core/lib/browser';
|
|
18
|
+
import { open, OpenerService } from '@theia/core/lib/browser/opener-service';
|
|
19
|
+
import { CommandService, ILogger, isCancelled, nls } from '@theia/core/lib/common';
|
|
20
|
+
import { MessageService } from '@theia/core/lib/common/message-service';
|
|
21
|
+
import { Deferred } from '@theia/core/lib/common/promise-util';
|
|
22
|
+
import { QuickPickService } from '@theia/core/lib/common/quick-pick-service';
|
|
23
|
+
import { LabelProvider } from '@theia/core/lib/browser/label-provider';
|
|
24
|
+
import URI from '@theia/core/lib/common/uri';
|
|
25
|
+
import { EditorManager } from '@theia/editor/lib/browser';
|
|
26
|
+
import { ProblemManager } from '@theia/markers/lib/browser/problem/problem-manager';
|
|
27
|
+
import { TerminalService } from '@theia/terminal/lib/browser/base/terminal-service';
|
|
28
|
+
import { nextTerminalCreationToken } from '@theia/terminal/lib/browser/terminal-widget-impl';
|
|
29
|
+
import { VariableResolverService } from '@theia/variable-resolver/lib/browser';
|
|
30
|
+
import { WorkspaceService } from '@theia/workspace/lib/browser/workspace-service';
|
|
31
|
+
import { WorkspaceTrustService } from '@theia/workspace/lib/browser';
|
|
32
|
+
import { inject, injectable, named, postConstruct } from '@theia/core/shared/inversify';
|
|
33
|
+
import { DiagnosticSeverity, Range } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
34
|
+
import { ApplyToKind, DependsOrder, ProblemMatchData, RevealKind, TaskOutputPresentation, TaskServer, asVariableName } from '../common/index.js';
|
|
35
|
+
import { TaskWatcher } from '../common/task-watcher.js';
|
|
36
|
+
import { ProvidedTaskConfigurations } from './provided-task-configurations.js';
|
|
37
|
+
import { TaskConfigurations } from './task-configurations.js';
|
|
38
|
+
import { TaskResolverRegistry } from './task-contribution.js';
|
|
39
|
+
import { TaskDefinitionRegistry } from './task-definition-registry.js';
|
|
40
|
+
import { TaskNameResolver } from './task-name-resolver.js';
|
|
41
|
+
import { TaskSourceResolver } from './task-source-resolver.js';
|
|
42
|
+
import { ProblemMatcherRegistry } from './task-problem-matcher-registry.js';
|
|
43
|
+
import { TaskSchemaUpdater } from './task-schema-updater.js';
|
|
44
|
+
import { TaskConfigurationManager } from './task-configuration-manager.js';
|
|
45
|
+
import { PROBLEMS_WIDGET_ID } from '@theia/markers/lib/browser/problem/problem-widget';
|
|
46
|
+
import { TaskNode } from './task-node.js';
|
|
47
|
+
import { MonacoWorkspace } from '@theia/monaco/lib/browser/monaco-workspace';
|
|
48
|
+
import { TaskTerminalWidgetManager } from './task-terminal-widget-manager.js';
|
|
49
|
+
import { ShellTerminalServerProxy } from '@theia/terminal/lib/common/shell-terminal-protocol';
|
|
50
|
+
import { Mutex } from 'async-mutex';
|
|
51
|
+
import { TaskContextKeyService } from './task-context-key-service.js';
|
|
52
|
+
import { TerminalPreferences } from '@theia/terminal/lib/common/terminal-preferences';
|
|
53
|
+
export var TaskEndedTypes;
|
|
57
54
|
(function (TaskEndedTypes) {
|
|
58
55
|
TaskEndedTypes[TaskEndedTypes["TaskExited"] = 0] = "TaskExited";
|
|
59
56
|
TaskEndedTypes[TaskEndedTypes["BackgroundTaskEnded"] = 1] = "BackgroundTaskEnded";
|
|
60
|
-
})(TaskEndedTypes || (
|
|
57
|
+
})(TaskEndedTypes || (TaskEndedTypes = {}));
|
|
61
58
|
let TaskService = class TaskService {
|
|
62
59
|
constructor() {
|
|
63
60
|
/**
|
|
@@ -66,14 +63,14 @@ let TaskService = class TaskService {
|
|
|
66
63
|
this.lastTask = { resolvedTask: undefined, option: undefined };
|
|
67
64
|
this.cachedRecentTasks = [];
|
|
68
65
|
this.runningTasks = new Map();
|
|
69
|
-
this.taskStartingLock = new
|
|
66
|
+
this.taskStartingLock = new Mutex();
|
|
70
67
|
}
|
|
71
68
|
init() {
|
|
72
69
|
this.getRunningTasks().then(tasks => tasks.forEach(task => {
|
|
73
70
|
if (!this.runningTasks.has(task.taskId)) {
|
|
74
71
|
this.runningTasks.set(task.taskId, {
|
|
75
|
-
exitCode: new
|
|
76
|
-
isBackgroundTaskEnded: new
|
|
72
|
+
exitCode: new Deferred(), terminateSignal: new Deferred(),
|
|
73
|
+
isBackgroundTaskEnded: new Deferred()
|
|
77
74
|
});
|
|
78
75
|
}
|
|
79
76
|
}));
|
|
@@ -83,9 +80,9 @@ let TaskService = class TaskService {
|
|
|
83
80
|
return;
|
|
84
81
|
}
|
|
85
82
|
this.runningTasks.set(event.taskId, {
|
|
86
|
-
exitCode: new
|
|
87
|
-
terminateSignal: new
|
|
88
|
-
isBackgroundTaskEnded: new
|
|
83
|
+
exitCode: new Deferred(),
|
|
84
|
+
terminateSignal: new Deferred(),
|
|
85
|
+
isBackgroundTaskEnded: new Deferred()
|
|
89
86
|
});
|
|
90
87
|
});
|
|
91
88
|
this.taskWatcher.onOutputProcessed(async (event) => {
|
|
@@ -100,14 +97,14 @@ let TaskService = class TaskService {
|
|
|
100
97
|
return this.taskDefinitionRegistry.compareTasks(taskConfig, event.config);
|
|
101
98
|
});
|
|
102
99
|
const isTaskActiveAndOutputSilent = matchedRunningTaskInfo &&
|
|
103
|
-
matchedRunningTaskInfo.config.presentation && matchedRunningTaskInfo.config.presentation.reveal ===
|
|
100
|
+
matchedRunningTaskInfo.config.presentation && matchedRunningTaskInfo.config.presentation.reveal === RevealKind.Silent;
|
|
104
101
|
event.problems.forEach(problem => {
|
|
105
102
|
const existingMarkers = this.problemManager.findMarkers({ owner: problem.description.owner });
|
|
106
103
|
const uris = new Set();
|
|
107
104
|
existingMarkers.forEach(marker => uris.add(marker.uri));
|
|
108
|
-
if (
|
|
105
|
+
if (ProblemMatchData.is(problem) && problem.resource) {
|
|
109
106
|
// When task.presentation.reveal === RevealKind.Silent, put focus on the terminal only if it is an error
|
|
110
|
-
if (isTaskActiveAndOutputSilent && problem.marker.severity ===
|
|
107
|
+
if (isTaskActiveAndOutputSilent && problem.marker.severity === DiagnosticSeverity.Error) {
|
|
111
108
|
const terminalId = matchedRunningTaskInfo.terminalId;
|
|
112
109
|
if (terminalId) {
|
|
113
110
|
const terminal = this.terminalService.getByTerminalId(terminalId);
|
|
@@ -124,9 +121,9 @@ let TaskService = class TaskService {
|
|
|
124
121
|
}
|
|
125
122
|
const uri = problem.resource.withScheme(problem.resource.scheme);
|
|
126
123
|
const document = this.monacoWorkspace.getTextDocument(uri.toString());
|
|
127
|
-
if (problem.description.applyTo ===
|
|
128
|
-
problem.description.applyTo ===
|
|
129
|
-
problem.description.applyTo ===
|
|
124
|
+
if (problem.description.applyTo === ApplyToKind.openDocuments && !!document ||
|
|
125
|
+
problem.description.applyTo === ApplyToKind.closedDocuments && !document ||
|
|
126
|
+
problem.description.applyTo === ApplyToKind.allDocuments) {
|
|
130
127
|
if (uris.has(uri.toString())) {
|
|
131
128
|
const newData = [
|
|
132
129
|
...existingMarkers
|
|
@@ -142,7 +139,7 @@ let TaskService = class TaskService {
|
|
|
142
139
|
}
|
|
143
140
|
}
|
|
144
141
|
else { // should have received an event for finding the "background task begins" pattern
|
|
145
|
-
uris.forEach(uriString => this.problemManager.setMarkers(new
|
|
142
|
+
uris.forEach(uriString => this.problemManager.setMarkers(new URI(uriString), problem.description.owner, []));
|
|
146
143
|
}
|
|
147
144
|
});
|
|
148
145
|
}
|
|
@@ -153,9 +150,9 @@ let TaskService = class TaskService {
|
|
|
153
150
|
}
|
|
154
151
|
if (!this.runningTasks.has(event.taskId)) {
|
|
155
152
|
this.runningTasks.set(event.taskId, {
|
|
156
|
-
exitCode: new
|
|
157
|
-
terminateSignal: new
|
|
158
|
-
isBackgroundTaskEnded: new
|
|
153
|
+
exitCode: new Deferred(),
|
|
154
|
+
terminateSignal: new Deferred(),
|
|
155
|
+
isBackgroundTaskEnded: new Deferred()
|
|
159
156
|
});
|
|
160
157
|
}
|
|
161
158
|
this.runningTasks.get(event.taskId).isBackgroundTaskEnded.resolve(true);
|
|
@@ -167,9 +164,9 @@ let TaskService = class TaskService {
|
|
|
167
164
|
}
|
|
168
165
|
if (!this.runningTasks.has(event.taskId)) {
|
|
169
166
|
this.runningTasks.set(event.taskId, {
|
|
170
|
-
exitCode: new
|
|
171
|
-
terminateSignal: new
|
|
172
|
-
isBackgroundTaskEnded: new
|
|
167
|
+
exitCode: new Deferred(),
|
|
168
|
+
terminateSignal: new Deferred(),
|
|
169
|
+
isBackgroundTaskEnded: new Deferred()
|
|
173
170
|
});
|
|
174
171
|
}
|
|
175
172
|
this.runningTasks.get(event.taskId).exitCode.resolve(event.code);
|
|
@@ -180,7 +177,7 @@ let TaskService = class TaskService {
|
|
|
180
177
|
if (event.code !== undefined) {
|
|
181
178
|
if (event.code !== 0) {
|
|
182
179
|
const eventTaskConfig = event.config;
|
|
183
|
-
if (eventTaskConfig && eventTaskConfig.presentation && eventTaskConfig.presentation.reveal ===
|
|
180
|
+
if (eventTaskConfig && eventTaskConfig.presentation && eventTaskConfig.presentation.reveal === RevealKind.Silent && event.terminalId) {
|
|
184
181
|
const terminal = this.terminalService.getByTerminalId(event.terminalId);
|
|
185
182
|
const focus = !!eventTaskConfig.presentation.focus;
|
|
186
183
|
if (terminal) {
|
|
@@ -192,11 +189,11 @@ let TaskService = class TaskService {
|
|
|
192
189
|
}
|
|
193
190
|
}
|
|
194
191
|
}
|
|
195
|
-
this.messageService.error(
|
|
192
|
+
this.messageService.error(nls.localize('theia/task/taskExitedWithCode', "Task '{0}' has exited with code {1}.", taskIdentifier, event.code));
|
|
196
193
|
}
|
|
197
194
|
}
|
|
198
195
|
else if (event.signal !== undefined) {
|
|
199
|
-
this.messageService.info(
|
|
196
|
+
this.messageService.info(nls.localize('theia/task/taskTerminatedBySignal', "Task '{0}' was terminated by signal {1}.", taskIdentifier, event.signal));
|
|
200
197
|
}
|
|
201
198
|
else {
|
|
202
199
|
this.logger.error('Invalid TaskExitedEvent received, neither code nor signal is set.');
|
|
@@ -206,7 +203,7 @@ let TaskService = class TaskService {
|
|
|
206
203
|
getTaskIdentifier(taskConfig) {
|
|
207
204
|
const taskName = this.taskNameResolver.resolve(taskConfig);
|
|
208
205
|
const sourceStrUri = this.taskSourceResolver.resolve(taskConfig);
|
|
209
|
-
return `${taskName} (${this.labelProvider.getName(new
|
|
206
|
+
return `${taskName} (${this.labelProvider.getName(new URI(sourceStrUri))})`;
|
|
210
207
|
}
|
|
211
208
|
/**
|
|
212
209
|
* Client should call this method to indicate that a new user-level action related to tasks has been started,
|
|
@@ -238,7 +235,7 @@ let TaskService = class TaskService {
|
|
|
238
235
|
async getConfiguredTasks(token) {
|
|
239
236
|
const invalidTaskConfig = this.taskConfigurations.getInvalidTaskConfigurations()[0];
|
|
240
237
|
if (invalidTaskConfig) {
|
|
241
|
-
const widget = await this.widgetManager.getOrCreateWidget(
|
|
238
|
+
const widget = await this.widgetManager.getOrCreateWidget(PROBLEMS_WIDGET_ID);
|
|
242
239
|
const isProblemsWidgetVisible = widget && widget.isVisible;
|
|
243
240
|
const currentEditorUri = this.editorManager.currentEditor && this.editorManager.currentEditor.editor.getResourceUri();
|
|
244
241
|
let isInvalidTaskConfigFileOpen = false;
|
|
@@ -248,9 +245,9 @@ let TaskService = class TaskService {
|
|
|
248
245
|
isInvalidTaskConfigFileOpen = true;
|
|
249
246
|
}
|
|
250
247
|
}
|
|
251
|
-
const warningMessage =
|
|
248
|
+
const warningMessage = nls.localize('theia/task/invalidTaskConfigs', 'Invalid task configurations are found. Open tasks.json and find details in the Problems view.');
|
|
252
249
|
if (!isProblemsWidgetVisible || !isInvalidTaskConfigFileOpen) {
|
|
253
|
-
this.messageService.warn(warningMessage,
|
|
250
|
+
this.messageService.warn(warningMessage, nls.localizeByDefault('Open')).then(actionOpen => {
|
|
254
251
|
if (actionOpen) {
|
|
255
252
|
if (invalidTaskConfig && invalidTaskConfig._scope) {
|
|
256
253
|
this.taskConfigurationManager.openConfiguration(invalidTaskConfig._scope);
|
|
@@ -396,7 +393,7 @@ let TaskService = class TaskService {
|
|
|
396
393
|
// ask the user what s/he wants to use to parse the task output
|
|
397
394
|
const items = this.getCustomizeProblemMatcherItems();
|
|
398
395
|
const selected = await this.quickPickService.show(items, {
|
|
399
|
-
placeholder:
|
|
396
|
+
placeholder: nls.localizeByDefault('Select for which kind of errors and warnings to scan the task output')
|
|
400
397
|
});
|
|
401
398
|
if (selected && ('value' in selected)) {
|
|
402
399
|
if (selected.value?.problemMatchers) {
|
|
@@ -412,7 +409,7 @@ let TaskService = class TaskService {
|
|
|
412
409
|
this.updateTaskConfiguration(token, task, { problemMatcher: matcherNames });
|
|
413
410
|
}
|
|
414
411
|
else if (selected.value?.learnMore) { // user wants to learn more about parsing task output
|
|
415
|
-
|
|
412
|
+
open(this.openerService, new URI('https://code.visualstudio.com/docs/editor/tasks#_processing-task-output-with-problem-matchers'));
|
|
416
413
|
}
|
|
417
414
|
// else, continue the task with no parser
|
|
418
415
|
}
|
|
@@ -443,7 +440,7 @@ let TaskService = class TaskService {
|
|
|
443
440
|
async runCompoundTask(token, task, option) {
|
|
444
441
|
const tasks = await this.getWorkspaceTasks(token, task._scope);
|
|
445
442
|
try {
|
|
446
|
-
const rootNode = new
|
|
443
|
+
const rootNode = new TaskNode(task, [], []);
|
|
447
444
|
this.detectDirectedAcyclicGraph(task, rootNode, tasks);
|
|
448
445
|
}
|
|
449
446
|
catch (error) {
|
|
@@ -473,14 +470,14 @@ let TaskService = class TaskService {
|
|
|
473
470
|
const resolvedMatchers = await this.resolveProblemMatchers(dependentTask, taskCustomization);
|
|
474
471
|
dependentTasks.push({ 'task': dependentTask, 'taskCustomization': taskCustomization, 'resolvedMatchers': resolvedMatchers });
|
|
475
472
|
// In case the 'dependsOrder' is 'sequence'
|
|
476
|
-
if (task.dependsOrder && task.dependsOrder ===
|
|
473
|
+
if (task.dependsOrder && task.dependsOrder === DependsOrder.Sequence) {
|
|
477
474
|
await this.runTasksGraph(dependentTask, tasks, {
|
|
478
475
|
customization: { ...taskCustomization, ...{ problemMatcher: resolvedMatchers } }
|
|
479
476
|
});
|
|
480
477
|
}
|
|
481
478
|
}
|
|
482
479
|
// In case the 'dependsOrder' is 'parallel'
|
|
483
|
-
if (((!task.dependsOrder) || (task.dependsOrder && task.dependsOrder ===
|
|
480
|
+
if (((!task.dependsOrder) || (task.dependsOrder && task.dependsOrder === DependsOrder.Parallel))) {
|
|
484
481
|
const promises = dependentTasks.map(item => this.runTasksGraph(item.task, tasks, {
|
|
485
482
|
customization: { ...item.taskCustomization, ...{ problemMatcher: item.resolvedMatchers } }
|
|
486
483
|
}));
|
|
@@ -540,9 +537,9 @@ let TaskService = class TaskService {
|
|
|
540
537
|
taskNode.parentsID.filter(t => this.taskDefinitionRegistry.compareTasks(childTaskConfiguration, t)).length > 0) {
|
|
541
538
|
const fromNode = task.label;
|
|
542
539
|
const toNode = childTaskConfiguration.label;
|
|
543
|
-
throw new Error(
|
|
540
|
+
throw new Error(nls.localize('theia/task/circularReferenceDetected', 'Circular reference detected: {0} --> {1}', fromNode, toNode));
|
|
544
541
|
}
|
|
545
|
-
const childNode = new
|
|
542
|
+
const childNode = new TaskNode(childTaskConfiguration, [], Object.assign([], taskNode.parentsID));
|
|
546
543
|
childNode.addParentDependency(taskNode.taskId);
|
|
547
544
|
taskNode.addChildDependency(childNode);
|
|
548
545
|
return { 'taskConfiguration': childTaskConfiguration, 'node': childNode };
|
|
@@ -555,7 +552,7 @@ let TaskService = class TaskService {
|
|
|
555
552
|
* @returns the correct TaskConfiguration object which matches the taskIdentifier
|
|
556
553
|
*/
|
|
557
554
|
getDependentTask(taskIdentifier, tasks) {
|
|
558
|
-
const notEnoughDataError =
|
|
555
|
+
const notEnoughDataError = nls.localize('theia/task/notEnoughDataInDependsOn', 'The information provided in the "dependsOn" is not enough for matching the correct task!');
|
|
559
556
|
let currentTaskChildConfiguration;
|
|
560
557
|
if (typeof (taskIdentifier) !== 'string') {
|
|
561
558
|
// TaskIdentifier object does not support tasks of type 'shell' (The same behavior as in VS Code).
|
|
@@ -617,17 +614,17 @@ let TaskService = class TaskService {
|
|
|
617
614
|
if (terminalId) {
|
|
618
615
|
const terminal = this.terminalService.getByTerminalId(terminalId);
|
|
619
616
|
if (terminal) {
|
|
620
|
-
if (
|
|
617
|
+
if (TaskOutputPresentation.shouldSetFocusToTerminal(task)) { // assign focus to the terminal if presentation.focus is true
|
|
621
618
|
this.terminalService.open(terminal, { mode: 'activate' });
|
|
622
619
|
}
|
|
623
|
-
else if (
|
|
620
|
+
else if (TaskOutputPresentation.shouldAlwaysRevealTerminal(task)) { // show the terminal but not assign focus
|
|
624
621
|
this.terminalService.open(terminal, { mode: 'reveal' });
|
|
625
622
|
}
|
|
626
623
|
}
|
|
627
624
|
}
|
|
628
|
-
const terminateTaskAction =
|
|
629
|
-
const restartTaskAction =
|
|
630
|
-
const selectedAction = await this.messageService.info(
|
|
625
|
+
const terminateTaskAction = nls.localizeByDefault('Terminate Task');
|
|
626
|
+
const restartTaskAction = nls.localizeByDefault('Restart Running Task');
|
|
627
|
+
const selectedAction = await this.messageService.info(nls.localizeByDefault('Task `{0}` is already running.', taskName), terminateTaskAction, restartTaskAction);
|
|
631
628
|
if (selectedAction === terminateTaskAction) {
|
|
632
629
|
await this.terminateTask(matchedRunningTaskInfo);
|
|
633
630
|
}
|
|
@@ -691,6 +688,9 @@ let TaskService = class TaskService {
|
|
|
691
688
|
return this.runResolvedTask(taskToRun, option);
|
|
692
689
|
}
|
|
693
690
|
catch (error) {
|
|
691
|
+
if (isCancelled(error)) {
|
|
692
|
+
return undefined;
|
|
693
|
+
}
|
|
694
694
|
const errMessage = `Error resolving task '${task.label}': ${error}`;
|
|
695
695
|
this.logger.error(errMessage);
|
|
696
696
|
}
|
|
@@ -727,7 +727,7 @@ let TaskService = class TaskService {
|
|
|
727
727
|
const taskCustomization = await this.getTaskCustomization(task);
|
|
728
728
|
const resolvedMatchers = await this.resolveProblemMatchers(task, taskCustomization);
|
|
729
729
|
try {
|
|
730
|
-
const rootNode = new
|
|
730
|
+
const rootNode = new TaskNode(task, [], []);
|
|
731
731
|
this.detectDirectedAcyclicGraph(task, rootNode, tasks);
|
|
732
732
|
}
|
|
733
733
|
catch (error) {
|
|
@@ -754,10 +754,10 @@ let TaskService = class TaskService {
|
|
|
754
754
|
async updateTaskConfiguration(token, task, update) {
|
|
755
755
|
if (update.problemMatcher) {
|
|
756
756
|
if (Array.isArray(update.problemMatcher)) {
|
|
757
|
-
update.problemMatcher.forEach((_name, index) => update.problemMatcher[index] =
|
|
757
|
+
update.problemMatcher.forEach((_name, index) => update.problemMatcher[index] = asVariableName(update.problemMatcher[index]));
|
|
758
758
|
}
|
|
759
759
|
else {
|
|
760
|
-
update.problemMatcher =
|
|
760
|
+
update.problemMatcher = asVariableName(update.problemMatcher);
|
|
761
761
|
}
|
|
762
762
|
}
|
|
763
763
|
this.taskConfigurations.updateTaskConfig(token, task, update);
|
|
@@ -786,7 +786,7 @@ let TaskService = class TaskService {
|
|
|
786
786
|
const scope = task._scope || task._source;
|
|
787
787
|
if (resolvedMatcher.filePrefix && scope) {
|
|
788
788
|
const options = {
|
|
789
|
-
context: new
|
|
789
|
+
context: new URI(scope).withScheme('file'),
|
|
790
790
|
configurationSection: 'tasks'
|
|
791
791
|
};
|
|
792
792
|
const resolvedPrefix = await this.variableResolverService.resolve(resolvedMatcher.filePrefix, options);
|
|
@@ -823,7 +823,7 @@ let TaskService = class TaskService {
|
|
|
823
823
|
const existingMarkers = this.problemManager.findMarkers({ owner: matcher.owner });
|
|
824
824
|
const uris = new Set();
|
|
825
825
|
existingMarkers.forEach(marker => uris.add(marker.uri));
|
|
826
|
-
uris.forEach(uriString => this.problemManager.setMarkers(new
|
|
826
|
+
uris.forEach(uriString => this.problemManager.setMarkers(new URI(uriString), matcher.owner, []));
|
|
827
827
|
}
|
|
828
828
|
}
|
|
829
829
|
}
|
|
@@ -857,7 +857,7 @@ let TaskService = class TaskService {
|
|
|
857
857
|
}
|
|
858
858
|
catch (error) {
|
|
859
859
|
this.logger.error(`Error launching task '${taskLabel}': ${error.message}`);
|
|
860
|
-
this.messageService.error(
|
|
860
|
+
this.messageService.error(nls.localize('theia/task/errorLaunchingTask', "Error launching task '{0}': {1}", taskLabel, error.message));
|
|
861
861
|
if (taskInfo && typeof taskInfo.terminalId === 'number') {
|
|
862
862
|
this.shellTerminalServer.onAttachAttempted(taskInfo.terminalId);
|
|
863
863
|
}
|
|
@@ -866,15 +866,15 @@ let TaskService = class TaskService {
|
|
|
866
866
|
getCustomizeProblemMatcherItems() {
|
|
867
867
|
const items = [];
|
|
868
868
|
items.push({
|
|
869
|
-
label:
|
|
869
|
+
label: nls.localizeByDefault('Continue without scanning the task output'),
|
|
870
870
|
value: { problemMatchers: undefined }
|
|
871
871
|
});
|
|
872
872
|
items.push({
|
|
873
|
-
label:
|
|
873
|
+
label: nls.localize('theia/task/neverScanTaskOutput', 'Never scan the task output'),
|
|
874
874
|
value: { problemMatchers: [] }
|
|
875
875
|
});
|
|
876
876
|
items.push({
|
|
877
|
-
label:
|
|
877
|
+
label: nls.localizeByDefault('Learn more about scanning the task output'),
|
|
878
878
|
value: { problemMatchers: undefined, learnMore: true }
|
|
879
879
|
});
|
|
880
880
|
items.push({ type: 'separator', label: 'registered parsers' });
|
|
@@ -882,7 +882,7 @@ let TaskService = class TaskService {
|
|
|
882
882
|
items.push(...registeredProblemMatchers.map(matcher => ({
|
|
883
883
|
label: matcher.label,
|
|
884
884
|
value: { problemMatchers: [matcher] },
|
|
885
|
-
description:
|
|
885
|
+
description: asVariableName(matcher.name)
|
|
886
886
|
})));
|
|
887
887
|
return items;
|
|
888
888
|
}
|
|
@@ -897,15 +897,15 @@ let TaskService = class TaskService {
|
|
|
897
897
|
const startCharacter = this.editorManager.currentEditor.editor.selection.start.character;
|
|
898
898
|
const endLine = this.editorManager.currentEditor.editor.selection.end.line;
|
|
899
899
|
const endCharacter = this.editorManager.currentEditor.editor.selection.end.character;
|
|
900
|
-
let selectedRange =
|
|
900
|
+
let selectedRange = Range.create(startLine, startCharacter, endLine, endCharacter);
|
|
901
901
|
// if no text is selected, default to selecting entire line
|
|
902
902
|
if (startLine === endLine && startCharacter === endCharacter) {
|
|
903
|
-
selectedRange =
|
|
903
|
+
selectedRange = Range.create(startLine, 0, endLine + 1, 0);
|
|
904
904
|
}
|
|
905
905
|
const selectedText = this.editorManager.currentEditor.editor.document.getText(selectedRange).trimRight() + '\n';
|
|
906
906
|
let terminal = this.terminalService.lastUsedTerminal;
|
|
907
907
|
if (!terminal || terminal.kind !== 'user' || (await terminal.hasChildProcesses())) {
|
|
908
|
-
terminal = await this.terminalService.newTerminal({ created:
|
|
908
|
+
terminal = await this.terminalService.newTerminal({ created: nextTerminalCreationToken() });
|
|
909
909
|
await terminal.start();
|
|
910
910
|
this.terminalService.open(terminal);
|
|
911
911
|
}
|
|
@@ -916,11 +916,11 @@ let TaskService = class TaskService {
|
|
|
916
916
|
if (taskInfo) {
|
|
917
917
|
const terminalWidget = this.terminalService.getByTerminalId(terminalId);
|
|
918
918
|
if (terminalWidget) {
|
|
919
|
-
this.messageService.error(
|
|
919
|
+
this.messageService.error(nls.localize('theia/task/taskAlreadyRunningInTerminal', 'Task is already running in terminal'));
|
|
920
920
|
return this.terminalService.open(terminalWidget, { mode: 'activate' });
|
|
921
921
|
}
|
|
922
|
-
if (
|
|
923
|
-
if (
|
|
922
|
+
if (TaskOutputPresentation.shouldAlwaysRevealTerminal(taskInfo.config)) {
|
|
923
|
+
if (TaskOutputPresentation.shouldSetFocusToTerminal(taskInfo.config)) { // assign focus to the terminal if presentation.focus is true
|
|
924
924
|
widgetOpenMode = 'activate';
|
|
925
925
|
}
|
|
926
926
|
else { // show the terminal but not assign focus
|
|
@@ -931,9 +931,9 @@ let TaskService = class TaskService {
|
|
|
931
931
|
const { taskId } = taskInfo;
|
|
932
932
|
// Create / find a terminal widget to display an execution output of a task that was launched as a command inside a shell.
|
|
933
933
|
const widget = await this.taskTerminalWidgetManager.open({
|
|
934
|
-
created:
|
|
934
|
+
created: nextTerminalCreationToken(),
|
|
935
935
|
id: this.getTerminalWidgetId(terminalId),
|
|
936
|
-
title:
|
|
936
|
+
title: nls.localizeByDefault('Task: {0}', taskInfo.config.label || nls.localize('theia/task/taskIdLabel', '#{0}', taskId)),
|
|
937
937
|
destroyTermOnClose: true,
|
|
938
938
|
useServerTitle: false
|
|
939
939
|
}, {
|
|
@@ -978,7 +978,7 @@ let TaskService = class TaskService {
|
|
|
978
978
|
}
|
|
979
979
|
catch (error) {
|
|
980
980
|
this.logger.error(`Error killing task '${id}': ${error}`);
|
|
981
|
-
this.messageService.error(
|
|
981
|
+
this.messageService.error(nls.localize('theia/task/errorKillingTask', "Error killing task '{0}': {1}", id, error));
|
|
982
982
|
return;
|
|
983
983
|
}
|
|
984
984
|
this.logger.debug(`Task killed. Task id: ${id}`);
|
|
@@ -1018,139 +1018,105 @@ let TaskService = class TaskService {
|
|
|
1018
1018
|
return trusted === true;
|
|
1019
1019
|
}
|
|
1020
1020
|
};
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
(0, inversify_1.inject)(browser_1.FrontendApplication),
|
|
1024
|
-
tslib_1.__metadata("design:type", browser_1.FrontendApplication)
|
|
1021
|
+
__decorate([
|
|
1022
|
+
inject(FrontendApplication)
|
|
1025
1023
|
], TaskService.prototype, "app", void 0);
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
tslib_1.__metadata("design:type", browser_1.ApplicationShell)
|
|
1024
|
+
__decorate([
|
|
1025
|
+
inject(ApplicationShell)
|
|
1029
1026
|
], TaskService.prototype, "shell", void 0);
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
tslib_1.__metadata("design:type", Object)
|
|
1027
|
+
__decorate([
|
|
1028
|
+
inject(TaskServer)
|
|
1033
1029
|
], TaskService.prototype, "taskServer", void 0);
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
tslib_1.__metadata("design:type", Object)
|
|
1030
|
+
__decorate([
|
|
1031
|
+
inject(ILogger),
|
|
1032
|
+
named('task:TaskService')
|
|
1038
1033
|
], TaskService.prototype, "logger", void 0);
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
tslib_1.__metadata("design:type", browser_1.WidgetManager)
|
|
1034
|
+
__decorate([
|
|
1035
|
+
inject(WidgetManager)
|
|
1042
1036
|
], TaskService.prototype, "widgetManager", void 0);
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
tslib_1.__metadata("design:type", task_watcher_1.TaskWatcher)
|
|
1037
|
+
__decorate([
|
|
1038
|
+
inject(TaskWatcher)
|
|
1046
1039
|
], TaskService.prototype, "taskWatcher", void 0);
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
tslib_1.__metadata("design:type", message_service_1.MessageService)
|
|
1040
|
+
__decorate([
|
|
1041
|
+
inject(MessageService)
|
|
1050
1042
|
], TaskService.prototype, "messageService", void 0);
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
tslib_1.__metadata("design:type", workspace_service_1.WorkspaceService)
|
|
1043
|
+
__decorate([
|
|
1044
|
+
inject(WorkspaceService)
|
|
1054
1045
|
], TaskService.prototype, "workspaceService", void 0);
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
tslib_1.__metadata("design:type", task_configurations_1.TaskConfigurations)
|
|
1046
|
+
__decorate([
|
|
1047
|
+
inject(TaskConfigurations)
|
|
1058
1048
|
], TaskService.prototype, "taskConfigurations", void 0);
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
tslib_1.__metadata("design:type", provided_task_configurations_1.ProvidedTaskConfigurations)
|
|
1049
|
+
__decorate([
|
|
1050
|
+
inject(ProvidedTaskConfigurations)
|
|
1062
1051
|
], TaskService.prototype, "providedTaskConfigurations", void 0);
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
tslib_1.__metadata("design:type", browser_3.VariableResolverService)
|
|
1052
|
+
__decorate([
|
|
1053
|
+
inject(VariableResolverService)
|
|
1066
1054
|
], TaskService.prototype, "variableResolverService", void 0);
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
tslib_1.__metadata("design:type", task_contribution_1.TaskResolverRegistry)
|
|
1055
|
+
__decorate([
|
|
1056
|
+
inject(TaskResolverRegistry)
|
|
1070
1057
|
], TaskService.prototype, "taskResolverRegistry", void 0);
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
tslib_1.__metadata("design:type", Object)
|
|
1058
|
+
__decorate([
|
|
1059
|
+
inject(TerminalService)
|
|
1074
1060
|
], TaskService.prototype, "terminalService", void 0);
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
tslib_1.__metadata("design:type", browser_2.EditorManager)
|
|
1061
|
+
__decorate([
|
|
1062
|
+
inject(EditorManager)
|
|
1078
1063
|
], TaskService.prototype, "editorManager", void 0);
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
tslib_1.__metadata("design:type", problem_manager_1.ProblemManager)
|
|
1064
|
+
__decorate([
|
|
1065
|
+
inject(ProblemManager)
|
|
1082
1066
|
], TaskService.prototype, "problemManager", void 0);
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
tslib_1.__metadata("design:type", task_definition_registry_1.TaskDefinitionRegistry)
|
|
1067
|
+
__decorate([
|
|
1068
|
+
inject(TaskDefinitionRegistry)
|
|
1086
1069
|
], TaskService.prototype, "taskDefinitionRegistry", void 0);
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
tslib_1.__metadata("design:type", task_problem_matcher_registry_1.ProblemMatcherRegistry)
|
|
1070
|
+
__decorate([
|
|
1071
|
+
inject(ProblemMatcherRegistry)
|
|
1090
1072
|
], TaskService.prototype, "problemMatcherRegistry", void 0);
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
tslib_1.__metadata("design:type", Object)
|
|
1073
|
+
__decorate([
|
|
1074
|
+
inject(QuickPickService)
|
|
1094
1075
|
], TaskService.prototype, "quickPickService", void 0);
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
tslib_1.__metadata("design:type", Object)
|
|
1076
|
+
__decorate([
|
|
1077
|
+
inject(OpenerService)
|
|
1098
1078
|
], TaskService.prototype, "openerService", void 0);
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
tslib_1.__metadata("design:type", Object)
|
|
1079
|
+
__decorate([
|
|
1080
|
+
inject(ShellTerminalServerProxy)
|
|
1102
1081
|
], TaskService.prototype, "shellTerminalServer", void 0);
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
tslib_1.__metadata("design:type", task_name_resolver_1.TaskNameResolver)
|
|
1082
|
+
__decorate([
|
|
1083
|
+
inject(TaskNameResolver)
|
|
1106
1084
|
], TaskService.prototype, "taskNameResolver", void 0);
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
tslib_1.__metadata("design:type", task_source_resolver_1.TaskSourceResolver)
|
|
1085
|
+
__decorate([
|
|
1086
|
+
inject(TaskSourceResolver)
|
|
1110
1087
|
], TaskService.prototype, "taskSourceResolver", void 0);
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
tslib_1.__metadata("design:type", task_schema_updater_1.TaskSchemaUpdater)
|
|
1088
|
+
__decorate([
|
|
1089
|
+
inject(TaskSchemaUpdater)
|
|
1114
1090
|
], TaskService.prototype, "taskSchemaUpdater", void 0);
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
tslib_1.__metadata("design:type", task_configuration_manager_1.TaskConfigurationManager)
|
|
1091
|
+
__decorate([
|
|
1092
|
+
inject(TaskConfigurationManager)
|
|
1118
1093
|
], TaskService.prototype, "taskConfigurationManager", void 0);
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
tslib_1.__metadata("design:type", Object)
|
|
1094
|
+
__decorate([
|
|
1095
|
+
inject(CommandService)
|
|
1122
1096
|
], TaskService.prototype, "commands", void 0);
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
tslib_1.__metadata("design:type", label_provider_1.LabelProvider)
|
|
1097
|
+
__decorate([
|
|
1098
|
+
inject(LabelProvider)
|
|
1126
1099
|
], TaskService.prototype, "labelProvider", void 0);
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
tslib_1.__metadata("design:type", monaco_workspace_1.MonacoWorkspace)
|
|
1100
|
+
__decorate([
|
|
1101
|
+
inject(MonacoWorkspace)
|
|
1130
1102
|
], TaskService.prototype, "monacoWorkspace", void 0);
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
tslib_1.__metadata("design:type", task_terminal_widget_manager_1.TaskTerminalWidgetManager)
|
|
1103
|
+
__decorate([
|
|
1104
|
+
inject(TaskTerminalWidgetManager)
|
|
1134
1105
|
], TaskService.prototype, "taskTerminalWidgetManager", void 0);
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
tslib_1.__metadata("design:type", task_context_key_service_1.TaskContextKeyService)
|
|
1106
|
+
__decorate([
|
|
1107
|
+
inject(TaskContextKeyService)
|
|
1138
1108
|
], TaskService.prototype, "taskContextKeyService", void 0);
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
tslib_1.__metadata("design:type", browser_4.WorkspaceTrustService)
|
|
1109
|
+
__decorate([
|
|
1110
|
+
inject(WorkspaceTrustService)
|
|
1142
1111
|
], TaskService.prototype, "workspaceTrustService", void 0);
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
tslib_1.__metadata("design:type", Object)
|
|
1112
|
+
__decorate([
|
|
1113
|
+
inject(TerminalPreferences)
|
|
1146
1114
|
], TaskService.prototype, "terminalPreferences", void 0);
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
tslib_1.__metadata("design:type", Function),
|
|
1150
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
1151
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
1115
|
+
__decorate([
|
|
1116
|
+
postConstruct()
|
|
1152
1117
|
], TaskService.prototype, "init", null);
|
|
1153
|
-
|
|
1154
|
-
|
|
1118
|
+
TaskService = __decorate([
|
|
1119
|
+
injectable()
|
|
1155
1120
|
], TaskService);
|
|
1121
|
+
export { TaskService };
|
|
1156
1122
|
//# sourceMappingURL=task-service.js.map
|