1 2 3 4 5 6 7 8 9 10 11
Add the following to settings.json to mark Rust library sources as read-only:
"files.readonlyInclude": { "**/.cargo/registry/src/**/*.rs": true, "**/.cargo/git/checkouts/**/*.rs": true, "**/lib/rustlib/src/rust/library/**/*.rs": true, },