Skip to content

Commit

Permalink
Merge pull request #13 from projectatomic/fix/unsubscribe-webview-2
Browse files Browse the repository at this point in the history
fix: subscribe webpanel to have it unregistered automatically
  • Loading branch information
feloy authored Jan 11, 2024
2 parents 18eb886 + df4727d commit 8716f60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/backend/src/studio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export class Studio {

// register webview
this.#panel = window.createWebviewPanel('studio', 'Studio extension', this.getWebviewOptions(extensionUri));

this.#extensionContext.subscriptions.push(this.#panel);

// update html

const indexHtmlUri = Uri.joinPath(extensionUri, 'media', 'index.html');
Expand Down

0 comments on commit 8716f60

Please sign in to comment.