SchoofsKelvin / vscode-sshfs

Extension for Visual Studio Code: File system provider using SSH
GNU General Public License v3.0
543 stars 36 forks source link

file recovery #286

Open mrbeandev opened 2 years ago

mrbeandev commented 2 years ago

is it possible to reovert a file which i deleted from my vscode which was on my vps server Ubuntu 20.04

SchoofsKelvin commented 2 years ago

I know VS Code has a built-in feature to the OS' trash can, although I doubt this applies to FileSystemProviders. So in short, I don't think it's possible, unless you use a recovery tool that tries to find deleted files on your disk.

I could perhaps add a trashcan feature to the extension, although I'd have to figure out where/how to store deleted files cross-platform.

mrbeandev commented 2 years ago

You can create a filed in the form of new vps creation. A optional field to add a trash bin directory if it exists then all the deleted files should get downloaded to that folder first then shall be deleted from vps 😊

And thanks for replying

And i dont know why its behaving like this but the vs code was synching my vps files every 2 to 4 minutes interval which is interupting the saving process of a file and this continues sync is the reason i mistakenly deleted some of my main code files ! This above issue came after i have updated to the latest version of VS code 🤔