mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
Make sure to dispose callback registration
This commit is contained in:
@@ -533,8 +533,9 @@ export class ExtHostTask implements ExtHostTaskShape {
|
||||
this._activeExtensionCallbacks.set(execution.id, extensionCallback);
|
||||
}
|
||||
|
||||
extensionCallback.onTaskExecutionComplete(() => {
|
||||
const taskExecutionComplete: IDisposable = extensionCallback.onTaskExecutionComplete(() => {
|
||||
this.terminateExtensionCallbackExecution(execution);
|
||||
taskExecutionComplete.dispose();
|
||||
});
|
||||
|
||||
extensionCallback.startCallback(terminalId);
|
||||
|
||||
Reference in New Issue
Block a user