slidevjs / slidev-vscode

VS Code extension for Slidev
https://marketplace.visualstudio.com/items?itemName=antfu.slidev
MIT License
252 stars 17 forks source link

Extension inactive if the Slidev project is in a sub-folder #10

Closed davelsan closed 2 years ago

davelsan commented 3 years ago

Describe

The Slidev folder must be opened in VSCode as the root workspace folder. If the project is in a sub-folder, the extension is not activated, resulting in:

Reproduce

Notes

This might be the expected behavior. If so, perhaps there is a way to warn the user about this?

davelsan commented 3 years ago

Reconverted the issue to better describe the actual problem. Reopening.

antfu commented 2 years ago

Have @slidev/cli in your root pakcage.json and it will work.

microboym commented 2 years ago
Screen Shot 2022-07-14 at 11 47 38

I have installed slidev globally. I created slides.md in the root folder of vscode and ran slidev in the terminal, which successfully started the presentation that I could open in my browser. I can not find any .json file in my folder. (is the spelling correct in pakcage.json?)

@antfu

Have @slidev/cli in your root pakcage.json and it will work.