Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

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

Closed
davelsan opened this issue Sep 5, 2021 · 3 comments
Closed

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

davelsan opened this issue Sep 5, 2021 · 3 comments

Comments

@davelsan
Copy link

davelsan commented Sep 5, 2021

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

  • With the extension installed, open a folder that contains a sub-folder with a Slidev project.
  • Verify that the Slidev side panel is missing.
  • Attempt to run any Slidev command.

Notes

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

@davelsan davelsan closed this as completed Sep 5, 2021
@davelsan davelsan changed the title No side panel / Command errors Extension inactive if the Slidev project is in a sub-folder Sep 5, 2021
@davelsan
Copy link
Author

davelsan commented Sep 5, 2021

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

@davelsan davelsan reopened this Sep 5, 2021
@antfu
Copy link
Member

antfu commented Oct 9, 2021

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

@microboym
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants