Skip to content

Commit d311e81

Browse files
committed
Clean up .vscode/settings.json slightly
1 parent 92db660 commit d311e81

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.vscode/settings.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,21 @@
88
"files.autoGuessEncoding": true,
99
"files.insertFinalNewline": true,
1010
"files.trimTrailingWhitespace": true,
11-
// don't share a cargo lock with rust-analyzer.
12-
// see https://github.com/rerun-io/rerun/pull/519 for rationale
11+
12+
// Don't share a cargo lock with rust-analyzer.
13+
// See https://github.com/rerun-io/rerun/pull/519 for rationale.
1314
"rust-analyzer.check.overrideCommand": [
1415
"cargo",
1516
"clippy",
1617
"--target-dir=target_ra",
1718
"--workspace",
1819
"--message-format=json",
1920
"--all-targets",
20-
"--all-features"
21+
"--all-features",
2122
],
2223
"rust-analyzer.cargo.buildScripts.overrideCommand": [
2324
"cargo",
24-
"check",
25+
"clippy",
2526
"--quiet",
2627
"--target-dir=target_ra",
2728
"--workspace",
@@ -33,6 +34,11 @@
3334
// Having Rust Analyzer do this while doing other builds can lead to catastrophic failures.
3435
// INCLUDING attempts to publish a new release!
3536
"rust-analyzer.cargo.buildScripts.enable": false,
37+
38+
// Uncomment the following option and restart rust-analyzer to get it to check code behind `cfg(target_arch=wasm32)`.
39+
// Don't forget to put it in a comment again before committing.
40+
// "rust-analyzer.cargo.target": "wasm32-unknown-unknown",
41+
3642
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools", // Use cmake-tools to grab configs.
3743
"C_Cpp.autoAddFileAssociations": false,
3844
"cmake.buildDirectory": "${workspaceRoot}/build/debug",

0 commit comments

Comments
 (0)