Skip to content

Commit

Permalink
eclipse-theiaGH-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
李云峰 committed Apr 20, 2021
1 parent abe6b7a commit c6a43d8
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 c6a43d8

Please sign in to comment.