Issue: Open Preview button stops working #738

This commit is contained in:
Elio Struyf
2024-01-23 20:10:48 +01:00
parent 3eb23d7501
commit b981ed6c4f
2 changed files with 4 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
- [#721](https://github.com/estruyf/vscode-front-matter/issues/721): Fix keywords regex to support unicode characters
- [#725](https://github.com/estruyf/vscode-front-matter/issues/725): Fix for opening menu of pinned items
- [#730](https://github.com/estruyf/vscode-front-matter/issues/730): Add debounce to the input fields
- [#738](https://github.com/estruyf/vscode-front-matter/issues/738): Fix when re-opening the preview after closing it
## [9.4.0] - 2023-12-12 - [Release notes](https://beta.frontmatter.codes/updates/v9.4.0)

View File

@@ -97,6 +97,9 @@ export class Preview {
const cspSource = webView.webview.cspSource;
webView.onDidDispose(() => {
if (crntFilePath && this.webviews[crntFilePath]) {
delete this.webviews[crntFilePath];
}
webView.dispose();
});