-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Writing to a read-only file succeeds falsely #282
Comments
Since when did this start happening? Your error log shows the extension is still throwing the correct order, so my first guess is that VS Code changes something in an update. |
It has been like this for a while (a few months?). I can try to revert back to a previous version of VS Code to find out the exact update that breaks this. But is this going to be a VS Code issue, or can the extension still do something about it? |
It sounds to me like it's something that VS Code changed. Worst case, if they did indeed remove that feature, I can add it myself, since extensions can also create notifications. |
It seems this started to not work in April's release (version 1.56). The March release was still functioning properly. |
I did notice some code changes in VS Code going from 1.55.2 to 1.56.0, although that was just after taking a very quick glance at over thousands of file changes. I'll see if I can pinpoint the exact cause and report it to VS Code. Otherwise I'll add a config flag to make the extension explicitly notify the user when write operations fail for some reason. |
I can confirm this issue persists on 1.61.0 |
I'll look into this again, seeing if this is an issue reported on the VS Code repository. Otherwise I'll (add an option to) make it show a notification when writing to a file fails instead of letting (only) VS Code handle the error reporting. |
I can confirm it's still an issue on version 1.63.2. If you don't have permission to write on the file, you will lose your work without noticing it (like me 😢) |
Fixed in cac0ec2, which'll be in the next version (1.24.2 or later) of the extension. The extension now by default shows an error notification (a non-modal one in the bottom right) whenever a file system operation fails, with the exception of NotFound errors for ignored paths. The extension has a few NotFound ignored paths hardcoded, such as The feature is actually hidden behind the |
When writing to a read-only file and save, the save action "succeeds" (while the remote file is actually not updated) without any pop-up message, which was there previously.
Output log has (exact file path obfuscated):
It used be the case that the save action would not succeed and a pop-up message would show up about the permission issue.
The text was updated successfully, but these errors were encountered: