diff --git a/vscode-lean4/src/infoview.ts b/vscode-lean4/src/infoview.ts index 6f41b663b..9ac209858 100644 --- a/vscode-lean4/src/infoview.ts +++ b/vscode-lean4/src/infoview.ts @@ -507,6 +507,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() }