mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Add Semantics::original_ast_node for upmapping nodes out of macro files
This commit is contained in:
parent
b9fa37f5b4
commit
96db0d8bdd
14 changed files with 182 additions and 48 deletions
|
@ -91,7 +91,7 @@ pub(crate) fn extract_function(acc: &mut Assists, ctx: &AssistContext) -> Option
|
|||
|
||||
let target_range = body.text_range();
|
||||
|
||||
let scope = ImportScope::find_insert_use_container_with_macros(&node, &ctx.sema)?;
|
||||
let scope = ImportScope::find_insert_use_container(&node, &ctx.sema)?;
|
||||
|
||||
acc.add(
|
||||
AssistId("extract_function", crate::AssistKind::RefactorExtract),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue