From a695c94ca0628f055a7d16ea36667a3132fdf0a9 Mon Sep 17 00:00:00 2001 From: nekomoyi Date: Tue, 31 Mar 2026 00:10:12 +0800 Subject: [PATCH 1/2] fix(cli): remove dependency check for 'vp run' completion --- crates/vite_global_cli/src/cli.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/vite_global_cli/src/cli.rs b/crates/vite_global_cli/src/cli.rs index ec54c4ae54..ec591d4d42 100644 --- a/crates/vite_global_cli/src/cli.rs +++ b/crates/vite_global_cli/src/cli.rs @@ -1557,11 +1557,7 @@ fn should_force_global_delegate(command: &str, args: &[String]) -> bool { /// Delegates to the local vite-plus CLI to run `vp run` without arguments, /// which returns a list of available tasks in the format "task_name: description". fn run_tasks_completions(current: &OsStr) -> Vec { - let Some(cwd) = std::env::current_dir() - .ok() - .and_then(AbsolutePathBuf::new) - .filter(|p| commands::has_vite_plus_dependency(p)) - else { + let Ok(cwd) = vite_path::current_dir() else { return vec![]; }; From c0a7ef16771fc2d7c1194b8754aefa14f36d956c Mon Sep 17 00:00:00 2001 From: nekomoyi Date: Tue, 31 Mar 2026 00:44:26 +0800 Subject: [PATCH 2/2] chore: trigger ci rerun