mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-22 12:34:39 +00:00
dev: more consistent way to get docs of decls (#752)
* dev: more consistent way to get docs of decls * test: update snapshot
This commit is contained in:
parent
8129c6741e
commit
1c1bc19caf
23 changed files with 462 additions and 451 deletions
|
|
@ -41,7 +41,7 @@ impl StatefulRequest for RenameRequest {
|
|||
let source = ctx.source_by_path(&self.path).ok()?;
|
||||
let deref_target = ctx.deref_syntax_at(&source, self.position, 1)?;
|
||||
|
||||
let def = ctx.definition(&source, doc.as_ref(), deref_target.clone())?;
|
||||
let def = ctx.def_of_syntax(&source, doc.as_ref(), deref_target.clone())?;
|
||||
|
||||
prepare_renaming(ctx, &deref_target, &def)?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue