We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 905641f commit 01b2effCopy full SHA for 01b2eff
crates/ide/src/static_index.rs
@@ -278,7 +278,7 @@ impl StaticIndex<'_> {
278
for token in tokens {
279
let range = token.text_range();
280
let node = token.parent().unwrap();
281
- match get_definitions(&sema, token.clone()) {
+ match salsa::attach(self.db, || get_definitions(&sema, token.clone())) {
282
Some(it) => {
283
for i in it {
284
add_token(i, range, &node);
0 commit comments