Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 2 months ago
JSON representation

A vscode extension which is useful when modify file under node_modules accidentally

Awesome Lists containing this project

README

        

# modify-file-warning README

![test](https://github.com/tjx666/modify-file-warning/actions/workflows/test.yml/badge.svg)

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).