-
Notifications
You must be signed in to change notification settings - Fork 1.7k
internal: Remove rust-analyzer.cargo.sysrootQueryMetadata
config again
#18788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
0ee83ce
to
a1f3b69
Compare
); | ||
let mut sysroot = | ||
Sysroot::new(project_json.sysroot.clone(), project_json.sysroot_src.clone()); | ||
sysroot.load_workspace(&SysrootSourceWorkspaceConfig::Stitched); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notable behavior change is here, we only stitch the sourceroot workspace for rust-project.json
as we cannot assume a cargo to be present here. Ultimately, rust-project.json
should supply the stitched sysroot workspace.
Ideally the rust-project.json will actually list the sysroot workspace (that is, it provides a stitched one), so that will need some adjustments to the json format. |
A thought for a follow up to this PR, we should be able to cache the fetched sysroot and re-use it between multiple workspaces. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks good for our use case :)
a1f3b69
to
f1c0d17
Compare
rust-analyzer.cargo.sysrootQueryMetadata
config againrust-analyzer.cargo.sysrootQueryMetadata
config again
Closes #18590