mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-03 05:13:35 +00:00
Fix 19090
This commit is contained in:
parent
957d3450da
commit
fc10fe44de
5 changed files with 67 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue