feature(assists): Fix regression
This commit is contained in:
parent
016c997243
commit
889f1f0a7c
1 changed files with 2 additions and 2 deletions
|
|
@ -45,8 +45,8 @@ pub(crate) fn make_usual_string(mut ctx: AssistCtx<impl HirDatabase>) -> Option<
|
|||
));
|
||||
// parse inside string to escape `"`
|
||||
let start_of_inside = usual_start_pos + TextUnit::from(1);
|
||||
let inside_str =
|
||||
text.slice(TextRange::from_to(start_of_inside, text.len() - TextUnit::from(2)));
|
||||
let end_of_inside = text.len() - usual_start_pos - TextUnit::from(1);
|
||||
let inside_str = text.slice(TextRange::from_to(start_of_inside, end_of_inside));
|
||||
escape_quote(
|
||||
edit,
|
||||
&inside_str,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue