Skip to content
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

Commits on Mar 13, 2023

  1. 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.
    davidbarsky committed Mar 13, 2023
    Configuration menu
    Copy the full SHA
    8af3d63 View commit details
    Browse the repository at this point in the history
  2. fmt

    davidbarsky committed Mar 13, 2023
    Configuration menu
    Copy the full SHA
    46e0220 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1f5c535 View commit details
    Browse the repository at this point in the history
  4. fix typo in package.json.

    davidbarsky committed Mar 13, 2023
    Configuration menu
    Copy the full SHA
    68d3eae View commit details
    Browse the repository at this point in the history
  5. Update crates/rust-analyzer/src/handlers.rs

    Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
    davidbarsky and Veykril committed Mar 13, 2023
    Configuration menu
    Copy the full SHA
    7a6e111 View commit details
    Browse the repository at this point in the history
  6. move rust-analyzer.discoverProjectCommand above $generated-start

    …to avoid failing tests
    davidbarsky committed Mar 13, 2023
    Configuration menu
    Copy the full SHA
    9137149 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8d9bff0 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    56273b3 View commit details
    Browse the repository at this point in the history
  9. fmt

    davidbarsky committed Mar 13, 2023
    Configuration menu
    Copy the full SHA
    cb93c12 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    78aed30 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2023

  1. Address review comments

    davidbarsky committed Mar 14, 2023
    Configuration menu
    Copy the full SHA
    bd545a1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6e7bc07 View commit details
    Browse the repository at this point in the history