From c6a43d89255723bc060513f4adae2d84422134a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BA=91=E5=B3=B0?= Date: Tue, 20 Apr 2021 14:14:05 +0800 Subject: [PATCH] GH-9375: fix nested wrapped issue of Disposable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李云峰 --- packages/core/src/common/disposable.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/common/disposable.ts b/packages/core/src/common/disposable.ts index a9726ea6e5cf8..841dbad74628e 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;