mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
fix: Fix incorrect token pick rankings
This commit is contained in:
parent
cb52271701
commit
6bf674c8e4
2 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@ pub(crate) fn goto_implementation(
|
|||
|
||||
let original_token =
|
||||
pick_best_token(syntax.token_at_offset(position.offset), |kind| match kind {
|
||||
IDENT | T![self] => 1,
|
||||
IDENT | T![self] | INT_NUMBER => 1,
|
||||
_ => 0,
|
||||
})?;
|
||||
let range = original_token.text_range();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue