estruyf / vscode-front-matter

Front Matter is a CMS running straight in Visual Studio Code. Can be used with static site generators like Hugo, Jekyll, Hexo, NextJs, Gatsby, and many more...
https://frontmatter.codes
MIT License
1.86k stars 70 forks source link

Issue: Open Preview button stops working #738

Closed antoninadert closed 4 months ago

antoninadert commented 5 months ago

Describe the bug Preview button stops opening the Preview panel when we close the panel for the first time. Restarting VS Code fixes the issue

To Reproduce

Expected behavior The preview re-opens again

Additional context Issue on

Version: 1.85.2 (Universal)
Commit: 8b3775030ed1a69b13e4f4c628c612102e30a681
Date: 2024-01-18T06:40:32.531Z (5 days ago)
Electron: 25.9.7
ElectronBuildId: 26354273
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 23.2.0

using Astro currently

estruyf commented 5 months ago

Thanks @antoninadert will take a look at what is going on and implement a fix for it.

estruyf commented 5 months ago

@antoninadert the issue should have been fixed in the latest beta version. Would you be able to give it a try?

antoninadert commented 5 months ago

It works fine. This one seems resolved.

I noticed something else, it's that when I installed the Beta version and uninstalled the old one, the system took a long time to show my markdown files under the content Dashboard, even if I refreshed a lot. I don't know why, but I tried to change the frontmatter.json to update the folders, then I changed the "Sort by" option in the dashboard and suddenly md files appeared. This will probably be hard to reproduce :D

Le mar. 23 janv. 2024 à 20:24, Elio Struyf @.***> a écrit :

@antoninadert https://github.com/antoninadert the issue should have been fixed in the latest beta version. Would you be able to give it a try?

— Reply to this email directly, view it on GitHub https://github.com/estruyf/vscode-front-matter/issues/738#issuecomment-1906776934, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEEAIWLIBO7C7TTHYSDM2TYQAE6JAVCNFSM6AAAAABCHHCHEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBWG43TMOJTGQ . You are receiving this because you were mentioned.Message ID: @.***>

estruyf commented 5 months ago

@antoninadert, with a new update, the cache gets cleared and reinitialized. That is why it took longer for your MD files to appear.

Thank you for verifying.