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.95k stars 77 forks source link

Feedback: Custom scripts appear only on main dashboard #777

Closed davidsneighbour closed 5 months ago

davidsneighbour commented 6 months ago

I have a bunch of custom actions defined in a subfolder config. Recently, I'm not sure when exactly, it might have been a while, the buttons to run these scripts disappeared from the sidebar panel when I was inside my content files. I know the buttons were there. Now they are not.

I find the actions however in the three dots menu on the main dashboard.

Did that change somehow or did another config option hide these actions? I removed frontMatter.panel.actions.disabled from my config to no change.

My main config is here and here.

estruyf commented 6 months ago

Do you mean these actions?

image

estruyf commented 6 months ago

I just verified it on Windows with both the stable and beta versions.

image

Don't spot any issues. 🤔

davidsneighbour commented 6 months ago

I should have clicked around... I think the issue might be elsewhere. Can you try to follow these steps:

It opens an overview screen like this:

index md-kollitsch dev(Workspace)-VisualStudioCode_1874x1058_20240318-18:09:42

(sidenote: If I click on "recently modified" items in that side panel view, they load in the editor view without updating the left column.)

My problem might be that without the Main Dashboard open in the editor area, the left side panel does not automatically update on new or switches to the editor. Or maybe another plugin is interfering with Frontmatter? But that would be quite insecure for VSCode.

If I keep the dashboard open, the left side updates and shows what you have in your screenshots, which is a start :)

estruyf commented 6 months ago

Found it! It was only in that file. Saw that my VSCode instance gave an error on the YAML.

image

Updating the YAML content for description and summary to following contents fixed it:

description: '"Flow State" by Above & Beyond is in my opinion an ideal soundtrack for enhancing concentration and workflow.'
summary: "\"Flow State\" by Above & Beyond is in my opinion an ideal soundtrack for enhancing concentration and workflow. The album's 49 minutes of ambient compositions and neo-classical soundscapes create a serene and non-intrusive background, conducive to entering a state of deep focus, often referred to as the \"flow state\" in programming and other cognitive-intensive tasks."

Now the panel rendered correctly.

estruyf commented 6 months ago

I'm going to implement a change that shows an error message like this:

image