Skip to content

Commit

Permalink
Merge pull request #6 from projectatomic/fix/unsubscribe-webview
Browse files Browse the repository at this point in the history
fix: subscribe webview to have it unregistered automatically
  • Loading branch information
feloy authored Jan 10, 2024
2 parents 45822e8 + 0cc69ba commit d1e7ec8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/backend/src/studio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d1e7ec8

Please sign in to comment.