Skip to content

Duplicate creates file in wrong folder #677

@goldrik

Description

@goldrik

When duplicating a file which is not in any of the workspace folder, the command does not create the file in the chosen folder.

To reproduce:

  1. Start VS Code and have a folder in the workspace.
  2. Open a file in the editor which is not in that workspace
  3. File Utils: Duplicate
  4. Select a workspace folder
  5. The autogenerated path in the text box does not correspond to the same path selected in step 4

It should create the file in the selected workspace folder.

Note: It may be a nice addition to have the folder that file is located in be one of the options when selecting a workspace folder to duplicate the file into.

VS Code v1.86.1
Windows Server 2022
FileUtils v3.10.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions