about summary refs log tree commit diff
path: root/src/etc
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-06-03 20:38:12 +0200
committerGitHub <noreply@github.com>2023-06-03 20:38:12 +0200
commitea8b4ff2a6a8a23756ae76643989bd6844e462de (patch)
treef875bbfe4aa46ead73dbbf06eff02d211325ee65 /src/etc
parent95b909a119d55c214891f792c140405045c06714 (diff)
parent8458c6adb131345dbf0b48e23c8d220dc41c19fd (diff)
downloadrust-ea8b4ff2a6a8a23756ae76643989bd6844e462de.tar.gz
rust-ea8b4ff2a6a8a23756ae76643989bd6844e462de.zip
Rollup merge of #111998 - jyn514:ra-dogfooding, r=Mark-Simulacrum
Add other workspaces to `linkedProjects` in rust_analyzer_settings

This makes go-to-definition, etc. work in cg_clif, cg_gcc, rust-analyzer, and src/tools/x.
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/rust_analyzer_settings.json9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/etc/rust_analyzer_settings.json b/src/etc/rust_analyzer_settings.json
index dd01bfaa725..d9c4645f0b3 100644
--- a/src/etc/rust_analyzer_settings.json
+++ b/src/etc/rust_analyzer_settings.json
@@ -7,7 +7,14 @@
         "check",
         "--json-output"
     ],
-    "rust-analyzer.linkedProjects": ["src/bootstrap/Cargo.toml", "Cargo.toml"],
+    "rust-analyzer.linkedProjects": [
+        "Cargo.toml",
+        "src/tools/x/Cargo.toml",
+        "src/bootstrap/Cargo.toml",
+        "src/tools/rust-analyzer/Cargo.toml",
+        "compiler/rustc_codegen_cranelift/Cargo.toml",
+        "compiler/rustc_codegen_gcc/Cargo.toml"
+    ],
     "rust-analyzer.rustfmt.overrideCommand": [
         "./build/host/rustfmt/bin/rustfmt",
         "--edition=2021"