Skip to content

Commit 5d126a1

Browse files
author
Joseph Ryan
committed
Use proc-macro-srv from sysroot in rust-project.json
1 parent 6dfd8ae commit 5d126a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/rust-analyzer/src/reload.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,9 @@ impl GlobalState {
314314
let mut args = args.clone();
315315
let mut path = path.clone();
316316

317-
if let ProjectWorkspace::Cargo { sysroot, .. } = ws {
317+
if let ProjectWorkspace::Cargo { sysroot, .. }
318+
| ProjectWorkspace::Json { sysroot, .. } = ws
319+
{
318320
tracing::debug!("Found a cargo workspace...");
319321
if let Some(sysroot) = sysroot.as_ref() {
320322
tracing::debug!("Found a cargo workspace with a sysroot...");

0 commit comments

Comments
 (0)