@theia/task 1.23.0-next.4 → 1.23.0-next.42
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.js +1 -1
- package/lib/browser/process/process-task-contribution.js +2 -2
- package/lib/browser/process/process-task-contribution.js.map +1 -1
- package/lib/browser/process/process-task-resolver.js +4 -4
- package/lib/browser/process/process-task-resolver.js.map +1 -1
- package/lib/browser/provided-task-configurations.js +3 -3
- package/lib/browser/provided-task-configurations.js.map +1 -1
- package/lib/browser/quick-open-task.d.ts +0 -8
- package/lib/browser/quick-open-task.d.ts.map +1 -1
- package/lib/browser/quick-open-task.js +41 -49
- package/lib/browser/quick-open-task.js.map +1 -1
- package/lib/browser/task-configuration-manager.js +17 -17
- package/lib/browser/task-configuration-manager.js.map +1 -1
- package/lib/browser/task-configurations.js +8 -8
- package/lib/browser/task-configurations.js.map +1 -1
- package/lib/browser/task-contribution.js +3 -3
- package/lib/browser/task-contribution.js.map +1 -1
- package/lib/browser/task-definition-registry.js +1 -1
- package/lib/browser/task-definition-registry.js.map +1 -1
- package/lib/browser/task-definition-registry.spec.js +13 -13
- package/lib/browser/task-definition-registry.spec.js.map +1 -1
- package/lib/browser/task-frontend-contribution.js +21 -21
- package/lib/browser/task-frontend-contribution.js.map +1 -1
- package/lib/browser/task-frontend-module.js +4 -4
- package/lib/browser/task-frontend-module.js.map +1 -1
- package/lib/browser/task-name-resolver.js +3 -3
- package/lib/browser/task-name-resolver.js.map +1 -1
- package/lib/browser/task-problem-matcher-registry.js +3 -3
- package/lib/browser/task-problem-matcher-registry.js.map +1 -1
- package/lib/browser/task-problem-pattern-registry.js +2 -2
- package/lib/browser/task-problem-pattern-registry.js.map +1 -1
- package/lib/browser/task-schema-updater.d.ts +1 -1
- package/lib/browser/task-schema-updater.d.ts.map +1 -1
- package/lib/browser/task-schema-updater.js +8 -8
- package/lib/browser/task-schema-updater.js.map +1 -1
- package/lib/browser/task-service.d.ts.map +1 -1
- package/lib/browser/task-service.js +32 -32
- package/lib/browser/task-service.js.map +1 -1
- package/lib/browser/task-source-resolver.js +2 -2
- package/lib/browser/task-source-resolver.js.map +1 -1
- package/lib/browser/task-templates.js +1 -1
- package/lib/browser/task-templates.js.map +1 -1
- package/lib/browser/task-terminal-widget-manager.js +8 -8
- package/lib/browser/task-terminal-widget-manager.js.map +1 -1
- package/lib/common/index.js +1 -1
- package/lib/common/task-watcher.js +1 -1
- package/lib/common/task-watcher.js.map +1 -1
- package/lib/node/custom/custom-task-runner-contribution.js +2 -2
- package/lib/node/custom/custom-task-runner-contribution.js.map +1 -1
- package/lib/node/custom/custom-task-runner.js +5 -5
- package/lib/node/custom/custom-task-runner.js.map +1 -1
- package/lib/node/custom/custom-task.d.ts +0 -2
- package/lib/node/custom/custom-task.d.ts.map +1 -1
- package/lib/node/custom/custom-task.js +5 -6
- package/lib/node/custom/custom-task.js.map +1 -1
- package/lib/node/index.js +1 -1
- package/lib/node/process/process-task-runner-contribution.js +2 -2
- package/lib/node/process/process-task-runner-contribution.js.map +1 -1
- package/lib/node/process/process-task-runner.js +8 -8
- package/lib/node/process/process-task-runner.js.map +1 -1
- package/lib/node/process/process-task.d.ts +0 -2
- package/lib/node/process/process-task.d.ts.map +1 -1
- package/lib/node/process/process-task.js +5 -6
- package/lib/node/process/process-task.js.map +1 -1
- package/lib/node/process/process-task.spec.js +4 -4
- package/lib/node/process/process-task.spec.js.map +1 -1
- package/lib/node/task-backend-application-contribution.js +4 -4
- package/lib/node/task-backend-application-contribution.js.map +1 -1
- package/lib/node/task-backend-module.js +4 -4
- package/lib/node/task-backend-module.js.map +1 -1
- package/lib/node/task-line-matchers.d.ts +0 -2
- package/lib/node/task-line-matchers.d.ts.map +1 -1
- package/lib/node/task-line-matchers.js +0 -2
- package/lib/node/task-line-matchers.js.map +1 -1
- package/lib/node/task-manager.js +3 -2
- package/lib/node/task-manager.js.map +1 -1
- package/lib/node/task-problem-collector.spec.js +19 -19
- package/lib/node/task-problem-collector.spec.js.map +1 -1
- package/lib/node/task-runner.js +3 -3
- package/lib/node/task-runner.js.map +1 -1
- package/lib/node/task-server.js +5 -5
- package/lib/node/task-server.js.map +1 -1
- package/lib/node/task-server.slow-spec.js +18 -16
- package/lib/node/task-server.slow-spec.js.map +1 -1
- package/lib/node/task.js +1 -1
- package/lib/node/task.js.map +1 -1
- package/lib/node/test/task-test-container.js +1 -1
- package/lib/node/test/task-test-container.js.map +1 -1
- package/package.json +12 -14
- package/src/browser/quick-open-task.ts +12 -13
- package/src/node/custom/custom-task.ts +3 -3
- package/src/node/process/process-task.ts +3 -3
- package/src/node/task-line-matchers.ts +3 -7
- package/src/node/task-server.slow-spec.ts +6 -5
- package/src/node/test/task-test-container.ts +2 -2
|
@@ -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();
|
|
@@ -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()}`));
|