diff --git a/vscode-lean4/src/infoview.ts b/vscode-lean4/src/infoview.ts index 38e4dea1..3412ced8 100644 --- a/vscode-lean4/src/infoview.ts +++ b/vscode-lean4/src/infoview.ts @@ -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() }