mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
Update crates/vfs/src/vfs_path.rs
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
parent
8f5e8e0a13
commit
51b1f7707b
1 changed files with 1 additions and 3 deletions
|
@ -359,9 +359,7 @@ impl VirtualPath {
|
|||
}
|
||||
path = &path["../".len()..]
|
||||
}
|
||||
while path.starts_with("./") {
|
||||
path = &path["./".len()..]
|
||||
}
|
||||
path = path.trim_start_matches("./");
|
||||
res.0 = format!("{}/{}", res.0, path);
|
||||
Some(res)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue