shrupl/.vscode/settings.json

21 lines
No EOL
793 B
JSON

{
"files.readonlyInclude": {
"**/.cargo/registry/src/**/*.rs": true,
"**/.cargo/git/checkouts/**/*.rs": true,
"**/lib/rustlib/src/rust/library/**/*.rs": true,
},
"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"
// ],
}