Add a number to the Custom Execution task close

See https://github.com/microsoft/vscode/issues/119311
This commit is contained in:
Alex Ross
2021-03-19 16:14:34 +01:00
parent 463571f99a
commit 0839a5dd8e

View File

@ -80,8 +80,8 @@ export class CustomBuildTaskProvider implements vscode.TaskProvider {
class CustomBuildTaskTerminal implements vscode.Pseudoterminal {
private writeEmitter = new vscode.EventEmitter<string>();
onDidWrite: vscode.Event<string> = this.writeEmitter.event;
private closeEmitter = new vscode.EventEmitter<void>();
onDidClose?: vscode.Event<void> = this.closeEmitter.event;
private closeEmitter = new vscode.EventEmitter<number>();
onDidClose?: vscode.Event<number> = this.closeEmitter.event;
private fileWatcher: vscode.FileSystemWatcher | undefined;
@ -126,7 +126,7 @@ class CustomBuildTaskTerminal implements vscode.Pseudoterminal {
this.setSharedState(date.toTimeString() + ' ' + date.toDateString());
this.writeEmitter.fire('Build complete.\r\n\r\n');
if (this.flags.indexOf('watch') === -1) {
this.closeEmitter.fire();
this.closeEmitter.fire(0);
resolve();
}
}, isIncremental ? 1000 : 4000);