mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
relative-path 1.0
This commit is contained in:
parent
6b588004c6
commit
c3045c68a9
9 changed files with 21 additions and 21 deletions
|
@ -58,7 +58,7 @@ impl hir::debug::HirDebugHelper for RootDatabase {
|
|||
let source_root_id = self.file_source_root(file_id);
|
||||
let source_root_path = self.debug_data.root_paths.get(&source_root_id)?;
|
||||
let file_path = self.file_relative_path(file_id);
|
||||
Some(format!("{}/{}", source_root_path, file_path.display()))
|
||||
Some(format!("{}/{}", source_root_path, file_path))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue