Issue: Opening the parent folder of a frontmatter project will have frontmatter use it as a project as well
See original GitHub issueDescribe the bug When setting the vscode working folder to the parent of several Front Matter projects, the parent is treated as the default frontmatter project.
To Reproduce Steps to reproduce the behavior:
- Create three fromtmatter test projects in a folder labeled
test
- Open the folder
test
in VS Code as the workspace - Open a markdown file in one of the front matter projects
- Select the extension Front Matter
Note that Front Matter asks you to promote “local settings” to “global settings”.
Note that a frontmatter.json file is added to the non frontmatter project folder test
Expected behavior
Front Matter shouldn’t be greedy and claim folders to be projects that is not meant to be projects.
If the root of a workspace doesn’t contain a .frontmatter
folder, it’s not a Front Matter project.
Screenshots
Desktop (please complete the following information):
- Version: 1.74.0 (user setup)
- Commit: 5235c6bb189b60b01b1f49062f4ffa42384f8c91
- Date: 2022-12-05T16:38:16.075Z
- Electron: 19.1.8
- Chromium: 102.0.5005.167
- Node.js: 16.14.2
- V8: 10.2.154.15-electron.0
- OS: Windows_NT x64 10.0.19044
- Sandboxed: No
- FrontMatter: 8.2.0
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 9 months ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Getting started - Front Matter CMS
In this step, a .frontmatter/templates folder and article.md file template will be created in the current project.
Read more >Front Matter - Hugo
Front matter allows you to keep metadata attached to an instance of a content type—i.e., embedded inside a content file—and is one of...
Read more >Front Matter a CMS running straight in Visual Studio Code
Front Matter is a CMS running straight in Visual Studio Code. Can be used with static site generators like Hugo, Jekyll, Hexo, NextJs,...
Read more >python-frontmatter - PyPI
This is a small package to load and parse files (or just text) with YAML (or JSON, TOML or other) front matter. Tests...
Read more >Editing frontmatter in the static site editor - GitLab.org
Problem to solve Defined at the top of each file, front matter is a ... of a Middleman project template we should ensure...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m on Christmas vacation at the moment, but will get back to you next week.
Thanks and happy holidays @dennisl68-castra