Skip to content

Commit

Permalink
GH-9375: fix nested wrapped issue of Disposable
Browse files Browse the repository at this point in the history
Signed-off-by: 李云峰 <[email protected]>
  • Loading branch information
李云峰 authored and colin-grant-work committed May 28, 2021
1 parent 8eb33e3 commit 2b65150
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/common/disposable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export class DisposableCollection implements Disposable {
});
disposable.dispose = () => {
toRemove.dispose();
disposable.dispose = originalDispose;
originalDispose();
};
return toRemove;
Expand Down

0 comments on commit 2b65150

Please sign in to comment.