Fix 19090

This commit is contained in:
Ali Bektas 2025-02-18 20:49:43 +01:00
parent 957d3450da
commit fc10fe44de
5 changed files with 67 additions and 0 deletions

View file

@ -48,6 +48,10 @@ use crate::{
// }
// ```
pub(crate) fn generate_delegate_methods(acc: &mut Assists, ctx: &AssistContext<'_>) -> Option<()> {
if !ctx.config.code_action_grouping {
return None;
}
let strukt = ctx.find_node_at_offset::<ast::Struct>()?;
let strukt_name = strukt.name()?;
let current_module = ctx.sema.scope(strukt.syntax())?.module();