Use proc-macro-srv from sysroot in rust-project.json

This commit is contained in:
Joseph Ryan 2022-09-06 18:27:17 -07:00
parent 6dfd8aebdf
commit 5d126a18b4

View File

@ -314,7 +314,9 @@ impl GlobalState {
let mut args = args.clone();
let mut path = path.clone();
if let ProjectWorkspace::Cargo { sysroot, .. } = ws {
if let ProjectWorkspace::Cargo { sysroot, .. }
| ProjectWorkspace::Json { sysroot, .. } = ws
{
tracing::debug!("Found a cargo workspace...");
if let Some(sysroot) = sysroot.as_ref() {
tracing::debug!("Found a cargo workspace with a sysroot...");