stackblitz / tutorialkit

TutorialKit by StackBlitz - Create interactive tutorials powered by the WebContainer API
https://tutorialkit.dev
MIT License
232 stars 22 forks source link

fix(extension): only match tutorialkit content and meta files #242

Closed Nemikolh closed 1 month ago

Nemikolh commented 1 month ago

This PR makes sure that the autocompletion and validation for the frontmatter applies primarily to files that should be within a tutorialkit project. The heuristic used is very simple and not perfect so there could still be false positive. However, after this PR it will become very unlikely as one would need to create a markdown file named meta.md or content.md(x) under a src/content/tutorial path.

Note that files under _files and _solution are ignored as this could be a common situation where the extension would incorrectly perform validation and provide autocompletions.

Closes #237

stackblitz[bot] commented 1 month ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

cloudflare-pages[bot] commented 1 month ago

Deploying tutorialkit-demo-page with  Cloudflare Pages  Cloudflare Pages

Latest commit: e6e3a34
Status: ✅  Deploy successful!
Preview URL: https://eed19f1f.tutorialkit-demo-page.pages.dev
Branch Preview URL: https://joan-fix-extensions-frontmat.tutorialkit-demo-page.pages.dev

View logs