slidevjs / slidev-vscode

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

Allow specifying a subdir for slidev #24

Closed mdbenito closed 4 months ago

mdbenito commented 4 months ago

Currently slidev expects a package.json in the root of the repository. However, some projects which might not be js-based and use sli.dev for slides in a subfolder, won't have this. It would be very convenient to be able to tell the extension where to find the slides.

I have tried forcing "slidev.enabled": true in the workspace settings, but this has no effect.

Of course, opening that folder instead of the project root in vscode solves the problem.

Thanks for the extension!

KermanX commented 4 months ago

We've rewritten the VSCode extension for Slidev (https://github.com/slidevjs/slidev/pull/1557). Upgrading the VSCode extension to the latest (0.49.1) can resolve this issue.