Skip to content

Commit 9f0ec68

Browse files
committed
Translate paths to proper Windows format using backslashes, use lowercase drive letter.
Fixes compatibility issues with VS Code 1.19. Fixes #11
1 parent d2ec2cd commit 9f0ec68

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
target/
22
**/*.rs.bk
3+
*.log
4+
*.patch

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# WSLGit Changelog
22

33

4+
## [0.4.0] - 2017-12-18
5+
6+
### Fixed
7+
8+
- Compatibility with VS Code 1.19, which now requires proper Windows paths
9+
(with backslashes) and a lowercase drive letter.
10+
11+
412
## [0.3.0] - 2017-11-08
513

614
### Added

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wslgit"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
authors = ["Andreas Riffnaller-Schiefer <[email protected]>"]
55
license = "MIT"
66

src/main.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ fn translate_path_to_win(line: &str) -> String {
3838
return String::from(line);
3939
}
4040
let mut win_path = String::from(
41-
drive.to_uppercase().collect::<String>());
42-
win_path.push_str(":/");
41+
drive.to_lowercase().collect::<String>());
42+
win_path.push_str(":\\");
4343
win_path.push_str(&path_chars.collect::<String>());
44-
return win_path;
44+
return win_path.replace("/", "\\");
4545
}
4646
}
4747
}

0 commit comments

Comments
 (0)