about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/editors/code
diff options
context:
space:
mode:
authorJacob Lifshay <programmerjake@gmail.com>2025-02-13 18:45:31 -0800
committerJacob Lifshay <programmerjake@gmail.com>2025-02-13 18:48:36 -0800
commitbad69a3d044f651e1fa652558ef47f247f885bc3 (patch)
tree11246ea15731952cf44419edaf6d58dd9d671db2 /src/tools/rust-analyzer/editors/code
parent1951cf5aaa00f30ae1e23d0461be93bcb737583c (diff)
downloadrust-bad69a3d044f651e1fa652558ef47f247f885bc3.tar.gz
rust-bad69a3d044f651e1fa652558ef47f247f885bc3.zip
add cargo's git checkouts to the list of paths to mark as read-only in vscode
Diffstat (limited to 'src/tools/rust-analyzer/editors/code')
-rw-r--r--src/tools/rust-analyzer/editors/code/walkthrough-setup-tips.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/editors/code/walkthrough-setup-tips.md b/src/tools/rust-analyzer/editors/code/walkthrough-setup-tips.md
index fda4ac80023..aabe0dd662b 100644
--- a/src/tools/rust-analyzer/editors/code/walkthrough-setup-tips.md
+++ b/src/tools/rust-analyzer/editors/code/walkthrough-setup-tips.md
@@ -5,6 +5,7 @@ Add the following to settings.json to mark Rust library sources as read-only:
 ```json
 "files.readonlyInclude": {
   "**/.cargo/registry/src/**/*.rs": true,
+  "**/.cargo/git/checkouts/**/*.rs": true,
   "**/lib/rustlib/src/rust/library/**/*.rs": true,
 },
 ```