Skip to content

Commit 43c29e6

Browse files
authored
fix: closing infoview can yield 'undefined' error (#756)
1 parent 967343b commit 43c29e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vscode-lean4/src/infoview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ export class InfoProvider implements Disposable {
951951
},
952952
processing,
953953
}
954-
await this.webviewPanel.api.gotServerNotification('$/lean/fileProgress', params)
954+
await this.webviewPanel?.api.gotServerNotification('$/lean/fileProgress', params)
955955
}
956956
}
957957

0 commit comments

Comments
 (0)