diff --git a/packages/core/src/common/disposable.ts b/packages/core/src/common/disposable.ts index a9726ea6e5cf8..5be0a862af13d 100644 --- a/packages/core/src/common/disposable.ts +++ b/packages/core/src/common/disposable.ts @@ -93,6 +93,7 @@ export class DisposableCollection implements Disposable { }); disposable.dispose = () => { toRemove.dispose(); + disposable.dispose = originalDispose; originalDispose(); }; return toRemove;