You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Useful when modify file under node_modules accidentally.
Settings
{
// will give a warning is file match the includedFileGlobs"modifyFileWarning.includedFileGlobs": [
"**/node_modules/**/*"// "**/.git/**"
],
// you can using this setting to exclude files from includedFileGlobs"modifyFileWarning.excludedFileGlobs": []
}
Why not automatically set file readonly but choose to warn?
VSCode doesn't provide an api to mark a opened editor readonly now, ref: Add read-only mode.
About
A vscode extension which is useful when modify file under node_modules accidentally
{ // will give a warning is file match the includedFileGlobs "modifyFileWarning.includedFileGlobs": [ "**/node_modules/**/*" // "**/.git/**" ], // you can using this setting to exclude files from includedFileGlobs "modifyFileWarning.excludedFileGlobs": [] }