Skip to content

Commit 6178f08

Browse files
committed
refactor(nushell): remove Fish completion generation from setup command
1 parent d834f63 commit 6178f08

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

  • crates/vite_global_cli/src/commands/env

crates/vite_global_cli/src/commands/env/setup.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,6 @@ pub async fn execute(refresh: bool, env_only: bool) -> Result<ExitStatus, Error>
4646
// Create env files with PATH guard (prevents duplicate PATH entries)
4747
create_env_files(&vite_plus_home).await?;
4848

49-
// Generate Fish completion file at ~/.vite-plus/vp.fish for Fish shell users.
50-
// Nushell completions delegate to Fish dynamically via VP_COMPLETE=fish at runtime.
51-
// command_with_help() uses a deep call stack, so we spawn a thread with a larger stack.
52-
let fish_completions_path = vite_plus_home.join("vp.fish").as_path().to_path_buf();
53-
std::thread::Builder::new()
54-
.stack_size(8 * 1024 * 1024)
55-
.spawn(move || -> std::io::Result<()> {
56-
let mut file = std::fs::File::create(&fish_completions_path)?;
57-
let mut cmd = crate::cli::command_with_help();
58-
clap_complete::generate(clap_complete::Shell::Fish, &mut cmd, "vp", &mut file);
59-
Ok(())
60-
})
61-
.map_err(Error::CommandExecution)?
62-
.join()
63-
.map_err(|_| Error::Other("Fish completion generation failed".into()))?
64-
.map_err(Error::CommandExecution)?;
65-
6649
if env_only {
6750
println!("{}", help::render_heading("Setup"));
6851
println!(" Updated shell environment files.");

0 commit comments

Comments
 (0)