mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-06-13 07:10:26 +08:00
Add a number to the Custom Execution task close
See https://github.com/microsoft/vscode/issues/119311
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user