Skip to content

Commit 756e54f

Browse files
committed
fix: update comment to explain why vp commands are intercepted
Closes #1176
1 parent fbc8509 commit 756e54f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/cli/binding/src

packages/cli/binding/src/cli.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,8 +551,8 @@ impl CommandHandler for VitePlusCommandHandler {
551551
&mut self,
552552
command: &mut ScriptCommand,
553553
) -> anyhow::Result<HandledCommand> {
554-
// Only intercept "vp" commands in task scripts.
555-
// "vite" is a separate tool and should always run verbatim.
554+
// Intercept "vp" commands in task scripts so that `vp test`, `vp build`, etc.
555+
// are synthesized in-session rather than spawning a new CLI process.
556556
let program = command.program.as_str();
557557
if program != "vp" {
558558
return Ok(HandledCommand::Verbatim);

0 commit comments

Comments
 (0)