microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
226 stars 11 forks source link

[BUG] C# devkit locks files, not able to move/rename/delete, etc #281

Closed EelcoLos closed 1 week ago

EelcoLos commented 1 year ago

Describe the Issue

I'd like to move some folders in a solution, which is opened by C# devkit. Upon moving and/or renaming the files (and i'm certain this will also happen with deleting), which are opened with the C# devkit extension, I get an error message:

Error: EPERM: operation not permitted, rename <source dir> -> <target dir>

Steps To Reproduce

  1. Open a .net solution folder in vscode
  2. use the C# devkit tool to open the solution as well
  3. try and move/rename the folder
  4. the error shows:

    Error: EPERM: operation not permitted, rename <your original solution directory> -> <target directory>

Expected Behavior

The extension should notice the move and update the solution accordingly. If that is a feature request, the expected behaviour is: allow the move to happen; the extension shouldn't lock the files.

Environment Information

ekaradzha-qb commented 1 year ago

Does it have that feature at all? I cannot move/copy/drag-and-drop files with devkit at all?

EelcoLos commented 1 year ago

Does it have that feature at all? I cannot move/copy/drag-and-drop files with devkit at all?

vscode has the ability to move files, the extension blocks it

EelcoLos commented 1 year ago

Seen today as well, permission persists

jtsom commented 9 months ago

Just noticed this today also. Created a new folder and attempted to rearrange the project by moving some files in the Solution Explorer. Cannot move the files.

I can move the files using just the original Explorer view.

github-actions[bot] commented 6 months ago

This issue has been marked as stale after 14 days of inactivity.@[@@], could you please take a look?

jtsom commented 6 months ago

Still happens in latest Insiders Build.

vanasis commented 3 months ago

cant move files nor rename it image

vanasis commented 3 months ago

same issue https://github.com/microsoft/vscode-dotnettools/issues/445

webreidi commented 1 week ago

@EelcoLos / @vanasis / @jtsom

You can now drag and drop files within the Solution Explorer in C# Dev Kit.

Please reopen this issue if you are still experiencing issues with moving/renaming/deleting files.