Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve case for Windows paths as found on disc #15

Merged
merged 11 commits into from
Jun 5, 2024

Conversation

DonJayamanne
Copy link
Collaborator

@DonJayamanne DonJayamanne commented Jun 5, 2024

Fixes #14

@@ -11,10 +12,9 @@ fn get_global_virtualenv_dirs(
let mut venv_dirs: Vec<PathBuf> = vec![];

if let Some(work_on_home) = work_on_home_env_var {
if let Ok(work_on_home) = fs::canonicalize(work_on_home) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately theres a known issue in rust and this returns UNC prefix, which we do not need
rust-lang/rust#42869

@DonJayamanne DonJayamanne changed the title Preserve case for paths on disc Preserve case for Windows paths on disc Jun 5, 2024
@DonJayamanne DonJayamanne changed the title Preserve case for Windows paths on disc Preserve case for Windows paths as found on disc Jun 5, 2024
@DonJayamanne DonJayamanne marked this pull request as ready for review June 5, 2024 12:49
@DonJayamanne DonJayamanne enabled auto-merge (squash) June 5, 2024 12:49
@DonJayamanne DonJayamanne merged commit a095fbb into main Jun 5, 2024
24 checks passed
@DonJayamanne DonJayamanne deleted the preservePathCase branch June 5, 2024 13:33
@karthiknadig karthiknadig added the bug Issue identified by VS Code Team member as probable bug label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicate envs detected due to changes in casing
3 participants