https://github.com/tjx666/modify-file-warning
A vscode extension which is useful when modify file under node_modules accidentally
https://github.com/tjx666/modify-file-warning
vscode-extension
Last synced: 27 days ago
JSON representation
A vscode extension which is useful when modify file under node_modules accidentally
- Host: GitHub
- URL: https://github.com/tjx666/modify-file-warning
- Owner: tjx666
- License: mit
- Created: 2022-07-17T14:15:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-26T18:24:04.000Z (about 2 years ago)
- Last Synced: 2025-03-29T22:34:45.868Z (28 days ago)
- Topics: vscode-extension
- Language: TypeScript
- Homepage:
- Size: 2.1 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# modify-file-warning README

Useful when modify file under node_modules accidentally.
## Settings
```jsonc
{
// 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](https://github.com/microsoft/vscode/issues/4873).