diff options
| author | Stuart Cook <Zalathar@users.noreply.github.com> | 2025-10-03 09:16:26 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-03 09:16:26 +1000 |
| commit | a3291ede1a28a79c37c296bd021939751f69969a (patch) | |
| tree | 5f18ea3924e586518e7494132cef7828b57f48d7 /src/etc/rust_analyzer_settings.json | |
| parent | 5c7ae0c7ed184c603e5224604a9f33ca0e8e0b36 (diff) | |
| parent | 24144ff499852b0fab63cf0c93d4c8d8b2fad8ef (diff) | |
| download | rust-a3291ede1a28a79c37c296bd021939751f69969a.tar.gz rust-a3291ede1a28a79c37c296bd021939751f69969a.zip | |
Rollup merge of #141839 - tshepang:ease-lsp-use, r=Mark-Simulacrum,fee1-dead
make rust-analyzer use a dedicated build directory inspired by https://github.com/rust-lang/rust/pull/132794
Diffstat (limited to 'src/etc/rust_analyzer_settings.json')
| -rw-r--r-- | src/etc/rust_analyzer_settings.json | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/etc/rust_analyzer_settings.json b/src/etc/rust_analyzer_settings.json index b31169857c5..f89e8a2df18 100644 --- a/src/etc/rust_analyzer_settings.json +++ b/src/etc/rust_analyzer_settings.json @@ -5,6 +5,8 @@ "python3", "x.py", "check", + "--build-dir", + "build-rust-analyzer", "--json-output" ], "rust-analyzer.linkedProjects": [ @@ -16,10 +18,10 @@ "src/tools/rust-analyzer/Cargo.toml" ], "rust-analyzer.rustfmt.overrideCommand": [ - "${workspaceFolder}/build/host/rustfmt/bin/rustfmt", + "${workspaceFolder}/build-rust-analyzer/host/rustfmt/bin/rustfmt", "--edition=2024" ], - "rust-analyzer.procMacro.server": "${workspaceFolder}/build/host/stage0/libexec/rust-analyzer-proc-macro-srv", + "rust-analyzer.procMacro.server": "${workspaceFolder}/build-rust-analyzer/host/stage0/libexec/rust-analyzer-proc-macro-srv", "rust-analyzer.procMacro.enable": true, "rust-analyzer.cargo.buildScripts.enable": true, "rust-analyzer.cargo.buildScripts.invocationStrategy": "once", @@ -27,6 +29,8 @@ "python3", "x.py", "check", + "--build-dir", + "build-rust-analyzer", "--json-output", "--compile-time-deps" ], |
