-
Notifications
You must be signed in to change notification settings - Fork 6.3k
How to enable moving files to trash? #4469
-
I have tried to use the ELECTRON_TRASH environment variables:
- with glib installed and ELECTRON_TRASH set to gio
- with trash-cli installed and ELECTRON_TRASH set to trash-cli
Unfortunately, I did not see the move to trash option enabled, only the delete permanently option.
I'm not much familiar with the vscode source, but I saw after some searching in github that the is some checking for the platform vscode is running in.
Someone knows how to address this? I think it would add great value to code-server.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 3 replies
-
Hmm... I think @jsjoeio or @code-asher might help on this...
Beta Was this translation helpful? Give feedback.
All reactions
-
I don't think we support these 🤔 cc @code-asher
Beta Was this translation helpful? Give feedback.
All reactions
-
Yeah it appears only the Electron version supports the trash, at least for now. Here is the Electron file service which is the same as the base service except it adds trash support:
We could probably do something similar except call out to some Node module to handle the trash.
Beta Was this translation helpful? Give feedback.
All reactions
-
👀 1
-
Oh nice! Opened an issue and put under Backlog Candidates here: #4486
Beta Was this translation helpful? Give feedback.