{ "editor.formatOnSave": true, "editor.semanticTokenColorCustomizations": { "rules": { "*.unsafe:rust": "#eb5046" } }, "files.autoGuessEncoding": true, "files.insertFinalNewline": true, "files.trimTrailingWhitespace": true, "protoc": { "options": [ "--proto_path=crates/store/re_protos/proto", ] }, "rust-analyzer.check.command": "clippy", // Whether `--workspace` should be passed to `cargo check`. If false, `-p ` will be passed instead. "rust-analyzer.check.workspace": false, "rust-analyzer.cargo.allTargets": true, // --all-features will set the `__ci` feature flag, which stops re_web_viewer_server/build.rs from requiring the web viewer to be built. "rust-analyzer.cargo.features": "all", // Use a separate target directory for Rust Analyzer so it doesn't prevent cargo/clippy from doing things. "rust-analyzer.cargo.targetDir": "target_ra", "rust-analyzer.check.invocationStrategy": "per_workspace", "rust-analyzer.cargo.buildScripts.invocationStrategy": "per_workspace", // Our build scripts are generating code. // Having Rust Analyzer do this while doing other builds can lead to catastrophic failures. // INCLUDING attempts to publish a new release! "rust-analyzer.cargo.buildScripts.enable": false, "rust-analyzer.cargo.extraEnv": { "IS_IN_RERUN_WORKSPACE": "yes" }, "rust-analyzer.diagnostics.enable": false, // False positives "rust-analyzer.imports.granularity.group": "module", // Matches our .rustfmt.toml and CODE_STYLE.md "rust-analyzer.showUnlinkedFileNotification": false, // Uncomment the following options and restart rust-analyzer to get it to check code behind `cfg(target_arch=wasm32)`. // Don't forget to put it in a comment again before committing. // "rust-analyzer.cargo.target": "wasm32-unknown-unknown", // "rust-analyzer.cargo.cfgs": ["web","webgl","webgpu"], "C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools", // Use cmake-tools to grab configs. "C_Cpp.autoAddFileAssociations": false, "cmake.buildDirectory": "${workspaceRoot}/build/debug", "cmake.generator": "Ninja", // Use Ninja, just like we do in our just/pixi command. "python.analysis.extraPaths": [ "rerun_py/rerun_sdk" ], "ruff.configuration": "rerun_py/pyproject.toml", "prettier.requireConfig": true, "prettier.configPath": ".prettierrc.toml", "[proto3]": { "editor.defaultFormatter": "bufbuild.vscode-buf" }, "[python]": { "editor.defaultFormatter": "charliermarsh.ruff" }, "[javascript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[html]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[css]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[yaml]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, }