Code Monkey home page Code Monkey logo

Comments (3)

robole avatar robole commented on June 1, 2024

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.

fighur avatar fighur commented on June 1, 2024

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.

robole avatar robole commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.