mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Update config.rs
This commit is contained in:
parent
7d8125abe7
commit
55540f1f85
1 changed files with 4 additions and 2 deletions
|
@ -3080,8 +3080,10 @@ mod tests {
|
|||
let package_json_path = project_root().join("editors/code/package.json");
|
||||
let mut package_json = fs::read_to_string(&package_json_path).unwrap();
|
||||
|
||||
let start_marker = " { \"title\": \"$generated-start\" },\n";
|
||||
let end_marker = " { \"title\": \"$generated-end\" }\n";
|
||||
let start_marker =
|
||||
" {\n \"title\": \"$generated-start\"\n },\n";
|
||||
let end_marker =
|
||||
" {\n \"title\": \"$generated-end\"\n }\n";
|
||||
|
||||
let start = package_json.find(start_marker).unwrap() + start_marker.len();
|
||||
let end = package_json.find(end_marker).unwrap();
|
||||
|
|
Loading…
Reference in a new issue