Remove hack in terminal task system to delay disposal

This is no longer needed because #92868 is fixed

This reverts commit d6354443f4.
This commit is contained in:
Alex Ross
2020-07-30 11:58:45 +02:00
parent c193076a45
commit e39d21e318
2 changed files with 8 additions and 9 deletions

View File

@@ -167,7 +167,7 @@ import { window, tasks, Disposable, TaskDefinition, Task, EventEmitter, CustomEx
commands.executeCommand('workbench.action.tasks.runTask', `${taskType}: ${taskName}`);
});
test.skip('Execution from onDidEndTaskProcess is equal to original', () => {
test('Execution from onDidEndTaskProcess is equal to original', () => {
return new Promise(async (resolve, reject) => {
const task = new Task({ type: 'testTask' }, TaskScope.Workspace, 'echo', 'testTask', new ShellExecution('echo', ['hello test']));
let taskExecution: TaskExecution | undefined;
@@ -194,7 +194,7 @@ import { window, tasks, Disposable, TaskDefinition, Task, EventEmitter, CustomEx
});
});
test.skip('Execution from onDidStartTaskProcess is equal to original', () => {
test('Execution from onDidStartTaskProcess is equal to original', () => {
return new Promise(async (resolve, reject) => {
const task = new Task({ type: 'testTask' }, TaskScope.Workspace, 'echo', 'testTask', new ShellExecution('echo', ['hello test']));
let taskExecution: TaskExecution | undefined;
@@ -228,8 +228,10 @@ import { window, tasks, Disposable, TaskDefinition, Task, EventEmitter, CustomEx
private readonly writeEmitter = new EventEmitter<string>();
public readonly onDidWrite: Event<string> = this.writeEmitter.event;
public async close(): Promise<void> { }
private closeEmitter = new EventEmitter<void>();
onDidClose: Event<void> = this.closeEmitter.event;
public open(): void {
this.close();
this.closeEmitter.fire();
resolve();
}
}