mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
initial commit
This commit is contained in:
parent
533ca584c3
commit
0049b5b0bc
7 changed files with 184 additions and 34 deletions
|
@ -169,7 +169,7 @@ fn check(handler: Handler, before: &str, expected: ExpectedResult, assist_label:
|
|||
let sr = db.source_root(sr);
|
||||
let mut base = sr.path_for_file(&dst.anchor).unwrap().clone();
|
||||
base.pop();
|
||||
let created_file_path = format!("{}{}", base.to_string(), &dst.path[1..]);
|
||||
let created_file_path = base.join(&dst.path).unwrap();
|
||||
format_to!(buf, "//- {}\n", created_file_path);
|
||||
buf.push_str(&contents);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue