
Issue Type: Feature Request
On my vscode remote-ssh (Ubuntu), I can only delete file permanently, which caused many troubles. Could vscode remote-ssh add features to remove file to trash?
On my local env, I can delete files to trash.
VS Code version: Code 1.39.2 (6ab598523be7a800d7f3eb4d92d7ab9a66069390, 2019-10-15T15:33:00.827Z)
OS version: Darwin x64 18.7.0
Remote OS version: Linux x64 4.4.0-165-generic
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
Sorry, I don't think it's covered by that issue. Instead, I don't have the option to delete file NOT permanently.
I think this is the responsibility of whichever extension you are using. Assuming it's the Microsoft one I suggest you open an issue at https://github.com/microsoft/vscode-remote-release
If you do that please link to it from here, then close this one.
Thanks! It has been transferred. It's a Microsoft extension.
Is there a generic location where the trash is on OS? To implement this the remote file system provider would have to move the file into there.
I have also noticed this on my Ubuntu remote, I can only "Delete permanently" in remote but if I open local vscode on the same machine, then it will move files to the trash. So I assume we have some way to find the trash?
@roblourens sure, using Electron API shell.moveItemToTrash
@bpasero For my Ubuntu 16.04, the trash is located at /home/$USER/.local/share/Trash. But "Delete permanently" is equivalent to command rm instead of gvfs-trash which is to move to trash.
I was going to request the same feature. I'm on a Windows machine and it really scares me when I want to delete files since there's only a "Delete Permanently" option which doesn't send files to Recycle Bin.
Remote WSL is so cool that I sometimes almost forget I'm working remotely in my WSL and since the option "Enable Trash" is enabled in my VSCode I think it's a bit confusing/contradictory that Remote WSL doesn't obey one rule of the settings of VSCode.
npm package like trash may help: https://www.npmjs.com/package/trash
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
:slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
where can i get the newest progress?
I need this very much, so please make it as soon as possible. THANKS
Most helpful comment
npm package like
trashmay help: https://www.npmjs.com/package/trash