mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Allows triggering commands after an assist edit
This commit is contained in:
parent
e3ec87730a
commit
c6ffffccbd
18 changed files with 58 additions and 16 deletions
|
@ -45,6 +45,7 @@ pub(crate) fn ssr_assists(
|
|||
group: Some(GroupLabel("Apply SSR".into())),
|
||||
target: comment_range,
|
||||
source_change,
|
||||
trigger_signature_help: false,
|
||||
};
|
||||
|
||||
ssr_assists.push(assist);
|
||||
|
@ -140,6 +141,7 @@ mod tests {
|
|||
is_snippet: false,
|
||||
},
|
||||
),
|
||||
trigger_signature_help: false,
|
||||
}
|
||||
"#]]
|
||||
.assert_debug_eq(&apply_in_file_assist);
|
||||
|
@ -186,6 +188,7 @@ mod tests {
|
|||
is_snippet: false,
|
||||
},
|
||||
),
|
||||
trigger_signature_help: false,
|
||||
}
|
||||
"#]]
|
||||
.assert_debug_eq(&apply_in_workspace_assist);
|
||||
|
@ -225,6 +228,7 @@ mod tests {
|
|||
),
|
||||
target: 10..21,
|
||||
source_change: None,
|
||||
trigger_signature_help: false,
|
||||
}
|
||||
"#]]
|
||||
.assert_debug_eq(&apply_in_file_assist);
|
||||
|
@ -244,6 +248,7 @@ mod tests {
|
|||
),
|
||||
target: 10..21,
|
||||
source_change: None,
|
||||
trigger_signature_help: false,
|
||||
}
|
||||
"#]]
|
||||
.assert_debug_eq(&apply_in_workspace_assist);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue