-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Cannot delete a file when working in remote workspace (no trash available) #10
Comments
Hi @fighur Thanks for reporting the issue. Can you clarify if you are working locally or remotely? It appears there is no trash in WSL from the error you have reported. The delete commands: await vscode.workspace.fs.delete(selectedFileUri, { useTrash: true }); This extension was designed to make all destructive actions safe i.e enable recovery via trash for deleted files. I am reluctant to make an exception to that. I am not a WSL user, I do not have a windows machine, so I will not be working on this. It is open to others to investigate. Is there a way to tell that VS Code is operating in WSL? My guess is that You could just use VS Code in Windows, the functionality works as expected there. Kind Regards, Rob |
Hello, the WSL does have a "trash". Actually, using vscode locally within the WSL works fine. It seems to be an issue with working remotely, not specific to the WSL (microsoft/vscode#108731). |
Thanks for the update @fighur . I guess it is purely a remote issue then. If Microsoft implement the issue you mentioned, then it should close this issue. Does that summary sound correct to you? I will update the title of this issue to reflect that. Awaiting implementation of trash for remote environment - microsoft/vscode#108731 |
The logs show the following error:
The text was updated successfully, but these errors were encountered: