stackblitz / tutorialkit

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

fix: prevent overwriting template files via `<FileTree>` #336

Closed AriPerkkio closed 2 months ago

AriPerkkio commented 2 months ago

Show an error if user tries to create file that already exists on file system, but is not visible on FileTree. Such files are for example non-lesson template files.

stackblitz[bot] commented 2 months ago

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

AriPerkkio commented 2 months ago

Seeing the screenshot, I wonder if we should add more padding on the y-axis?

Sure! Now it looks like this: