Skip to content

Commit

Permalink
fix: dispose webviewPanel in InfoProvider.dispose (#514)
Browse files Browse the repository at this point in the history
The InfoProvider opens the webviewPanel, so it should also call the
webviewPanel's dispose function when gettting disposed.
  • Loading branch information
abentkamp authored Dec 10, 2024
1 parent 1098740 commit 45c3616
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vscode-lean4/src/infoview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ export class InfoProvider implements Disposable {
// active client is changing.
this.clearNotificationHandlers()
this.clearRpcSessions(null)
this.webviewPanel?.dispose()
for (const s of this.clientSubscriptions) {
s.dispose()
}
Expand Down

0 comments on commit 45c3616

Please sign in to comment.