Comments (3)
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: File Bunny: Delete Active File
and File Bunny: Delete File
both use FileSystem.delete
as below:
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 process.platform
reports back the platform as win32
. If there is not a way to tell that you are in WSL and the error is a generic FileSystemError
, then it is difficult to offer different functionality for WSL.
You could just use VS Code in Windows, the functionality works as expected there.
Kind Regards,
Rob
from vscode-file-bunny.
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).
from vscode-file-bunny.
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
from vscode-file-bunny.
Related Issues (14)
- option to not open duplicated file HOT 1
- Enhancement Idea: After moving a file to a new folder, leave the focus in the source folder HOT 2
- Use file icons for Quickpick Items
- Open File Under Cursor HOT 6
- Unable to rename active file HOT 2
- Review running commands when no workspace is open HOT 1
- Add commands for actions (duplicate file, delete file) without opening the file HOT 1
- "open external" commands are now only opening local files in VS Code HOT 1
- Enable actions for images and other file types in active tab HOT 1
- Rebinding Home and End keys on install can lead to confusion HOT 3
- Add a custom shortcut to open all Bunny commands directly HOT 1
- File move: Spaces in filenames convert to "%20" HOT 2
- Picker does not have focus for certain commands HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-file-bunny.