VS Code: configure readonly files

main
Isaiah Odhner 2024-01-28 23:04:39 -05:00
parent ee60aedf1c
commit 2f17b81b3e
1 changed files with 9 additions and 0 deletions

View File

@ -33,6 +33,15 @@
// Maintaining current indentation for now, but could remove this for consistency.
"editor.detectIndentation": true
},
// Prevent accidental editing.
// This can always be overridden with the command "File: Toggle Active Editor Read-only in Session"
"files.readonlyInclude": {
// Electron Forge output
"out/**": true,
// Node.js
"node_modules/**": true,
"package-lock.json": true,
},
// @TODO: is there a way to prune this spelling list? I didn't know about the comment directives for a while,
// and accepted a lot of strings for the language names, in languages that I don't understand,
// and even with partial strings when it was buggy with Unicode.