diff options
| author | bors <bors@rust-lang.org> | 2024-07-18 16:15:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-07-18 16:15:31 +0000 |
| commit | 40730a4baff2936224c09291a58e7c07e3368ae2 (patch) | |
| tree | a662fd1ea0473da6e6f1a4d93b67c4f5a2dc58e5 /src/tools/rust-analyzer/docs/dev | |
| parent | 020b7acd6a63fe6b896f0da55105b13718e3b8c3 (diff) | |
| parent | 2e582ad8485e6c2359305926d8749be2d845b0f7 (diff) | |
| download | rust-40730a4baff2936224c09291a58e7c07e3368ae2.tar.gz rust-40730a4baff2936224c09291a58e7c07e3368ae2.zip | |
Auto merge of #17246 - davidbarsky:david/move-rust-project-generation-to-server, r=Veykril
feature: teach rust-analyzer to discover `linked_projects` This PR's been a long-time coming, but like the title says, it introduces server-side project discovery and removes the extension hooks I previously introduced. I don't think this PR is ready to land, but here are the things I'm feeling squishy about: - I don't think I like the idea of introducing the `cargo-metadata` command-but-for-everything-else in the `flycheck` module, but the progress reporting infrastructure was too convenient to pass up. Happy to move it elsewhere. Here are the things I _know_ I need to change: - For progress reporting, I'm extracting from a `serde_json::Value` that corresponds to `tracing_subsciber::fmt::Layer`'s JSON output. I'd like to make this a bit more structured/documented than the current nonsense I wrote. - The progress reporting currently hardcodes "Buck"; it should be deriving that from the previously mentioned more-structured-output. - This doesn't handle *reloading* when a corresponding buildfile is changed. It should be doing that. <details> <summary>Anyway, here's a video of rust-analyzer discovering a Buck target.</summary> https://github.com/rust-lang/rust-analyzer/assets/2067774/be6cd9b9-2c9a-402d-847f-05f860a91df1 </details>
Diffstat (limited to 'src/tools/rust-analyzer/docs/dev')
| -rw-r--r-- | src/tools/rust-analyzer/docs/dev/lsp-extensions.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/docs/dev/lsp-extensions.md b/src/tools/rust-analyzer/docs/dev/lsp-extensions.md index 74acb6f9940..fbb4fc6113f 100644 --- a/src/tools/rust-analyzer/docs/dev/lsp-extensions.md +++ b/src/tools/rust-analyzer/docs/dev/lsp-extensions.md @@ -1,5 +1,5 @@ <!--- -lsp/ext.rs hash: 39b47906286ad9c +lsp/ext.rs hash: 278250dba58cd879 If you need to change the above hash to make the test pass, please check if you need to adjust this doc as well and ping this issue: |
