@theia/task 1.67.0-next.3 → 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,194 +0,0 @@
|
|
|
1
|
-
import { Event } from '@theia/core';
|
|
2
|
-
import { RpcServer } from '@theia/core/lib/common/messaging/proxy-factory';
|
|
3
|
-
import { IJSONSchema } from '@theia/core/lib/common/json-schema';
|
|
4
|
-
import { ProblemMatcher, ProblemMatch, WatchingMatcherContribution, ProblemMatcherContribution, ProblemPatternContribution } from './problem-matcher-protocol';
|
|
5
|
-
export { WatchingMatcherContribution, ProblemMatcherContribution, ProblemPatternContribution };
|
|
6
|
-
export declare const taskPath = "/services/task";
|
|
7
|
-
export declare const TaskServer: unique symbol;
|
|
8
|
-
export declare const TaskClient: unique symbol;
|
|
9
|
-
export declare enum DependsOrder {
|
|
10
|
-
Sequence = "sequence",
|
|
11
|
-
Parallel = "parallel"
|
|
12
|
-
}
|
|
13
|
-
export declare enum RevealKind {
|
|
14
|
-
Always = "always",
|
|
15
|
-
Silent = "silent",
|
|
16
|
-
Never = "never"
|
|
17
|
-
}
|
|
18
|
-
export declare enum PanelKind {
|
|
19
|
-
Shared = "shared",
|
|
20
|
-
Dedicated = "dedicated",
|
|
21
|
-
New = "new"
|
|
22
|
-
}
|
|
23
|
-
export interface TaskOutputPresentation {
|
|
24
|
-
echo?: boolean;
|
|
25
|
-
focus?: boolean;
|
|
26
|
-
reveal?: RevealKind;
|
|
27
|
-
panel?: PanelKind;
|
|
28
|
-
showReuseMessage?: boolean;
|
|
29
|
-
clear?: boolean;
|
|
30
|
-
close?: boolean;
|
|
31
|
-
[name: string]: any;
|
|
32
|
-
}
|
|
33
|
-
export declare namespace TaskOutputPresentation {
|
|
34
|
-
function getDefault(): TaskOutputPresentation;
|
|
35
|
-
function fromJson(task: any): TaskOutputPresentation;
|
|
36
|
-
function shouldAlwaysRevealTerminal(task: TaskCustomization): boolean;
|
|
37
|
-
function shouldSetFocusToTerminal(task: TaskCustomization): boolean;
|
|
38
|
-
function shouldClearTerminalBeforeRun(task: TaskCustomization): boolean;
|
|
39
|
-
function shouldCloseTerminalOnFinish(task: TaskCustomization): boolean;
|
|
40
|
-
function shouldShowReuseMessage(task: TaskCustomization): boolean;
|
|
41
|
-
}
|
|
42
|
-
export interface TaskCustomization {
|
|
43
|
-
type: string;
|
|
44
|
-
group?: 'build' | 'test' | 'rebuild' | 'clean' | 'none' | {
|
|
45
|
-
kind: 'build' | 'test' | 'rebuild' | 'clean';
|
|
46
|
-
isDefault: boolean;
|
|
47
|
-
};
|
|
48
|
-
problemMatcher?: string | ProblemMatcherContribution | (string | ProblemMatcherContribution)[];
|
|
49
|
-
presentation?: TaskOutputPresentation;
|
|
50
|
-
detail?: string;
|
|
51
|
-
/** Whether the task is a background task or not. */
|
|
52
|
-
isBackground?: boolean;
|
|
53
|
-
/** The other tasks the task depend on. */
|
|
54
|
-
dependsOn?: string | TaskIdentifier | Array<string | TaskIdentifier>;
|
|
55
|
-
/** The order the dependsOn tasks should be executed in. */
|
|
56
|
-
dependsOrder?: DependsOrder;
|
|
57
|
-
runOptions?: RunOptions;
|
|
58
|
-
[name: string]: any;
|
|
59
|
-
}
|
|
60
|
-
export declare namespace TaskCustomization {
|
|
61
|
-
function isBuildTask(task: TaskCustomization): boolean;
|
|
62
|
-
function isDefaultBuildTask(task: TaskCustomization): boolean;
|
|
63
|
-
function isDefaultTask(task: TaskCustomization): boolean;
|
|
64
|
-
function isTestTask(task: TaskCustomization): boolean;
|
|
65
|
-
function isDefaultTestTask(task: TaskCustomization): boolean;
|
|
66
|
-
}
|
|
67
|
-
export declare enum TaskScope {
|
|
68
|
-
Global = 1,
|
|
69
|
-
Workspace = 2
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* The task configuration scopes.
|
|
73
|
-
* - `string` represents the associated workspace folder uri.
|
|
74
|
-
*/
|
|
75
|
-
export type TaskConfigurationScope = string | TaskScope.Workspace | TaskScope.Global;
|
|
76
|
-
export interface TaskConfiguration extends TaskCustomization {
|
|
77
|
-
/** A label that uniquely identifies a task configuration per source */
|
|
78
|
-
readonly label: string;
|
|
79
|
-
readonly _scope: TaskConfigurationScope;
|
|
80
|
-
readonly executionType?: 'shell' | 'process' | 'customExecution';
|
|
81
|
-
}
|
|
82
|
-
export interface ContributedTaskConfiguration extends TaskConfiguration {
|
|
83
|
-
/**
|
|
84
|
-
* Source of the task configuration.
|
|
85
|
-
* For a configured task, it is the name of the root folder, while for a provided task, it is the name of the provider.
|
|
86
|
-
* This field is not supposed to be used in `tasks.json`
|
|
87
|
-
*/
|
|
88
|
-
readonly _source: string;
|
|
89
|
-
}
|
|
90
|
-
/** A task identifier */
|
|
91
|
-
export interface TaskIdentifier {
|
|
92
|
-
type: string;
|
|
93
|
-
[name: string]: string;
|
|
94
|
-
}
|
|
95
|
-
/** Runtime information about Task. */
|
|
96
|
-
export interface TaskInfo {
|
|
97
|
-
/** internal unique task id */
|
|
98
|
-
readonly taskId: number;
|
|
99
|
-
/** terminal id. Defined if task is run as a terminal process */
|
|
100
|
-
readonly terminalId?: number;
|
|
101
|
-
/** context that was passed as part of task creation, if any */
|
|
102
|
-
readonly ctx?: string;
|
|
103
|
-
/** task config used for launching a task */
|
|
104
|
-
readonly config: TaskConfiguration;
|
|
105
|
-
/** Additional properties specific for a particular Task Runner. */
|
|
106
|
-
readonly [key: string]: any;
|
|
107
|
-
}
|
|
108
|
-
export interface TaskServer extends RpcServer<TaskClient> {
|
|
109
|
-
/** Run a task. Optionally pass a context. */
|
|
110
|
-
run(task: TaskConfiguration, ctx?: string, option?: RunTaskOption): Promise<TaskInfo>;
|
|
111
|
-
/** Kill a task, by id. */
|
|
112
|
-
kill(taskId: number): Promise<void>;
|
|
113
|
-
/**
|
|
114
|
-
* Returns a list of currently running tasks. If a context is provided,
|
|
115
|
-
* only the tasks started in that context will be provided. Using an
|
|
116
|
-
* undefined context matches all tasks, no matter the creation context.
|
|
117
|
-
*/
|
|
118
|
-
getTasks(ctx?: string): Promise<TaskInfo[]>;
|
|
119
|
-
/** removes the client that has disconnected */
|
|
120
|
-
disconnectClient(client: TaskClient): void;
|
|
121
|
-
/** Returns the list of default and registered task runners */
|
|
122
|
-
getRegisteredTaskTypes(): Promise<string[]>;
|
|
123
|
-
/** plugin callback task complete */
|
|
124
|
-
customExecutionComplete(id: number, exitCode: number | undefined): Promise<void>;
|
|
125
|
-
}
|
|
126
|
-
export interface TaskCustomizationData {
|
|
127
|
-
type: string;
|
|
128
|
-
problemMatcher?: ProblemMatcher[];
|
|
129
|
-
[name: string]: any;
|
|
130
|
-
}
|
|
131
|
-
export interface RunTaskOption {
|
|
132
|
-
customization?: TaskCustomizationData;
|
|
133
|
-
}
|
|
134
|
-
export interface RunOptions {
|
|
135
|
-
reevaluateOnRerun?: boolean;
|
|
136
|
-
}
|
|
137
|
-
/** Event sent when a task has concluded its execution */
|
|
138
|
-
export interface TaskExitedEvent {
|
|
139
|
-
readonly taskId: number;
|
|
140
|
-
readonly ctx?: string;
|
|
141
|
-
readonly code?: number;
|
|
142
|
-
readonly signal?: string;
|
|
143
|
-
readonly config?: TaskConfiguration;
|
|
144
|
-
readonly terminalId?: number;
|
|
145
|
-
readonly processId?: number;
|
|
146
|
-
}
|
|
147
|
-
export interface TaskOutputEvent {
|
|
148
|
-
readonly taskId: number;
|
|
149
|
-
readonly ctx?: string;
|
|
150
|
-
readonly line: string;
|
|
151
|
-
}
|
|
152
|
-
export interface TaskOutputProcessedEvent {
|
|
153
|
-
readonly taskId: number;
|
|
154
|
-
readonly config: TaskConfiguration;
|
|
155
|
-
readonly ctx?: string;
|
|
156
|
-
readonly problems?: ProblemMatch[];
|
|
157
|
-
}
|
|
158
|
-
export interface BackgroundTaskEndedEvent {
|
|
159
|
-
readonly taskId: number;
|
|
160
|
-
readonly ctx?: string;
|
|
161
|
-
}
|
|
162
|
-
export interface TaskClient {
|
|
163
|
-
onTaskExit(event: TaskExitedEvent): void;
|
|
164
|
-
onTaskCreated(event: TaskInfo): void;
|
|
165
|
-
onDidStartTaskProcess(event: TaskInfo): void;
|
|
166
|
-
onDidEndTaskProcess(event: TaskExitedEvent): void;
|
|
167
|
-
onDidProcessTaskOutput(event: TaskOutputProcessedEvent): void;
|
|
168
|
-
onBackgroundTaskEnded(event: BackgroundTaskEndedEvent): void;
|
|
169
|
-
}
|
|
170
|
-
export interface TaskDefinition {
|
|
171
|
-
taskType: string;
|
|
172
|
-
source: string;
|
|
173
|
-
properties: {
|
|
174
|
-
/**
|
|
175
|
-
* Should be treated as an empty array if omitted.
|
|
176
|
-
* https://json-schema.org/draft/2020-12/json-schema-validation.html#rfc.section.6.5.3
|
|
177
|
-
*/
|
|
178
|
-
required?: string[];
|
|
179
|
-
all: string[];
|
|
180
|
-
schema: IJSONSchema;
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
export interface ManagedTask {
|
|
184
|
-
id: number;
|
|
185
|
-
context?: string;
|
|
186
|
-
}
|
|
187
|
-
export interface ManagedTaskManager<T extends ManagedTask> {
|
|
188
|
-
onDelete: Event<number>;
|
|
189
|
-
register(task: T, context?: string): number;
|
|
190
|
-
get(id: number): T | undefined;
|
|
191
|
-
getTasks(context?: string): T[] | undefined;
|
|
192
|
-
delete(task: T): void;
|
|
193
|
-
}
|
|
194
|
-
//# sourceMappingURL=task-protocol.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task-protocol.d.ts","sourceRoot":"","sources":["../../src/common/task-protocol.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAC/J,OAAO,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,CAAC;AAE/F,eAAO,MAAM,QAAQ,mBAAmB,CAAC;AAEzC,eAAO,MAAM,UAAU,eAAuB,CAAC;AAC/C,eAAO,MAAM,UA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
|
3
|
-
// Copyright (C) 2017 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.TaskScope = exports.TaskCustomization = exports.TaskOutputPresentation = exports.PanelKind = exports.RevealKind = exports.DependsOrder = exports.TaskClient = exports.TaskServer = exports.taskPath = void 0;
|
|
19
|
-
exports.taskPath = '/services/task';
|
|
20
|
-
exports.TaskServer = Symbol('TaskServer');
|
|
21
|
-
exports.TaskClient = Symbol('TaskClient');
|
|
22
|
-
var DependsOrder;
|
|
23
|
-
(function (DependsOrder) {
|
|
24
|
-
DependsOrder["Sequence"] = "sequence";
|
|
25
|
-
DependsOrder["Parallel"] = "parallel";
|
|
26
|
-
})(DependsOrder || (exports.DependsOrder = DependsOrder = {}));
|
|
27
|
-
var RevealKind;
|
|
28
|
-
(function (RevealKind) {
|
|
29
|
-
RevealKind["Always"] = "always";
|
|
30
|
-
RevealKind["Silent"] = "silent";
|
|
31
|
-
RevealKind["Never"] = "never";
|
|
32
|
-
})(RevealKind || (exports.RevealKind = RevealKind = {}));
|
|
33
|
-
var PanelKind;
|
|
34
|
-
(function (PanelKind) {
|
|
35
|
-
PanelKind["Shared"] = "shared";
|
|
36
|
-
PanelKind["Dedicated"] = "dedicated";
|
|
37
|
-
PanelKind["New"] = "new";
|
|
38
|
-
})(PanelKind || (exports.PanelKind = PanelKind = {}));
|
|
39
|
-
var TaskOutputPresentation;
|
|
40
|
-
(function (TaskOutputPresentation) {
|
|
41
|
-
function getDefault() {
|
|
42
|
-
return {
|
|
43
|
-
echo: true,
|
|
44
|
-
reveal: RevealKind.Always,
|
|
45
|
-
focus: false,
|
|
46
|
-
panel: PanelKind.Shared,
|
|
47
|
-
showReuseMessage: true,
|
|
48
|
-
clear: false,
|
|
49
|
-
close: false
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
TaskOutputPresentation.getDefault = getDefault;
|
|
53
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
54
|
-
function fromJson(task) {
|
|
55
|
-
let outputPresentation = getDefault();
|
|
56
|
-
if (task && task.presentation) {
|
|
57
|
-
if (task.presentation.reveal) {
|
|
58
|
-
let reveal = RevealKind.Always;
|
|
59
|
-
if (task.presentation.reveal === 'silent') {
|
|
60
|
-
reveal = RevealKind.Silent;
|
|
61
|
-
}
|
|
62
|
-
else if (task.presentation.reveal === 'never') {
|
|
63
|
-
reveal = RevealKind.Never;
|
|
64
|
-
}
|
|
65
|
-
outputPresentation = { ...outputPresentation, reveal };
|
|
66
|
-
}
|
|
67
|
-
if (task.presentation.panel) {
|
|
68
|
-
let panel = PanelKind.Shared;
|
|
69
|
-
if (task.presentation.panel === 'dedicated') {
|
|
70
|
-
panel = PanelKind.Dedicated;
|
|
71
|
-
}
|
|
72
|
-
else if (task.presentation.panel === 'new') {
|
|
73
|
-
panel = PanelKind.New;
|
|
74
|
-
}
|
|
75
|
-
outputPresentation = { ...outputPresentation, panel };
|
|
76
|
-
}
|
|
77
|
-
outputPresentation = {
|
|
78
|
-
...outputPresentation,
|
|
79
|
-
echo: task.presentation.echo === undefined || task.presentation.echo,
|
|
80
|
-
focus: shouldSetFocusToTerminal(task),
|
|
81
|
-
showReuseMessage: shouldShowReuseMessage(task),
|
|
82
|
-
clear: shouldClearTerminalBeforeRun(task),
|
|
83
|
-
close: shouldCloseTerminalOnFinish(task)
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
return outputPresentation;
|
|
87
|
-
}
|
|
88
|
-
TaskOutputPresentation.fromJson = fromJson;
|
|
89
|
-
function shouldAlwaysRevealTerminal(task) {
|
|
90
|
-
return !task.presentation || task.presentation.reveal === undefined || task.presentation.reveal === RevealKind.Always;
|
|
91
|
-
}
|
|
92
|
-
TaskOutputPresentation.shouldAlwaysRevealTerminal = shouldAlwaysRevealTerminal;
|
|
93
|
-
function shouldSetFocusToTerminal(task) {
|
|
94
|
-
return !!task.presentation && !!task.presentation.focus;
|
|
95
|
-
}
|
|
96
|
-
TaskOutputPresentation.shouldSetFocusToTerminal = shouldSetFocusToTerminal;
|
|
97
|
-
function shouldClearTerminalBeforeRun(task) {
|
|
98
|
-
return !!task.presentation && !!task.presentation.clear;
|
|
99
|
-
}
|
|
100
|
-
TaskOutputPresentation.shouldClearTerminalBeforeRun = shouldClearTerminalBeforeRun;
|
|
101
|
-
function shouldCloseTerminalOnFinish(task) {
|
|
102
|
-
return !!task.presentation && !!task.presentation.close;
|
|
103
|
-
}
|
|
104
|
-
TaskOutputPresentation.shouldCloseTerminalOnFinish = shouldCloseTerminalOnFinish;
|
|
105
|
-
function shouldShowReuseMessage(task) {
|
|
106
|
-
return !task.presentation || task.presentation.showReuseMessage === undefined || !!task.presentation.showReuseMessage;
|
|
107
|
-
}
|
|
108
|
-
TaskOutputPresentation.shouldShowReuseMessage = shouldShowReuseMessage;
|
|
109
|
-
})(TaskOutputPresentation || (exports.TaskOutputPresentation = TaskOutputPresentation = {}));
|
|
110
|
-
var TaskCustomization;
|
|
111
|
-
(function (TaskCustomization) {
|
|
112
|
-
function isBuildTask(task) {
|
|
113
|
-
return task.group === 'build' || typeof task.group === 'object' && task.group.kind === 'build';
|
|
114
|
-
}
|
|
115
|
-
TaskCustomization.isBuildTask = isBuildTask;
|
|
116
|
-
function isDefaultBuildTask(task) {
|
|
117
|
-
return isDefaultTask(task) && isBuildTask(task);
|
|
118
|
-
}
|
|
119
|
-
TaskCustomization.isDefaultBuildTask = isDefaultBuildTask;
|
|
120
|
-
function isDefaultTask(task) {
|
|
121
|
-
return typeof task.group === 'object' && task.group.isDefault;
|
|
122
|
-
}
|
|
123
|
-
TaskCustomization.isDefaultTask = isDefaultTask;
|
|
124
|
-
function isTestTask(task) {
|
|
125
|
-
return task.group === 'test' || typeof task.group === 'object' && task.group.kind === 'test';
|
|
126
|
-
}
|
|
127
|
-
TaskCustomization.isTestTask = isTestTask;
|
|
128
|
-
function isDefaultTestTask(task) {
|
|
129
|
-
return isDefaultTask(task) && isTestTask(task);
|
|
130
|
-
}
|
|
131
|
-
TaskCustomization.isDefaultTestTask = isDefaultTestTask;
|
|
132
|
-
})(TaskCustomization || (exports.TaskCustomization = TaskCustomization = {}));
|
|
133
|
-
var TaskScope;
|
|
134
|
-
(function (TaskScope) {
|
|
135
|
-
TaskScope[TaskScope["Global"] = 1] = "Global";
|
|
136
|
-
TaskScope[TaskScope["Workspace"] = 2] = "Workspace";
|
|
137
|
-
})(TaskScope || (exports.TaskScope = TaskScope = {}));
|
|
138
|
-
//# sourceMappingURL=task-protocol.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task-protocol.js","sourceRoot":"","sources":["../../src/common/task-protocol.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,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;;;AAQnE,QAAA,QAAQ,GAAG,gBAAgB,CAAC;AAE5B,QAAA,UAAU,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;AAClC,QAAA,UAAU,GAAG,MAAM,CAAC,YAAY,CAAC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C,KAAK,CAAC,SAAS,CAAC;IAClE,CAAC;IAFe,+BAAa,gBAE5B,CAAA;IAED,SAAgB,UAAU,CAAC,IAAuB;QAC9C,OAAO,IAAI,CAAC,KAAK,KAAK,MAAM,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC;IACjG,CAAC;IAFe,4BAAU,aAEzB,CAAA;IAED,SAAgB,iBAAiB,CAAC,IAAuB;QACrD,OAAO,aAAa,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;IAFe,mCAAiB,oBAEhC,CAAA;AACL,CAAC,EApBgB,iBAAiB,iCAAjB,iBAAiB,QAoBjC;AAED,IAAY,SAGX;AAHD,WAAY,SAAS;IACjB,6CAAU,CAAA;IACV,mDAAa,CAAA;AACjB,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Converts the given standard name to a variable name starting with '$' if not already present.
|
|
3
|
-
*
|
|
4
|
-
* Variable names are used, for instance, to reference problem matchers, within task configurations.
|
|
5
|
-
*
|
|
6
|
-
* @param name standard name
|
|
7
|
-
* @returns variable name with leading '$' if not already present.
|
|
8
|
-
*
|
|
9
|
-
* @see {@link fromVariableName} for the reverse conversion.
|
|
10
|
-
*/
|
|
11
|
-
export declare function asVariableName(name: string): string;
|
|
12
|
-
/**
|
|
13
|
-
* Converts a given variable name to a standard name, effectively removing a leading '$' if present.
|
|
14
|
-
*
|
|
15
|
-
* Standard names are used, for instance, in registries to store variable objects
|
|
16
|
-
*
|
|
17
|
-
* @param name variable name
|
|
18
|
-
* @returns variable name without leading '$' if present.
|
|
19
|
-
*
|
|
20
|
-
* @see {@link asVariableName} for the reverse conversion.
|
|
21
|
-
*/
|
|
22
|
-
export declare function fromVariableName(name: string): string;
|
|
23
|
-
//# sourceMappingURL=task-util.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task-util.d.ts","sourceRoot":"","sources":["../../src/common/task-util.ts"],"names":[],"mappings":"AAgBA;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAErD"}
|
package/lib/common/task-util.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2023 EclipseSource 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.fromVariableName = exports.asVariableName = void 0;
|
|
19
|
-
/**
|
|
20
|
-
* Converts the given standard name to a variable name starting with '$' if not already present.
|
|
21
|
-
*
|
|
22
|
-
* Variable names are used, for instance, to reference problem matchers, within task configurations.
|
|
23
|
-
*
|
|
24
|
-
* @param name standard name
|
|
25
|
-
* @returns variable name with leading '$' if not already present.
|
|
26
|
-
*
|
|
27
|
-
* @see {@link fromVariableName} for the reverse conversion.
|
|
28
|
-
*/
|
|
29
|
-
function asVariableName(name) {
|
|
30
|
-
return name.startsWith('$') ? name : `$${name}`;
|
|
31
|
-
}
|
|
32
|
-
exports.asVariableName = asVariableName;
|
|
33
|
-
/**
|
|
34
|
-
* Converts a given variable name to a standard name, effectively removing a leading '$' if present.
|
|
35
|
-
*
|
|
36
|
-
* Standard names are used, for instance, in registries to store variable objects
|
|
37
|
-
*
|
|
38
|
-
* @param name variable name
|
|
39
|
-
* @returns variable name without leading '$' if present.
|
|
40
|
-
*
|
|
41
|
-
* @see {@link asVariableName} for the reverse conversion.
|
|
42
|
-
*/
|
|
43
|
-
function fromVariableName(name) {
|
|
44
|
-
return name.startsWith('$') ? name.slice(1) : name;
|
|
45
|
-
}
|
|
46
|
-
exports.fromVariableName = fromVariableName;
|
|
47
|
-
//# sourceMappingURL=task-util.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task-util.js","sourceRoot":"","sources":["../../src/common/task-util.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;;;;;;;;;GASG;AACH,SAAgB,cAAc,CAAC,IAAY;IACvC,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC;AACpD,CAAC;AAFD,wCAEC;AAED;;;;;;;;;GASG;AACH,SAAgB,gBAAgB,CAAC,IAAY;IACzC,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACvD,CAAC;AAFD,4CAEC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Emitter, Event } from '@theia/core/lib/common/event';
|
|
2
|
-
import { TaskClient, TaskExitedEvent, TaskInfo, TaskOutputProcessedEvent, BackgroundTaskEndedEvent } from './task-protocol';
|
|
3
|
-
export declare class TaskWatcher {
|
|
4
|
-
getTaskClient(): TaskClient;
|
|
5
|
-
protected onTaskCreatedEmitter: Emitter<TaskInfo>;
|
|
6
|
-
protected onTaskExitEmitter: Emitter<TaskExitedEvent>;
|
|
7
|
-
protected onDidStartTaskProcessEmitter: Emitter<TaskInfo>;
|
|
8
|
-
protected onDidEndTaskProcessEmitter: Emitter<TaskExitedEvent>;
|
|
9
|
-
protected onOutputProcessedEmitter: Emitter<TaskOutputProcessedEvent>;
|
|
10
|
-
protected onBackgroundTaskEndedEmitter: Emitter<BackgroundTaskEndedEvent>;
|
|
11
|
-
get onTaskCreated(): Event<TaskInfo>;
|
|
12
|
-
get onTaskExit(): Event<TaskExitedEvent>;
|
|
13
|
-
get onDidStartTaskProcess(): Event<TaskInfo>;
|
|
14
|
-
get onDidEndTaskProcess(): Event<TaskExitedEvent>;
|
|
15
|
-
get onOutputProcessed(): Event<TaskOutputProcessedEvent>;
|
|
16
|
-
get onBackgroundTaskEnded(): Event<BackgroundTaskEndedEvent>;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=task-watcher.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task-watcher.d.ts","sourceRoot":"","sources":["../../src/common/task-watcher.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,QAAQ,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAE5H,qBACa,WAAW;IAEpB,aAAa,IAAI,UAAU;IA6B3B,SAAS,CAAC,oBAAoB,oBAA2B;IACzD,SAAS,CAAC,iBAAiB,2BAAkC;IAC7D,SAAS,CAAC,4BAA4B,oBAA2B;IACjE,SAAS,CAAC,0BAA0B,2BAAkC;IACtE,SAAS,CAAC,wBAAwB,oCAA2C;IAC7E,SAAS,CAAC,4BAA4B,oCAA2C;IAEjF,IAAI,aAAa,IAAI,KAAK,CAAC,QAAQ,CAAC,CAEnC;IACD,IAAI,UAAU,IAAI,KAAK,CAAC,eAAe,CAAC,CAEvC;IACD,IAAI,qBAAqB,IAAI,KAAK,CAAC,QAAQ,CAAC,CAE3C;IACD,IAAI,mBAAmB,IAAI,KAAK,CAAC,eAAe,CAAC,CAEhD;IACD,IAAI,iBAAiB,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAEvD;IACD,IAAI,qBAAqB,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAE3D;CACJ"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2017 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.TaskWatcher = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const event_1 = require("@theia/core/lib/common/event");
|
|
22
|
-
let TaskWatcher = class TaskWatcher {
|
|
23
|
-
constructor() {
|
|
24
|
-
this.onTaskCreatedEmitter = new event_1.Emitter();
|
|
25
|
-
this.onTaskExitEmitter = new event_1.Emitter();
|
|
26
|
-
this.onDidStartTaskProcessEmitter = new event_1.Emitter();
|
|
27
|
-
this.onDidEndTaskProcessEmitter = new event_1.Emitter();
|
|
28
|
-
this.onOutputProcessedEmitter = new event_1.Emitter();
|
|
29
|
-
this.onBackgroundTaskEndedEmitter = new event_1.Emitter();
|
|
30
|
-
}
|
|
31
|
-
getTaskClient() {
|
|
32
|
-
const newTaskEmitter = this.onTaskCreatedEmitter;
|
|
33
|
-
const exitEmitter = this.onTaskExitEmitter;
|
|
34
|
-
const taskProcessStartedEmitter = this.onDidStartTaskProcessEmitter;
|
|
35
|
-
const taskProcessEndedEmitter = this.onDidEndTaskProcessEmitter;
|
|
36
|
-
const outputProcessedEmitter = this.onOutputProcessedEmitter;
|
|
37
|
-
const backgroundTaskEndedEmitter = this.onBackgroundTaskEndedEmitter;
|
|
38
|
-
return {
|
|
39
|
-
onTaskCreated(event) {
|
|
40
|
-
newTaskEmitter.fire(event);
|
|
41
|
-
},
|
|
42
|
-
onTaskExit(event) {
|
|
43
|
-
exitEmitter.fire(event);
|
|
44
|
-
},
|
|
45
|
-
onDidStartTaskProcess(event) {
|
|
46
|
-
taskProcessStartedEmitter.fire(event);
|
|
47
|
-
},
|
|
48
|
-
onDidEndTaskProcess(event) {
|
|
49
|
-
taskProcessEndedEmitter.fire(event);
|
|
50
|
-
},
|
|
51
|
-
onDidProcessTaskOutput(event) {
|
|
52
|
-
outputProcessedEmitter.fire(event);
|
|
53
|
-
},
|
|
54
|
-
onBackgroundTaskEnded(event) {
|
|
55
|
-
backgroundTaskEndedEmitter.fire(event);
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
get onTaskCreated() {
|
|
60
|
-
return this.onTaskCreatedEmitter.event;
|
|
61
|
-
}
|
|
62
|
-
get onTaskExit() {
|
|
63
|
-
return this.onTaskExitEmitter.event;
|
|
64
|
-
}
|
|
65
|
-
get onDidStartTaskProcess() {
|
|
66
|
-
return this.onDidStartTaskProcessEmitter.event;
|
|
67
|
-
}
|
|
68
|
-
get onDidEndTaskProcess() {
|
|
69
|
-
return this.onDidEndTaskProcessEmitter.event;
|
|
70
|
-
}
|
|
71
|
-
get onOutputProcessed() {
|
|
72
|
-
return this.onOutputProcessedEmitter.event;
|
|
73
|
-
}
|
|
74
|
-
get onBackgroundTaskEnded() {
|
|
75
|
-
return this.onBackgroundTaskEndedEmitter.event;
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
exports.TaskWatcher = TaskWatcher;
|
|
79
|
-
exports.TaskWatcher = TaskWatcher = tslib_1.__decorate([
|
|
80
|
-
(0, inversify_1.injectable)()
|
|
81
|
-
], TaskWatcher);
|
|
82
|
-
//# sourceMappingURL=task-watcher.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task-watcher.js","sourceRoot":"","sources":["../../src/common/task-watcher.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,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,4DAA0D;AAC1D,wDAA8D;AAIvD,IAAM,WAAW,GAAjB,MAAM,WAAW;IAAjB;QA+BO,yBAAoB,GAAG,IAAI,eAAO,EAAY,CAAC;QAC/C,sBAAiB,GAAG,IAAI,eAAO,EAAmB,CAAC;QACnD,iCAA4B,GAAG,IAAI,eAAO,EAAY,CAAC;QACvD,+BAA0B,GAAG,IAAI,eAAO,EAAmB,CAAC;QAC5D,6BAAwB,GAAG,IAAI,eAAO,EAA4B,CAAC;QACnE,iCAA4B,GAAG,IAAI,eAA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AAC;IACjD,CAAC;IACD,IAAI,iBAAiB;QACjB,OAAO,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC;IAC/C,CAAC;IACD,IAAI,qBAAqB;QACrB,OAAO,IAAI,CAAC,4BAA4B,CAAC,KAAK,CAAC;IACnD,CAAC;CACJ,CAAA;AAxDY,kCAAW;sBAAX,WAAW;IADvB,IAAA,sBAAU,GAAE;GACA,WAAW,CAwDvB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom-task-runner-backend-module.d.ts","sourceRoot":"","sources":["../../../src/node/custom/custom-task-runner-backend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAa,MAAM,8BAA8B,CAAC;AAMrE,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CActE"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2021 ByteDance 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.bindCustomTaskRunnerModule = void 0;
|
|
19
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
20
|
-
const custom_task_1 = require("./custom-task");
|
|
21
|
-
const custom_task_runner_1 = require("./custom-task-runner");
|
|
22
|
-
const custom_task_runner_contribution_1 = require("./custom-task-runner-contribution");
|
|
23
|
-
const task_runner_1 = require("../task-runner");
|
|
24
|
-
function bindCustomTaskRunnerModule(bind) {
|
|
25
|
-
bind(custom_task_1.CustomTask).toSelf().inTransientScope();
|
|
26
|
-
bind(custom_task_1.TaskFactory).toFactory(ctx => (options) => {
|
|
27
|
-
const child = new inversify_1.Container({ defaultScope: 'Singleton' });
|
|
28
|
-
child.parent = ctx.container;
|
|
29
|
-
child.bind(custom_task_1.TaskCustomOptions).toConstantValue(options);
|
|
30
|
-
return child.get(custom_task_1.CustomTask);
|
|
31
|
-
});
|
|
32
|
-
bind(custom_task_runner_1.CustomTaskRunner).toSelf().inSingletonScope();
|
|
33
|
-
bind(custom_task_runner_contribution_1.CustomTaskRunnerContribution).toSelf().inSingletonScope();
|
|
34
|
-
bind(task_runner_1.TaskRunnerContribution).toService(custom_task_runner_contribution_1.CustomTaskRunnerContribution);
|
|
35
|
-
}
|
|
36
|
-
exports.bindCustomTaskRunnerModule = bindCustomTaskRunnerModule;
|
|
37
|
-
//# sourceMappingURL=custom-task-runner-backend-module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom-task-runner-backend-module.js","sourceRoot":"","sources":["../../../src/node/custom/custom-task-runner-backend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,2CAA2C;AAC3C,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,4DAAqE;AACrE,+CAA2E;AAC3E,6DAAwD;AACxD,uFAAiF;AACjF,gDAAwD;AAExD,SAAgB,0BAA0B,CAAC,IAAqB;IAE5D,IAAI,CAAC,wBAAU,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC7C,IAAI,CAAC,yBAAW,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAC9B,CAAC,OAA0B,EAAE,EAAE;QAC3B,MAAM,KAAK,GAAG,IAAI,qBAAS,CAAC,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC,CAAC;QAC3D,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC;QAC7B,KAAK,CAAC,IAAI,CAAC,+BAAiB,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;QACvD,OAAO,KAAK,CAAC,GAAG,CAAC,wBAAU,CAAC,CAAC;IACjC,CAAC,CACJ,CAAC;IACF,IAAI,CAAC,qCAAgB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACnD,IAAI,CAAC,8DAA4B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC/D,IAAI,CAAC,oCAAsB,CAAC,CAAC,SAAS,CAAC,8DAA4B,CAAC,CAAC;AACzE,CAAC;AAdD,gEAcC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CustomTaskRunner } from './custom-task-runner';
|
|
2
|
-
import { TaskRunnerContribution, TaskRunnerRegistry } from '../task-runner';
|
|
3
|
-
export declare class CustomTaskRunnerContribution implements TaskRunnerContribution {
|
|
4
|
-
protected readonly customTaskRunner: CustomTaskRunner;
|
|
5
|
-
registerRunner(runners: TaskRunnerRegistry): void;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=custom-task-runner-contribution.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom-task-runner-contribution.d.ts","sourceRoot":"","sources":["../../../src/node/custom/custom-task-runner-contribution.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAE5E,qBACa,4BAA6B,YAAW,sBAAsB;IAGvE,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAEtD,cAAc,CAAC,OAAO,EAAE,kBAAkB,GAAG,IAAI;CAGpD"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2021 ByteDance 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.CustomTaskRunnerContribution = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const custom_task_runner_1 = require("./custom-task-runner");
|
|
22
|
-
let CustomTaskRunnerContribution = class CustomTaskRunnerContribution {
|
|
23
|
-
registerRunner(runners) {
|
|
24
|
-
runners.registerRunner('customExecution', this.customTaskRunner);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
exports.CustomTaskRunnerContribution = CustomTaskRunnerContribution;
|
|
28
|
-
tslib_1.__decorate([
|
|
29
|
-
(0, inversify_1.inject)(custom_task_runner_1.CustomTaskRunner),
|
|
30
|
-
tslib_1.__metadata("design:type", custom_task_runner_1.CustomTaskRunner)
|
|
31
|
-
], CustomTaskRunnerContribution.prototype, "customTaskRunner", void 0);
|
|
32
|
-
exports.CustomTaskRunnerContribution = CustomTaskRunnerContribution = tslib_1.__decorate([
|
|
33
|
-
(0, inversify_1.injectable)()
|
|
34
|
-
], CustomTaskRunnerContribution);
|
|
35
|
-
//# sourceMappingURL=custom-task-runner-contribution.js.map
|