-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
internal: Add Cargo-style project discovery for Buck and Bazel Users #14307
internal: Add Cargo-style project discovery for Buck and Bazel Users #14307
Commits on Mar 13, 2023
-
This commit add Cargo-style project discovery for Buck and Bazel users.
This feature requires the user to add a command that generates a `rust-project.json` from a set of files. Project discovery can be invoked in two ways: 1. At extension activation time, which includes the generated `rust-project.json` as part of the linkedProjects argument in InitializeParams 2. Through a new command titled "Add current file to workspace", which makes use of a new, rust-analyzer specific LSP request that adds the workspace without erasing any existing workspaces. I think that the command-running functionality _could_ merit being placed into its own extension (and expose it via extension contribution points), if only provide build-system idiomatic progress reporting and status handling, but I haven't (yet) made an extension that does this.
Configuration menu - View commit details
-
Copy full SHA for 8af3d63 - Browse repository at this point
Copy the full SHA 8af3d63View commit details -
Configuration menu - View commit details
-
Copy full SHA for 46e0220 - Browse repository at this point
Copy the full SHA 46e0220View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f5c535 - Browse repository at this point
Copy the full SHA 1f5c535View commit details -
Configuration menu - View commit details
-
Copy full SHA for 68d3eae - Browse repository at this point
Copy the full SHA 68d3eaeView commit details -
Update crates/rust-analyzer/src/handlers.rs
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 7a6e111 - Browse repository at this point
Copy the full SHA 7a6e111View commit details -
move
rust-analyzer.discoverProjectCommand
above$generated-start
……to avoid failing tests
Configuration menu - View commit details
-
Copy full SHA for 9137149 - Browse repository at this point
Copy the full SHA 9137149View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d9bff0 - Browse repository at this point
Copy the full SHA 8d9bff0View commit details -
Remove
rust-analyzer/addProject
in favor of notifying r-a that conf……iguration has changed
Configuration menu - View commit details
-
Copy full SHA for 56273b3 - Browse repository at this point
Copy the full SHA 56273b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb93c12 - Browse repository at this point
Copy the full SHA cb93c12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 78aed30 - Browse repository at this point
Copy the full SHA 78aed30View commit details
Commits on Mar 14, 2023
-
Configuration menu - View commit details
-
Copy full SHA for bd545a1 - Browse repository at this point
Copy the full SHA bd545a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e7bc07 - Browse repository at this point
Copy the full SHA 6e7bc07View commit details