slidev icon indicating copy to clipboard operation
slidev copied to clipboard

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

Open sghng opened this issue 11 months ago • 2 comments

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.

sghng avatar Feb 06 '25 21:02 sghng

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

kermanx avatar Feb 21 '25 09:02 kermanx

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.

sghng avatar Feb 21 '25 17:02 sghng