Sort hover results by relevance

This commit is contained in:
Lukas Wirth 2024-08-22 17:01:51 +02:00
parent c2a07e21f5
commit 01fc1e57d2
2 changed files with 18 additions and 6 deletions

View file

@ -407,8 +407,6 @@ fn traverse(
let mut t = None;
let mut r = 0;
// FIXME: Add an extra API that takes the file id of this. That is a simple way
// to prevent us constantly walking up the tree to fetch the file
sema.descend_into_macros_breakable(
InRealFile::new(file_id, token.clone()),
|tok| {