We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca74af6 commit 9554f74Copy full SHA for 9554f74
src/env/node/git/git.ts
@@ -411,9 +411,11 @@ export class Git implements Disposable {
411
const onAbort = () => aborter.abort();
412
413
const signal = spawnOpts.signal;
414
+ const cancellationDisposable = cancellation.onCancellationRequested(onAbort);
415
+
416
disposable = {
417
dispose: () => {
- cancellation?.onCancellationRequested(onAbort);
418
+ cancellationDisposable.dispose();
419
signal?.removeEventListener('abort', onAbort);
420
},
421
};
0 commit comments