From cf0588769f2423cb93bf29819ab619f6a0f0e347 Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Mon, 23 Sep 2024 10:16:18 -0700 Subject: [PATCH] build: use different target dir for rust-analyzer to prevent thrashing with cargo --- .vscode/settings.json | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 1057a431c935..978d549c04ad 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -13,10 +13,16 @@ } } ], + "rust-analyzer.runnables.extraTestBinaryArgs": [ + "--nocapture" + ], + "rust-analyzer.cargo.features": [ + "python" + ], + "rust-analyzer.server.extraEnv": { + "CARGO_TARGET_DIR": "${workspaceFolder}/target/rust-analyzer", + }, "files.watcherExclude": { "**/target": true }, - "rust-analyzer.cargo.features": [ - "python" - ] }