From 33498b9c9e6a5c37499a4e52adf894485390d7a1 Mon Sep 17 00:00:00 2001 From: MOZGIII Date: Tue, 8 Aug 2023 17:11:05 -0300 Subject: [PATCH] Update VS Code settings (#715) * Update VS Code settings * Add a comment explaining why we don't run build scripts * Add a commented out runtime helper setting --- .vscode/settings.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index de7d27ca3..3fc78200d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,13 +1,18 @@ { "editor.formatOnSave": true, - "rust-analyzer.checkOnSave.command": "clippy", + "rust-analyzer.check.command": "clippy", "[rust]": { "editor.rulers": [100] }, "[toml]": { "editor.defaultFormatter": "tamasfe.even-better-toml" }, + // This takes too long when working with substrate, as it build the whole + // runtime each time the node host code is built. "rust-analyzer.cargo.buildScripts.enable": false, + // Uncomment this while working on runtime. + // "rust-analyzer.cargo.target": "wasm32-unknown-unknown", + // "rust-analyzer.cargo.noDefaultFeatures": true, "vitest.commandLine": "yarn utils/e2e-tests/ts test:watch --", "vitest.include": [ "utils/e2e-tests/ts/**/tests/**/*.ts",