From 676bab899fc7ce81bb56fdcd0b7a5f33a42addb4 Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 11 Jan 2024 22:22:39 +0800 Subject: [PATCH] add trailing whitespace removal to settings also format the file, because, hey guess what...format on save is on. :P --- .vscode/settings.json | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 858d1e488..dd25aa0c6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,20 +1,31 @@ { - "rust-analyzer.cargo.target":"riscv32imac-unknown-xous-elf", - "rust-analyzer.check.overrideCommand":[ + "rust-analyzer.cargo.target": "riscv32imac-unknown-xous-elf", + "rust-analyzer.check.overrideCommand": [ "cargo", "check", - "--target", "riscv32imac-unknown-xous-elf", - "--target-dir", "target/analyzer", - "--features", "precursor", - "--features", "utralib/precursor", - "--features", "utralib/precursor-pvt", - "--message-format", "json" + "--target", + "riscv32imac-unknown-xous-elf", + "--target-dir", + "target/analyzer", + "--features", + "precursor", + "--features", + "utralib/precursor", + "--features", + "utralib/precursor-pvt", + "--message-format", + "json" ], "rust-analyzer.server.extraEnv": { "XOUS_SVD_FILE": "../precursors/soc.svd" }, - "rust-analyzer.cargo.features": ["precursor", "mass-storage"], - "rust-analyzer.files.excludeDirs": ["./loader/**"], + "rust-analyzer.cargo.features": [ + "precursor", + "mass-storage" + ], + "rust-analyzer.files.excludeDirs": [ + "./loader/**" + ], "files.exclude": { "**/.git": true, "**/.svn": true, @@ -26,6 +37,7 @@ "rust-analyzer.rustfmt.extraArgs": [ "+nightly" ], + "files.trimTrailingWhitespace": true, "editor.formatOnSave": true, "cSpell.language": "en,fr" -} +} \ No newline at end of file