From 0cc69ba1d6562cded88b781a188ad70080106f3d Mon Sep 17 00:00:00 2001 From: Philippe Martin Date: Wed, 10 Jan 2024 10:40:58 -0500 Subject: [PATCH] fix: subscribe webview to have it unregistered automatically --- 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 3215de483..8ee6d7ad6 100644 --- a/packages/backend/src/studio.ts +++ b/packages/backend/src/studio.ts @@ -36,6 +36,7 @@ export class Studio { // register webview this.#panel = window.createWebviewPanel('studio', 'Studio extension', this.getWebviewOptions(extensionUri)); + this.#extensionContext.subscriptions.push(this.#panel); // update html