From 655b80e3945c8d8b93ea808c82ecad683abfb5a2 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 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 1057a431c935..9e02216dacc4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -13,10 +13,13 @@ } } ], + "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" - ] }