rust-analyzer/editors/code/src
David Barsky 8af3d6367e 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.
2023-03-13 13:30:18 -04:00
..
ast_inspector.ts Make more things private 2022-10-17 15:05:20 +02:00
bootstrap.ts Substitute VSCode variables more generally 2023-01-24 13:46:56 +01:00
client.ts 🧹 lsp_ext.ts 2023-01-23 16:58:35 +01:00
commands.ts This commit add Cargo-style project discovery for Buck and Bazel users. 2023-03-13 13:30:18 -04:00
config.ts This commit add Cargo-style project discovery for Buck and Bazel users. 2023-03-13 13:30:18 -04:00
ctx.ts This commit add Cargo-style project discovery for Buck and Bazel users. 2023-03-13 13:30:18 -04:00
debug.ts Substitute VSCode variables more generally 2023-01-24 13:46:56 +01:00
diagnostics.ts Parse + decorate rendered ANSI cargo output 2023-01-09 11:46:29 -05:00
lsp_ext.ts This commit add Cargo-style project discovery for Buck and Bazel users. 2023-03-13 13:30:18 -04:00
main.ts This commit add Cargo-style project discovery for Buck and Bazel users. 2023-03-13 13:30:18 -04:00
persistent_state.ts prettier run 2022-05-17 18:15:06 +01:00
run.ts Always set up VSCode commands 2022-10-29 00:44:37 +02:00
rust_project.ts This commit add Cargo-style project discovery for Buck and Bazel users. 2023-03-13 13:30:18 -04:00
snippets.ts automate braceless return substitution for long lines 2022-05-17 18:31:51 +01:00
tasks.ts Revert "fix: in VSCode, correctly resolve relative paths to errors" 2022-10-14 09:28:44 +02:00
toolchain.ts Respect $CARGO_HOME when looking up toolchains. 2023-02-26 15:37:04 +09:00
util.ts This commit add Cargo-style project discovery for Buck and Bazel users. 2023-03-13 13:30:18 -04:00