Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'src/edi/ra.rs')
| -rw-r--r-- | src/edi/ra.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/edi/ra.rs b/src/edi/ra.rs index ef0c7c8..bed6931 100644 --- a/src/edi/ra.rs +++ b/src/edi/ra.rs @@ -31,7 +31,14 @@ pub fn ra( println!("RA panic @ {}", info.location().unwrap()); } })); - rust_analyzer::bin::run_server(b).into_rootcause() + + rayon::ThreadPoolBuilder::new() + .thread_name(|ix| format!("RayonWorker{}", ix)) + .build_global() + .unwrap(); + + rust_analyzer::session::run_session(b, None, None) + .into_rootcause() }) .unwrap(); (jh, a) |