sleistner / vscode-fileutils

Visual Studio Code Extension
https://marketplace.visualstudio.com/items?itemName=sleistner.vscode-fileutils
MIT License
190 stars 26 forks source link

Duplicate creates file in wrong folder #677

Open goldrik opened 8 months ago

goldrik commented 8 months ago

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