Skip to content

Commit 6895d17

Browse files
authored
chore(env): remove legacy completion cleanup (#2050)
Removes the temporary legacy completion directory cleanup that was meant to be deleted before the beta release.
1 parent 44209f1 commit 6895d17

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

  • crates/vite_global_cli/src/commands/env

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ pub async fn execute(refresh: bool, env_only: bool) -> Result<ExitStatus, Error>
6161
// Ensure home directory exists (env files are written here)
6262
tokio::fs::create_dir_all(&vite_plus_home).await?;
6363

64-
// TODO: remove this cleanup logic before the beta release
65-
cleanup_legacy_completion_dir(&vite_plus_home).await;
66-
6764
// Create env files with PATH guard (prevents duplicate PATH entries)
6865
create_env_files(&vite_plus_home).await?;
6966

@@ -522,17 +519,6 @@ pub(crate) async fn cleanup_legacy_windows_shim(bin_dir: &vite_path::AbsolutePat
522519
}
523520
}
524521

525-
/// Remove `~/.vite-plus/completion` directory
526-
///
527-
/// In older versions, static completion scripts were generated in `~/.vite-plus/completion/`.
528-
/// This is no longer needed with dynamic completion support.
529-
async fn cleanup_legacy_completion_dir(vite_plus_home: &vite_path::AbsolutePath) {
530-
let completion_dir = vite_plus_home.join("completion");
531-
if tokio::fs::remove_dir_all(&completion_dir).await.is_ok() {
532-
tracing::debug!("Removed legacy completion directory: {:?}", completion_dir);
533-
}
534-
}
535-
536522
// POSIX env file (bash/zsh)
537523
// When sourced multiple times, removes existing entry and re-prepends to front
538524
// Uses parameter expansion to split PATH around the bin entry in O(1) operations

0 commit comments

Comments
 (0)