mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
fix: allow new, subsequent rust-project.json
-based workspaces to get
proc macro expansion.
This commit is contained in:
parent
e7337fc9c3
commit
6a42d7f627
2 changed files with 42 additions and 9 deletions
|
@ -672,6 +672,14 @@ impl ProjectWorkspace {
|
|||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns `true` if the project workspace is [`Json`].
|
||||
///
|
||||
/// [`Json`]: ProjectWorkspace::Json
|
||||
#[must_use]
|
||||
pub fn is_json(&self) -> bool {
|
||||
matches!(self, Self::Json { .. })
|
||||
}
|
||||
}
|
||||
|
||||
fn project_json_to_crate_graph(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue