mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Improve goto definition for MBE
This commit is contained in:
parent
6c1ec865fb
commit
371961be0e
6 changed files with 55 additions and 9 deletions
|
@ -828,7 +828,7 @@ where
|
|||
.ast_id(e)
|
||||
.with_file_id(self.current_file_id);
|
||||
|
||||
if let Some(def) = self.resolver.resolve_macro_call(path) {
|
||||
if let Some(def) = self.resolver.resolve_macro_call(self.db, path) {
|
||||
let call_id = MacroCallLoc { def, ast_id }.id(self.db);
|
||||
let file_id = call_id.as_file(MacroFileKind::Expr);
|
||||
if let Some(node) = self.db.parse_or_expand(file_id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue