Issue: Open Preview button stops working #738

This commit is contained in:
Elio Struyf committed 2024-01-23 20:25:53 +01:00
1 parent 3eb23d7501
commit b981ed6c4f
2 files changed
+4

No files matched your search

+1
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)
+3
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();
});