Skip to content

Commit a695c94

Browse files
committed
fix(cli): remove dependency check for 'vp run' completion
1 parent 3fc8005 commit a695c94

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

  • crates/vite_global_cli/src

crates/vite_global_cli/src/cli.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,11 +1557,7 @@ fn should_force_global_delegate(command: &str, args: &[String]) -> bool {
15571557
/// Delegates to the local vite-plus CLI to run `vp run` without arguments,
15581558
/// which returns a list of available tasks in the format "task_name: description".
15591559
fn run_tasks_completions(current: &OsStr) -> Vec<clap_complete::CompletionCandidate> {
1560-
let Some(cwd) = std::env::current_dir()
1561-
.ok()
1562-
.and_then(AbsolutePathBuf::new)
1563-
.filter(|p| commands::has_vite_plus_dependency(p))
1564-
else {
1560+
let Ok(cwd) = vite_path::current_dir() else {
15651561
return vec![];
15661562
};
15671563

0 commit comments

Comments
 (0)