if you delete file or folder with visual studio code, seconds later the file or folder is restored.
Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!
I can provide more info here:
This occurs when another process has a lock on some file in the folder. VS Code does not properly detect / display the deletion error.
Simple reproduction:
Expected behavior: Code displays an error similar to Windows Explorer "The folder cannot be deleted because it is open in another program"
Actual behavior: Code removes the folder from the listing on the right and issues no errors. Refreshing immediately re-displays the folder.
@Wieschie this is Windows right, not any other OS?
@bpasero that's correct. I'm on W10 1909.
@Wieschie as far as I know, Windows will not let you delete any file or folder that is in use by another program, I am not sure how VSCode can solve that?
In my opinion, code should display an error upon trying to delete a locked folder, instead of silently failing and pretending it has done so.
At the very least, it should not remove the folder from the explorer list if the delete failed.
Right, if that is the issue, then moving to Isi and file explorer.
Will not fix this week, moving out to June to investigate into a fix then. Thanks
Don't worry until then, my team and I use sublime-text or Windows notepad, thanks for willingly collaborating.
Most helpful comment
Don't worry until then, my team and I use sublime-text or Windows notepad, thanks for willingly collaborating.