Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VSCode] Dev Server Launched in Incorrect Directory When Using VSCode Workspace #2056

Open
sghuang19 opened this issue Feb 6, 2025 · 2 comments

Comments

@sghuang19
Copy link
Contributor

Minimal reproduction

  1. Create a workspace in VSCode, add several folders in it.
  2. Open a file in one of the folder
  3. Click Slidev extension icon, and run the dev server
  4. The dev server will be started from another folder that the current open editor tab doesn't belong to.

The default behavior of VSCode terminal is, new terminal windows will be opened from the root dir of the folder that contains the currently opened file. Slidev extension should mimic that behavior.

@kermanx
Copy link
Member

kermanx commented Feb 21, 2025

The terminal created by the Slidev extension is intended to be in the directory of slides.md. Is this your expected behavior?

@sghuang19
Copy link
Contributor Author

The terminal created by the Slidev extension is intended to be in the directory of slides.md. Is this your expected behavior?

In a VSCode workspace there could be many folders that have a slides.md, it'll be great if Slidev can open a terminal for each of them and switch between them automatically.

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

No branches or pull requests

2 participants