One assist for function and method generation
This commit is contained in:
parent
02f5b5e0e2
commit
3c31f3831d
@ -131,8 +131,8 @@ pub(crate) fn generate_method(acc: &mut Assists, ctx: &AssistContext) -> Option<
|
||||
let target = call.syntax().text_range();
|
||||
|
||||
acc.add(
|
||||
AssistId("generate_method", AssistKind::Generate),
|
||||
format!("Generate `{}` method", function_builder.fn_name),
|
||||
AssistId("generate_function", AssistKind::Generate),
|
||||
format!("Generate `{}` function", function_builder.fn_name),
|
||||
target,
|
||||
|builder| {
|
||||
let function_template = function_builder.render();
|
||||
|
Loading…
Reference in New Issue
Block a user