Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to enable moving files to trash? #4469

Unanswered
emanueleperuffo asked this question in Ideas
Discussion options

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.

You must be logged in to vote

Replies: 1 comment 3 replies

Comment options

Hmm... I think @jsjoeio or @code-asher might help on this...

You must be logged in to vote
3 replies
Comment options

I don't think we support these 🤔 cc @code-asher

Comment options

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:

https://github.com/cdr/vscode/blob/d62e8db202f80db7a42233cd56d04e6806109fb1/src/vs/workbench/services/files/electron-browser/diskFileSystemProvider.ts#L26

We could probably do something similar except call out to some Node module to handle the trash.

Comment options

Oh nice! Opened an issue and put under Backlog Candidates here: #4486

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /