shrupl/.vscode/settings.json

21 lines
793 B
JSON
Raw Normal View History

2025-05-17 23:57:52 +00:00
{
"files.readonlyInclude": {
"**/.cargo/registry/src/**/*.rs": true,
"**/.cargo/git/checkouts/**/*.rs": true,
"**/lib/rustlib/src/rust/library/**/*.rs": true,
2025-05-22 14:27:00 +00:00
},
"git.closeDiffOnOperation": true,
"[rust]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
},
// // override the default setting (`cargo check --all-targets`) which produces the following error
// // "can't find crate for `test`" when the default compilation target is a no_std target
// "rust-analyzer.checkOnSave.allTargets": false,
// // with these changes RA will call `cargo check --bins` on save
// "rust-analyzer.checkOnSave.extraArgs": [
// "--bins"
// ],
2025-05-17 23:57:52 +00:00
}