Skip to content

Commit

Permalink
fix: Export jar task finishes with error (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
CsCherrYY authored Jun 15, 2021
1 parent ee179c2 commit 3ea71e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/exportJarSteps/ExportJarTaskProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@ export class ExportJarTaskProvider implements TaskProvider {
class ExportJarTaskTerminal implements Pseudoterminal {

public writeEmitter = new EventEmitter<string>();
public closeEmitter = new EventEmitter<void>();
public closeEmitter = new EventEmitter<number>();

public onDidWrite: Event<string> = this.writeEmitter.event;
public onDidClose?: Event<void> = this.closeEmitter.event;
public onDidClose?: Event<number> = this.closeEmitter.event;

public terminalId: string;
private stepMetadata: IStepMetadata;
Expand All @@ -189,7 +189,7 @@ class ExportJarTaskTerminal implements Pseudoterminal {
}
if (activeTerminalMap.has(this.terminalId)) {
activeTerminalMap.delete(this.terminalId);
this.closeEmitter.fire();
this.closeEmitter.fire(0);
}
}

Expand Down

0 comments on commit 3ea71e2

Please sign in to comment.