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"
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-06-04 13:25:00 +00:00
|
|
|
"rust-analyzer.imports.prefix": "plain",
|
2025-05-22 14:27:00 +00:00
|
|
|
// // 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
|
|
|
}
|