add trailing whitespace removal to settings

also format the file, because, hey guess what...format on save
is on. :P
This commit is contained in:
bunnie 2024-01-11 22:22:39 +08:00
parent 40b4c89414
commit 676bab899f

32
.vscode/settings.json vendored
View file

@ -1,20 +1,31 @@
{ {
"rust-analyzer.cargo.target":"riscv32imac-unknown-xous-elf", "rust-analyzer.cargo.target": "riscv32imac-unknown-xous-elf",
"rust-analyzer.check.overrideCommand":[ "rust-analyzer.check.overrideCommand": [
"cargo", "cargo",
"check", "check",
"--target", "riscv32imac-unknown-xous-elf", "--target",
"--target-dir", "target/analyzer", "riscv32imac-unknown-xous-elf",
"--features", "precursor", "--target-dir",
"--features", "utralib/precursor", "target/analyzer",
"--features", "utralib/precursor-pvt", "--features",
"--message-format", "json" "precursor",
"--features",
"utralib/precursor",
"--features",
"utralib/precursor-pvt",
"--message-format",
"json"
], ],
"rust-analyzer.server.extraEnv": { "rust-analyzer.server.extraEnv": {
"XOUS_SVD_FILE": "../precursors/soc.svd" "XOUS_SVD_FILE": "../precursors/soc.svd"
}, },
"rust-analyzer.cargo.features": ["precursor", "mass-storage"], "rust-analyzer.cargo.features": [
"rust-analyzer.files.excludeDirs": ["./loader/**"], "precursor",
"mass-storage"
],
"rust-analyzer.files.excludeDirs": [
"./loader/**"
],
"files.exclude": { "files.exclude": {
"**/.git": true, "**/.git": true,
"**/.svn": true, "**/.svn": true,
@ -26,6 +37,7 @@
"rust-analyzer.rustfmt.extraArgs": [ "rust-analyzer.rustfmt.extraArgs": [
"+nightly" "+nightly"
], ],
"files.trimTrailingWhitespace": true,
"editor.formatOnSave": true, "editor.formatOnSave": true,
"cSpell.language": "en,fr" "cSpell.language": "en,fr"
} }