mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-19 01:50:32 +00:00
initial commit
This commit is contained in:
parent
533ca584c3
commit
0049b5b0bc
7 changed files with 184 additions and 34 deletions
|
@ -359,6 +359,9 @@ impl VirtualPath {
|
|||
}
|
||||
path = &path["../".len()..]
|
||||
}
|
||||
while path.starts_with("./") {
|
||||
path = &path["./".len()..]
|
||||
}
|
||||
res.0 = format!("{}/{}", res.0, path);
|
||||
Some(res)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue