-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow deleting files via the explorer when a folder is marked as readonly #195701
Comments
fyi @lramos15 |
I'd like to second this. I have this setting to avoid modifying those files accidentally: {
"files.readonlyInclude": {
"**/*.tsbuildinfo": true,
"**/__generated__/**": true,
"**/dist/**": true,
"**/generated/**": true,
"**/node_modules/**": true
}
} It's useful that vscode doesn't allow me to modify those files, because sometimes you'll explore those areas to see under the hood, but you wouldn't want to be able to comment or modify stuff, as you'd likely forget about it. Moreover, those folders often are ignored from git, so a manual modification in there could stay unnoticed for a while. Although, most of those files aren't permanent. I do want to be able to delete them, as there always will be a way to generate them back (or generate a new version of them). If I keep the It would be great to have another setting available that dictates whether |
This bug has been fixed in the latest release of VS Code Insiders! @Tyriar, you can help us out by commenting If things still don't seem right, please ensure you're on version 9b0b13d of Insiders (today's or later - you can use Happy Coding! |
Thanks so much 🙏 |
Scenario: I wanted to delete node_modules/xterm and replace it with a symlink to a locally cloned repo so I tried to delete it via the explorer. The action is completely blocked currently:
This was due to discussion from a single user in #4873 (comment) where they say it's expected that it would block deleting the folder in the explorer as well. This goes too far imo, the purpose of the feature as I understand it is to prevent accidental edits to files.
If I as a user want to delete the file with the explorer, VS Code simply does not let me currently so I have to find another route, like via the terminal or Windows Explorer. It's just a pain and the IDE getting in the way imo, the chance that not blocking the operation would cause problems is so small as there's a confirmation before deleting it as well.
The text was updated successfully, but these errors were encountered: