Skip to content

File service: unable to move/copy same path #75825

@isidorn

Description

@isidorn
  1. Linux
  2. Trigger rename a file in the explorer
  3. Click anywhere else while the rename box is shown. Notice error in the console

Unable to move/copy when source path is equal or parent of target path: Error: Unable to move/copy when source path is equal or parent of target path
The issue is that the explorer calls textFileService.move(stat.resource, targetResource) where both resources are the same.
The fileService treats this as a no-op on OS X and Win. But throws on linux.

@bpasero What is the proper behavior, that it is always a no-op, or you always throw so I put a check in the action.

fyi @joaomoreno

Metadata

Metadata

Assignees

Labels

debtCode quality issuesfile-ioFile I/Ohelp wantedIssues identified as good community contribution opportunitieslinuxIssues with VS Code on Linux

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions