File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
src/tools/rust-analyzer/crates/ide/src Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -481,12 +481,15 @@ impl Analysis {
481
481
// `world_symbols` currently clones the database to run stuff in parallel, which will make any query panic
482
482
// if we were to attach it here.
483
483
Cancelled :: catch ( || {
484
- symbol_index:: world_symbols ( & self . db , query)
485
- . into_iter ( )
486
- . filter_map ( |s| s. try_to_nav ( & self . db ) )
487
- . take ( limit)
488
- . map ( UpmappingResult :: call_site)
489
- . collect :: < Vec < _ > > ( )
484
+ let symbols = symbol_index:: world_symbols ( & self . db , query) ;
485
+ salsa:: attach ( & self . db , || {
486
+ symbols
487
+ . into_iter ( )
488
+ . filter_map ( |s| s. try_to_nav ( & self . db ) )
489
+ . take ( limit)
490
+ . map ( UpmappingResult :: call_site)
491
+ . collect :: < Vec < _ > > ( )
492
+ } )
490
493
} )
491
494
}
492
495
You can’t perform that action at this time.
0 commit comments