From 02a5039bf851561ca452804fe0f08547ed3811b9 Mon Sep 17 00:00:00 2001 From: axel7083 <42176370+axel7083@users.noreply.github.com> Date: Thu, 6 Jun 2024 15:56:22 +0200 Subject: [PATCH] fix: dispose webview panel (#1172) Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com> --- packages/backend/src/studio.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/backend/src/studio.ts b/packages/backend/src/studio.ts index 80f941bf3..40413dd1a 100644 --- a/packages/backend/src/studio.ts +++ b/packages/backend/src/studio.ts @@ -96,6 +96,7 @@ export class Studio { // init webview this.#panel = await initWebview(this.#extensionContext.extensionUri); + this.#extensionContext.subscriptions.push(this.#panel); // Creating cancellation token registry const cancellationTokenRegistry = new CancellationTokenRegistry();