rust-analyzer/crates
bors 4af21ffb02 Auto merge of #16840 - Wilfred:shell_runnable, r=Veykril
Allow rust-project.json to include arbitrary shell commands for runnables

This is a follow-up on #16135, resolving the feedback raised :)

Allow rust-project.json to include shell runnables, of the form:

```
{
  "build_info": {
    "label": "//project/foo:my-crate",
    "target_kind": "bin",
    "shell_runnables": [
      {
        "kind": "run",
        "program": "buck2",
        "args": ["run", "//project/foo:my-crate"]
      },
      {
        "kind": "test_one",
        "program": "test_runner",
        "args": ["--name=$$TEST_NAME$$"]
      }
    ]
  }
}

```

If these runnable configs are present for the current crate in rust-project.json, offer them as runnables in VS Code.

This PR required some boring changes to APIs that previously only handled cargo situations. I've split out these changes as commits labelled 'refactor', so it's easy to see the interesting changes.
2024-06-11 16:13:10 +00:00
..
base-db chore: Prefer tracing span shorthand macros 2024-06-06 16:52:25 -07:00
cfg fix: Fix doc comment desugaring for proc-macros 2024-04-27 13:30:51 +02:00
flycheck Auto merge of #17315 - hamirmahal:style/simplify-string-interpolation, r=Veykril 2024-06-03 12:29:27 +00:00
hir refactor: move the logic that displays container type bounds to function fmt 2024-06-11 21:02:13 +08:00
hir-def minor: use push_str instead 2024-06-09 22:31:55 +08:00
hir-expand Don't intern attribute inputs as their spans make them unique 2024-06-09 21:21:33 +02:00
hir-ty Auto merge of #17394 - Veykril:recurse-fix, r=Veykril 2024-06-11 15:05:26 +00:00
ide Auto merge of #17394 - Veykril:recurse-fix, r=Veykril 2024-06-11 15:05:26 +00:00
ide-assists Thread more HasSource::source calls through Semantics for caching 2024-06-10 10:33:07 +02:00
ide-completion Register virtual workspace Cargo.toml files in the VFS 2024-06-09 12:54:50 +02:00
ide-db Auto merge of #17374 - Veykril:configs, r=Veykril 2024-06-11 08:49:19 +00:00
ide-diagnostics internal: Expose snippet capability to diagnostic quickfixes 2024-06-07 21:29:48 -04:00
ide-ssr Thread more HasSource::source calls through Semantics for caching 2024-06-10 10:33:07 +02:00
intern Fix new clippy lints 2024-04-01 17:55:56 +02:00
limit Simplify 2024-04-06 13:12:07 +02:00
load-cargo fix: ensure that the parent of a SourceRoot cannot be itself 2024-06-10 23:15:26 +08:00
mbe Auto merge of #17392 - randomicon00:17242, r=Veykril 2024-06-11 13:14:56 +00:00
parser chore: Prefer tracing span shorthand macros 2024-06-06 16:52:25 -07:00
paths Apply requested changes round 2 2024-06-05 10:45:22 +02:00
proc-macro-api Register virtual workspace Cargo.toml files in the VFS 2024-06-09 12:54:50 +02:00
proc-macro-srv Auto merge of #16257 - lnicola:rustc-check-cfg, r=Veykril 2024-04-18 12:13:06 +00:00
proc-macro-srv-cli Auto merge of #16257 - lnicola:rustc-check-cfg, r=Veykril 2024-04-18 12:13:06 +00:00
profile Fix typos 2024-05-15 18:55:27 +02:00
project-model feature: add build system info; runnables to rust-project.json 2024-06-11 11:55:17 -04:00
rust-analyzer Auto merge of #16840 - Wilfred:shell_runnable, r=Veykril 2024-06-11 16:13:10 +00:00
salsa chore: Prefer tracing span shorthand macros 2024-06-06 16:52:25 -07:00
sourcegen Fix new clippy lints 2024-04-01 17:55:56 +02:00
span style: simplify string interpolation 2024-05-30 16:18:49 -07:00
stdx Track hashes for file contents 2024-05-14 11:21:04 +02:00
syntax chore: Prefer tracing span shorthand macros 2024-06-06 16:52:25 -07:00
test-fixture style: simplify string interpolation 2024-05-30 16:18:49 -07:00
test-utils style: simplify string interpolation 2024-05-30 16:18:49 -07:00
text-edit Merge commit 'ddf105b646' into sync-from-ra 2024-02-11 08:40:19 +02:00
toolchain internal: Enforce utf8 paths 2024-03-19 15:39:00 +01:00
tt Cleanup some inert attribute stuff 2024-06-04 12:38:20 +02:00
vfs Register virtual workspace Cargo.toml files in the VFS 2024-06-09 12:54:50 +02:00
vfs-notify discard when the path is invalid utf8 symbol. 2024-04-30 15:39:05 +08:00