Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/vfs/src/vfs_path.rs')
-rw-r--r--crates/vfs/src/vfs_path.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/vfs/src/vfs_path.rs b/crates/vfs/src/vfs_path.rs
index 0ad56e00d7..9f704d6ebe 100644
--- a/crates/vfs/src/vfs_path.rs
+++ b/crates/vfs/src/vfs_path.rs
@@ -359,6 +359,9 @@ impl VirtualPath {
}
path = &path["../".len()..]
}
+ while path.starts_with("./") {
+ path = &path["./".len()..]
+ }
res.0 = format!("{}/{}", res.0, path);
Some(res)
}