Skip to content

Commit

Permalink
vscode settings.json: Use dedicated configuration for rust-analyzer t…
Browse files Browse the repository at this point in the history
…arget directory (vercel#68543)

This now has a first-class config option.

Test Plan: Removed target directory, restarted rust-analyzer server,
verified artifacts in dedicated `target/rust-analyzer` directory.
  • Loading branch information
wbinnssmith authored Aug 5, 2024
1 parent 0f0cfe5 commit bc95932
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,10 @@
"*.tsx": "$(capture).test.ts, $(capture).test.tsx"
},
// Compile rust-analyzer in a separate directory to avoid conflicts with the main project.
"rust-analyzer.checkOnSave.extraEnv": {
"CARGO_TARGET_DIR": "target/rust-analyzer"
},
"rust-analyzer.cargo.targetDir": true,
"rust-analyzer.server.extraEnv": {
"CARGO_TARGET_DIR": "target/rust-analyzer",
"RUST_BACKTRACE": "0"
},
"rust-analyzer.cargo.extraEnv": {
"CARGO_TARGET_DIR": "target/rust_analyzer"
},
"cSpell.words": [
"Entrypoints",
"napi",
Expand Down

0 comments on commit bc95932

Please sign in to comment.