|
| 1 | +{ |
| 2 | + "editor.formatOnSave": true, |
| 3 | + "editor.semanticTokenColorCustomizations": { |
| 4 | + "rules": { |
| 5 | + "*.unsafe:rust": "#eb5046" |
| 6 | + } |
| 7 | + }, |
| 8 | + "files.autoGuessEncoding": true, |
| 9 | + "files.insertFinalNewline": true, |
| 10 | + "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 |
| 13 | + "rust-analyzer.check.overrideCommand": [ |
| 14 | + "cargo", |
| 15 | + "cranky", |
| 16 | + "--target-dir=target_ra", |
| 17 | + "--workspace", |
| 18 | + "--message-format=json", |
| 19 | + "--all-targets", |
| 20 | + "--all-features" |
| 21 | + ], |
| 22 | + "rust-analyzer.cargo.buildScripts.overrideCommand": [ |
| 23 | + "cargo", |
| 24 | + "check", |
| 25 | + "--quiet", |
| 26 | + "--target-dir=target_ra", |
| 27 | + "--workspace", |
| 28 | + "--message-format=json", |
| 29 | + "--all-targets", |
| 30 | + "--all-features", |
| 31 | + ], |
| 32 | + // Our build scripts are generating code. |
| 33 | + // Having Rust Analyzer do this while doing other builds can lead to catastrophic failures. |
| 34 | + // INCLUDING attempts to publish a new release! |
| 35 | + "rust-analyzer.cargo.buildScripts.enable": false, |
| 36 | + "C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools", // Use cmake-tools to grab configs. |
| 37 | + "C_Cpp.autoAddFileAssociations": false, |
| 38 | + "cmake.buildDirectory": "${workspaceRoot}/build/debug", |
| 39 | + "cmake.generator": "Ninja", // Use Ninja, just like we do in our just/pixi command. |
| 40 | + "rust-analyzer.showUnlinkedFileNotification": false, |
| 41 | + "ruff.format.args": [ |
| 42 | + "--config=pyproject.toml" |
| 43 | + ], |
| 44 | + "ruff.lint.args": [ |
| 45 | + "--config=pyproject.toml" |
| 46 | + ], |
| 47 | + "prettier.requireConfig": true, |
| 48 | + "prettier.configPath": ".prettierrc.toml", |
| 49 | + "[python]": { |
| 50 | + "editor.defaultFormatter": "charliermarsh.ruff" |
| 51 | + }, |
| 52 | +} |
0 commit comments