We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fc8005 commit a695c94Copy full SHA for a695c94
1 file changed
crates/vite_global_cli/src/cli.rs
@@ -1557,11 +1557,7 @@ fn should_force_global_delegate(command: &str, args: &[String]) -> bool {
1557
/// Delegates to the local vite-plus CLI to run `vp run` without arguments,
1558
/// which returns a list of available tasks in the format "task_name: description".
1559
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 {
+ let Ok(cwd) = vite_path::current_dir() else {
1565
return vec![];
1566
};
1567
0 commit comments