rust/crates/rust-analyzer/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
..
bin Support DidChangeWorkspaceFolders capability 2023-02-07 22:40:40 +01:00
cli split expression and pattern metrics 2023-03-04 09:21:17 +01:00
config Fix checkOnSave to check config patching not always working 2023-01-18 20:29:55 +01:00
diagnostics Support UTF-32 position encoding 2023-02-14 01:09:50 +00:00
caps.rs Bump lsp-types 2023-02-14 14:59:50 +01:00
cargo_target_spec.rs ⬆️ rust-analyzer 2022-11-23 17:24:03 +02:00
cli.rs Inline all format arguments where possible 2022-12-24 14:36:10 -05:00
config.rs This commit add Cargo-style project discovery for Buck and Bazel users. 2023-03-13 13:30:18 -04:00
diagnostics.rs remove useless conversions 2023-01-02 15:02:54 +00:00
diff.rs Fix last few warnings manually 2022-07-20 15:05:02 +02:00
dispatch.rs Inline all format arguments where possible 2022-12-24 14:36:10 -05:00
from_proto.rs Support UTF-32 position encoding 2023-02-14 01:09:50 +00:00
global_state.rs Tweak change collapsing 2023-01-29 17:20:22 +02:00
handlers.rs This commit add Cargo-style project discovery for Buck and Bazel users. 2023-03-13 13:30:18 -04:00
integrated_benchmarks.rs Auto merge of #14100 - Veykril:load_cargo-proc-macro-srv-config, r=Veykril 2023-02-08 10:12:31 +00:00
lib.rs Inline all format arguments where possible 2022-12-24 14:36:10 -05:00
line_index.rs Support UTF-32 position encoding 2023-02-14 01:09:50 +00:00
lsp_ext.rs This commit add Cargo-style project discovery for Buck and Bazel users. 2023-03-13 13:30:18 -04:00
lsp_utils.rs Support UTF-32 position encoding 2023-02-14 01:09:50 +00:00
main_loop.rs This commit add Cargo-style project discovery for Buck and Bazel users. 2023-03-13 13:30:18 -04:00
markdown.rs Code blocks with tilde also works like code block 2022-04-01 20:29:32 +09:00
mem_docs.rs ⬆️ rust-analyzer 2022-11-23 17:24:03 +02:00
op_queue.rs internal: more visibility into why things happen 2022-04-16 13:17:27 +01:00
reload.rs Fix overlap deduping infinite loop 2023-03-10 17:01:21 -08:00
semantic_tokens.rs remove useless casts 2023-01-02 15:02:54 +00:00
task_pool.rs Add numThreads in config to avoid spawning lots of threads every time 2022-12-09 21:35:06 +08:00
to_proto.rs Lower and handle trait aliases in HIR 2023-03-04 00:24:07 +09:00
version.rs Bring the version command output in line with other rust tools 2022-06-02 18:36:02 +02:00