Skip to content

Commit 4216823

Browse files
authored
Merge branch 'main' into fix/custom-vp-home-broken
2 parents 139248a + d3f6ac2 commit 4216823

2 files changed

Lines changed: 1 addition & 15 deletions

File tree

  • .github/workflows
  • crates/vite_global_cli/src/commands/env

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ jobs:
294294
just lint
295295
# RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --document-private-items
296296
297-
- uses: crate-ci/typos@37bb98842b0d8c4ffebdb75301a13db0267cef89 # v1.47.2
297+
- uses: crate-ci/typos@bee27e3a4fd1ea2111cf90ab89cd076c870fce14 # v1.48.0
298298
with:
299299
files: .
300300

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)