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
李云峰 authored and dna2github committed Aug 25, 2021
1 parent d94acdd commit c1c7913
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 c1c7913

Please sign in to comment.