@theia/task 1.23.0-next.5 → 1.23.0-next.54
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 +0 -15
- package/lib/browser/index.d.ts.map +1 -1
- package/lib/browser/index.js +16 -16
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/process/process-task-contribution.d.ts +0 -15
- package/lib/browser/process/process-task-contribution.d.ts.map +1 -1
- package/lib/browser/process/process-task-contribution.js +17 -17
- package/lib/browser/process/process-task-contribution.js.map +1 -1
- package/lib/browser/process/process-task-frontend-module.d.ts +0 -15
- package/lib/browser/process/process-task-frontend-module.d.ts.map +1 -1
- package/lib/browser/process/process-task-frontend-module.js +15 -15
- package/lib/browser/process/process-task-frontend-module.js.map +1 -1
- package/lib/browser/process/process-task-resolver.d.ts +0 -15
- package/lib/browser/process/process-task-resolver.d.ts.map +1 -1
- package/lib/browser/process/process-task-resolver.js +19 -19
- package/lib/browser/process/process-task-resolver.js.map +1 -1
- package/lib/browser/provided-task-configurations.d.ts +0 -15
- package/lib/browser/provided-task-configurations.d.ts.map +1 -1
- package/lib/browser/provided-task-configurations.js +18 -18
- package/lib/browser/provided-task-configurations.js.map +1 -1
- package/lib/browser/provided-task-configurations.spec.d.ts +0 -15
- package/lib/browser/provided-task-configurations.spec.d.ts.map +1 -1
- package/lib/browser/provided-task-configurations.spec.js +15 -15
- package/lib/browser/provided-task-configurations.spec.js.map +1 -1
- package/lib/browser/quick-open-task.d.ts +0 -23
- package/lib/browser/quick-open-task.d.ts.map +1 -1
- package/lib/browser/quick-open-task.js +56 -64
- package/lib/browser/quick-open-task.js.map +1 -1
- package/lib/browser/task-configuration-manager.d.ts +0 -15
- package/lib/browser/task-configuration-manager.d.ts.map +1 -1
- package/lib/browser/task-configuration-manager.js +32 -32
- package/lib/browser/task-configuration-manager.js.map +1 -1
- package/lib/browser/task-configuration-model.d.ts +0 -15
- package/lib/browser/task-configuration-model.d.ts.map +1 -1
- package/lib/browser/task-configuration-model.js +15 -15
- package/lib/browser/task-configuration-model.js.map +1 -1
- package/lib/browser/task-configurations.d.ts +0 -15
- package/lib/browser/task-configurations.d.ts.map +1 -1
- package/lib/browser/task-configurations.js +23 -23
- package/lib/browser/task-configurations.js.map +1 -1
- package/lib/browser/task-contribution.d.ts +0 -15
- package/lib/browser/task-contribution.d.ts.map +1 -1
- package/lib/browser/task-contribution.js +18 -18
- package/lib/browser/task-contribution.js.map +1 -1
- package/lib/browser/task-definition-registry.d.ts +0 -15
- package/lib/browser/task-definition-registry.d.ts.map +1 -1
- package/lib/browser/task-definition-registry.js +16 -16
- package/lib/browser/task-definition-registry.js.map +1 -1
- package/lib/browser/task-definition-registry.spec.d.ts +0 -15
- package/lib/browser/task-definition-registry.spec.d.ts.map +1 -1
- package/lib/browser/task-definition-registry.spec.js +28 -28
- package/lib/browser/task-definition-registry.spec.js.map +1 -1
- package/lib/browser/task-frontend-contribution.d.ts +0 -15
- package/lib/browser/task-frontend-contribution.d.ts.map +1 -1
- package/lib/browser/task-frontend-contribution.js +36 -36
- package/lib/browser/task-frontend-contribution.js.map +1 -1
- package/lib/browser/task-frontend-module.d.ts +0 -15
- package/lib/browser/task-frontend-module.d.ts.map +1 -1
- package/lib/browser/task-frontend-module.js +19 -19
- package/lib/browser/task-frontend-module.js.map +1 -1
- package/lib/browser/task-name-resolver.d.ts +0 -15
- package/lib/browser/task-name-resolver.d.ts.map +1 -1
- package/lib/browser/task-name-resolver.js +18 -18
- package/lib/browser/task-name-resolver.js.map +1 -1
- package/lib/browser/task-node.d.ts +0 -15
- package/lib/browser/task-node.d.ts.map +1 -1
- package/lib/browser/task-preferences.d.ts +0 -15
- package/lib/browser/task-preferences.d.ts.map +1 -1
- package/lib/browser/task-preferences.js +15 -15
- package/lib/browser/task-preferences.js.map +1 -1
- package/lib/browser/task-problem-matcher-registry.d.ts +0 -15
- package/lib/browser/task-problem-matcher-registry.d.ts.map +1 -1
- package/lib/browser/task-problem-matcher-registry.js +18 -18
- package/lib/browser/task-problem-matcher-registry.js.map +1 -1
- package/lib/browser/task-problem-pattern-registry.d.ts +0 -15
- package/lib/browser/task-problem-pattern-registry.d.ts.map +1 -1
- package/lib/browser/task-problem-pattern-registry.js +17 -17
- package/lib/browser/task-problem-pattern-registry.js.map +1 -1
- package/lib/browser/task-schema-updater.d.ts +1 -16
- package/lib/browser/task-schema-updater.d.ts.map +1 -1
- package/lib/browser/task-schema-updater.js +23 -23
- package/lib/browser/task-schema-updater.js.map +1 -1
- package/lib/browser/task-service.d.ts +0 -15
- package/lib/browser/task-service.d.ts.map +1 -1
- package/lib/browser/task-service.js +47 -47
- package/lib/browser/task-service.js.map +1 -1
- package/lib/browser/task-source-resolver.d.ts +0 -15
- package/lib/browser/task-source-resolver.d.ts.map +1 -1
- package/lib/browser/task-source-resolver.js +17 -17
- package/lib/browser/task-source-resolver.js.map +1 -1
- package/lib/browser/task-templates.d.ts +0 -15
- package/lib/browser/task-templates.d.ts.map +1 -1
- package/lib/browser/task-templates.js +16 -16
- package/lib/browser/task-templates.js.map +1 -1
- package/lib/browser/task-terminal-widget-manager.d.ts +0 -15
- package/lib/browser/task-terminal-widget-manager.d.ts.map +1 -1
- package/lib/browser/task-terminal-widget-manager.js +23 -23
- package/lib/browser/task-terminal-widget-manager.js.map +1 -1
- package/lib/browser/tasks-monaco-contribution.d.ts +0 -15
- package/lib/browser/tasks-monaco-contribution.d.ts.map +1 -1
- package/lib/browser/tasks-monaco-contribution.js +15 -15
- package/lib/browser/tasks-monaco-contribution.js.map +1 -1
- package/lib/common/index.d.ts +0 -15
- package/lib/common/index.d.ts.map +1 -1
- package/lib/common/index.js +16 -16
- package/lib/common/index.js.map +1 -1
- package/lib/common/problem-matcher-protocol.d.ts +0 -15
- package/lib/common/problem-matcher-protocol.d.ts.map +1 -1
- package/lib/common/problem-matcher-protocol.js +15 -15
- package/lib/common/problem-matcher-protocol.js.map +1 -1
- package/lib/common/process/task-protocol.d.ts +0 -15
- package/lib/common/process/task-protocol.d.ts.map +1 -1
- package/lib/common/process/task-protocol.js +15 -15
- package/lib/common/process/task-protocol.js.map +1 -1
- package/lib/common/task-common-module.d.ts +0 -15
- package/lib/common/task-common-module.d.ts.map +1 -1
- package/lib/common/task-common-module.js +15 -15
- package/lib/common/task-common-module.js.map +1 -1
- package/lib/common/task-protocol.d.ts +0 -15
- package/lib/common/task-protocol.d.ts.map +1 -1
- package/lib/common/task-protocol.js +15 -15
- package/lib/common/task-protocol.js.map +1 -1
- package/lib/common/task-watcher.d.ts +0 -15
- package/lib/common/task-watcher.d.ts.map +1 -1
- package/lib/common/task-watcher.js +16 -16
- package/lib/common/task-watcher.js.map +1 -1
- package/lib/node/custom/custom-task-runner-backend-module.d.ts +0 -15
- package/lib/node/custom/custom-task-runner-backend-module.d.ts.map +1 -1
- package/lib/node/custom/custom-task-runner-backend-module.js +15 -15
- package/lib/node/custom/custom-task-runner-backend-module.js.map +1 -1
- package/lib/node/custom/custom-task-runner-contribution.d.ts +0 -15
- package/lib/node/custom/custom-task-runner-contribution.d.ts.map +1 -1
- package/lib/node/custom/custom-task-runner-contribution.js +17 -17
- package/lib/node/custom/custom-task-runner-contribution.js.map +1 -1
- package/lib/node/custom/custom-task-runner.d.ts +0 -15
- package/lib/node/custom/custom-task-runner.d.ts.map +1 -1
- package/lib/node/custom/custom-task-runner.js +20 -20
- package/lib/node/custom/custom-task-runner.js.map +1 -1
- package/lib/node/custom/custom-task.d.ts +0 -17
- package/lib/node/custom/custom-task.d.ts.map +1 -1
- package/lib/node/custom/custom-task.js +20 -21
- package/lib/node/custom/custom-task.js.map +1 -1
- package/lib/node/index.d.ts +0 -15
- package/lib/node/index.d.ts.map +1 -1
- package/lib/node/index.js +16 -16
- package/lib/node/index.js.map +1 -1
- package/lib/node/process/process-task-runner-backend-module.d.ts +0 -15
- package/lib/node/process/process-task-runner-backend-module.d.ts.map +1 -1
- package/lib/node/process/process-task-runner-backend-module.js +15 -15
- package/lib/node/process/process-task-runner-backend-module.js.map +1 -1
- package/lib/node/process/process-task-runner-contribution.d.ts +0 -15
- package/lib/node/process/process-task-runner-contribution.d.ts.map +1 -1
- package/lib/node/process/process-task-runner-contribution.js +17 -17
- package/lib/node/process/process-task-runner-contribution.js.map +1 -1
- package/lib/node/process/process-task-runner.d.ts +0 -15
- package/lib/node/process/process-task-runner.d.ts.map +1 -1
- package/lib/node/process/process-task-runner.js +23 -23
- package/lib/node/process/process-task-runner.js.map +1 -1
- package/lib/node/process/process-task.d.ts +0 -17
- package/lib/node/process/process-task.d.ts.map +1 -1
- package/lib/node/process/process-task.js +20 -21
- package/lib/node/process/process-task.js.map +1 -1
- package/lib/node/process/process-task.spec.d.ts +0 -15
- package/lib/node/process/process-task.spec.d.ts.map +1 -1
- package/lib/node/process/process-task.spec.js +19 -19
- package/lib/node/process/process-task.spec.js.map +1 -1
- package/lib/node/task-abstract-line-matcher.d.ts +0 -15
- package/lib/node/task-abstract-line-matcher.d.ts.map +1 -1
- package/lib/node/task-abstract-line-matcher.js +15 -15
- package/lib/node/task-abstract-line-matcher.js.map +1 -1
- package/lib/node/task-backend-application-contribution.d.ts +0 -15
- package/lib/node/task-backend-application-contribution.d.ts.map +1 -1
- package/lib/node/task-backend-application-contribution.js +19 -19
- package/lib/node/task-backend-application-contribution.js.map +1 -1
- package/lib/node/task-backend-module.d.ts +0 -15
- package/lib/node/task-backend-module.d.ts.map +1 -1
- package/lib/node/task-backend-module.js +19 -19
- package/lib/node/task-backend-module.js.map +1 -1
- package/lib/node/task-line-matchers.d.ts +0 -17
- package/lib/node/task-line-matchers.d.ts.map +1 -1
- package/lib/node/task-line-matchers.js +15 -17
- package/lib/node/task-line-matchers.js.map +1 -1
- package/lib/node/task-manager.js +18 -17
- package/lib/node/task-manager.js.map +1 -1
- package/lib/node/task-problem-collector.d.ts +0 -15
- package/lib/node/task-problem-collector.d.ts.map +1 -1
- package/lib/node/task-problem-collector.js +15 -15
- package/lib/node/task-problem-collector.js.map +1 -1
- package/lib/node/task-problem-collector.spec.d.ts +0 -15
- package/lib/node/task-problem-collector.spec.d.ts.map +1 -1
- package/lib/node/task-problem-collector.spec.js +34 -34
- package/lib/node/task-problem-collector.spec.js.map +1 -1
- package/lib/node/task-runner.d.ts +0 -15
- package/lib/node/task-runner.d.ts.map +1 -1
- package/lib/node/task-runner.js +18 -18
- package/lib/node/task-runner.js.map +1 -1
- package/lib/node/task-server.d.ts +0 -15
- package/lib/node/task-server.d.ts.map +1 -1
- package/lib/node/task-server.js +20 -20
- package/lib/node/task-server.js.map +1 -1
- package/lib/node/task-server.slow-spec.d.ts +0 -15
- package/lib/node/task-server.slow-spec.d.ts.map +1 -1
- package/lib/node/task-server.slow-spec.js +33 -31
- package/lib/node/task-server.slow-spec.js.map +1 -1
- package/lib/node/task.d.ts +0 -15
- package/lib/node/task.d.ts.map +1 -1
- package/lib/node/task.js +16 -16
- package/lib/node/task.js.map +1 -1
- package/lib/node/test/task-test-container.d.ts +0 -15
- package/lib/node/test/task-test-container.d.ts.map +1 -1
- package/lib/node/test/task-test-container.js +16 -16
- package/lib/node/test/task-test-container.js.map +1 -1
- package/package.json +12 -14
- package/src/browser/index.ts +15 -15
- package/src/browser/monaco.d.ts +15 -15
- package/src/browser/process/process-task-contribution.ts +15 -15
- package/src/browser/process/process-task-frontend-module.ts +15 -15
- package/src/browser/process/process-task-resolver.ts +15 -15
- package/src/browser/provided-task-configurations.spec.ts +15 -15
- package/src/browser/provided-task-configurations.ts +15 -15
- package/src/browser/quick-open-task.ts +27 -28
- package/src/browser/task-configuration-manager.ts +15 -15
- package/src/browser/task-configuration-model.ts +15 -15
- package/src/browser/task-configurations.ts +15 -15
- package/src/browser/task-contribution.ts +15 -15
- package/src/browser/task-definition-registry.spec.ts +15 -15
- package/src/browser/task-definition-registry.ts +15 -15
- package/src/browser/task-frontend-contribution.ts +15 -15
- package/src/browser/task-frontend-module.ts +15 -15
- package/src/browser/task-name-resolver.ts +15 -15
- package/src/browser/task-node.ts +15 -15
- package/src/browser/task-preferences.ts +15 -15
- package/src/browser/task-problem-matcher-registry.ts +15 -15
- package/src/browser/task-problem-pattern-registry.ts +15 -15
- package/src/browser/task-schema-updater.ts +15 -15
- package/src/browser/task-service.ts +15 -15
- package/src/browser/task-source-resolver.ts +15 -15
- package/src/browser/task-templates.ts +15 -15
- package/src/browser/task-terminal-widget-manager.ts +15 -15
- package/src/browser/tasks-monaco-contribution.ts +15 -15
- package/src/common/index.ts +15 -15
- package/src/common/problem-matcher-protocol.ts +15 -15
- package/src/common/process/task-protocol.ts +15 -15
- package/src/common/task-common-module.ts +15 -15
- package/src/common/task-protocol.ts +15 -15
- package/src/common/task-watcher.ts +15 -15
- package/src/node/custom/custom-task-runner-backend-module.ts +15 -15
- package/src/node/custom/custom-task-runner-contribution.ts +15 -15
- package/src/node/custom/custom-task-runner.ts +15 -15
- package/src/node/custom/custom-task.ts +18 -18
- package/src/node/index.ts +15 -15
- package/src/node/process/process-task-runner-backend-module.ts +15 -15
- package/src/node/process/process-task-runner-contribution.ts +15 -15
- package/src/node/process/process-task-runner.ts +15 -15
- package/src/node/process/process-task.spec.ts +15 -15
- package/src/node/process/process-task.ts +18 -18
- package/src/node/task-abstract-line-matcher.ts +15 -15
- package/src/node/task-backend-application-contribution.ts +15 -15
- package/src/node/task-backend-module.ts +15 -15
- package/src/node/task-line-matchers.ts +18 -22
- package/src/node/task-manager.ts +15 -15
- package/src/node/task-problem-collector.spec.ts +15 -15
- package/src/node/task-problem-collector.ts +15 -15
- package/src/node/task-runner.ts +15 -15
- package/src/node/task-server.slow-spec.ts +21 -20
- package/src/node/task-server.ts +15 -15
- package/src/node/task.ts +15 -15
- package/src/node/test/task-test-container.ts +17 -17
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2017-2019 Ericsson and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
/* eslint-disable no-unused-expressions */
|
|
18
18
|
|
|
@@ -105,7 +105,7 @@ describe('Task server / back-end', function (): void {
|
|
|
105
105
|
const messages: string[] = [];
|
|
106
106
|
|
|
107
107
|
// hook-up to terminal's ws and confirm that it outputs expected tasks' output
|
|
108
|
-
await new Promise((resolve, reject) => {
|
|
108
|
+
await new Promise<void>((resolve, reject) => {
|
|
109
109
|
const channel = new TestWebSocketChannel({ server, path: `${terminalsPath}/${terminalId}` });
|
|
110
110
|
channel.onError(reject);
|
|
111
111
|
channel.onClose((code, reason) => reject(new Error(`channel is closed with '${code}' code and '${reason}' reason`)));
|
|
@@ -137,7 +137,7 @@ describe('Task server / back-end', function (): void {
|
|
|
137
137
|
// create task using raw process
|
|
138
138
|
const taskInfo: TaskInfo = await taskServer.run(createProcessTaskConfig('process', executable, [someString]), wsRoot);
|
|
139
139
|
|
|
140
|
-
await new Promise((resolve, reject) => {
|
|
140
|
+
await new Promise<void>((resolve, reject) => {
|
|
141
141
|
const toDispose = taskWatcher.onTaskExit((event: TaskExitedEvent) => {
|
|
142
142
|
if (event.taskId === taskInfo.taskId && event.code === 0) {
|
|
143
143
|
if (typeof taskInfo.terminalId === 'number') {
|
|
@@ -242,8 +242,9 @@ describe('Task server / back-end', function (): void {
|
|
|
242
242
|
taskWatcher.onTaskExit((event: TaskExitedEvent) => {
|
|
243
243
|
if (event.taskId !== taskInfo.taskId || event.code === undefined) {
|
|
244
244
|
reject(new Error(JSON.stringify(event)));
|
|
245
|
+
} else {
|
|
246
|
+
resolve(event.code);
|
|
245
247
|
}
|
|
246
|
-
resolve(event.code);
|
|
247
248
|
});
|
|
248
249
|
});
|
|
249
250
|
// node-pty reports different things on Linux/macOS vs Windows when
|
|
@@ -422,8 +423,8 @@ function createTaskConfigTaskLongRunning(processType: ProcessType): TaskConfigur
|
|
|
422
423
|
};
|
|
423
424
|
}
|
|
424
425
|
|
|
425
|
-
function checkSuccessfulProcessExit(taskInfo: TaskInfo, taskWatcher: TaskWatcher): Promise<
|
|
426
|
-
return new Promise<
|
|
426
|
+
function checkSuccessfulProcessExit(taskInfo: TaskInfo, taskWatcher: TaskWatcher): Promise<void> {
|
|
427
|
+
return new Promise<void>((resolve, reject) => {
|
|
427
428
|
const toDispose = taskWatcher.onTaskExit((event: TaskExitedEvent) => {
|
|
428
429
|
if (event.taskId === taskInfo.taskId && event.code === 0) {
|
|
429
430
|
toDispose.dispose();
|
package/src/node/task-server.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2017 Ericsson and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { inject, injectable, named } from '@theia/core/shared/inversify';
|
|
18
18
|
import { Disposable, DisposableCollection, ILogger } from '@theia/core/lib/common/';
|
package/src/node/task.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2017 Ericsson and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { injectable } from '@theia/core/shared/inversify';
|
|
18
18
|
import { ILogger, Disposable, DisposableCollection, Emitter, Event, MaybePromise } from '@theia/core/lib/common/';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2017 Ericsson and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
import { Container } from '@theia/core/shared/inversify';
|
|
17
17
|
import { bindLogger } from '@theia/core/lib/node/logger-backend-module';
|
|
18
18
|
import { backendApplicationModule } from '@theia/core/lib/node/backend-application-module';
|
|
@@ -44,7 +44,7 @@ export function createTaskTestContainer(): Container {
|
|
|
44
44
|
testContainer.rebind(TerminalProcess).to(TestTerminalProcess);
|
|
45
45
|
|
|
46
46
|
testContainer.rebind(ProcessUtils).toConstantValue(new class extends ProcessUtils {
|
|
47
|
-
terminateProcessTree(): void { } // don't actually kill the tree, it breaks the tests.
|
|
47
|
+
override terminateProcessTree(): void { } // don't actually kill the tree, it breaks the tests.
|
|
48
48
|
});
|
|
49
49
|
|
|
50
50
|
return testContainer;
|
|
@@ -52,7 +52,7 @@ export function createTaskTestContainer(): Container {
|
|
|
52
52
|
|
|
53
53
|
class TestTerminalProcess extends TerminalProcess {
|
|
54
54
|
|
|
55
|
-
protected emitOnStarted(): void {
|
|
55
|
+
protected override emitOnStarted(): void {
|
|
56
56
|
if (process.env['THEIA_TASK_TEST_DEBUG']) {
|
|
57
57
|
console.log(`START ${this.id} ${JSON.stringify([this.executable, this.options.commandLine, ...this.arguments])}`);
|
|
58
58
|
this.outputStream.on('data', data => console.debug(`${this.id} OUTPUT: ${data.toString().trim()}`));
|