You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When executing the "Duplicate File" actions from the command pallet (or more generally a keyboard shortcut) and no file is currently open (but the explorer is active and an item is selected) an error occurs saying that a file needs to be open. This also means that if you have a file open but the explorer is what is currently active you cannot duplicate the currently active selection
To Reproduce
Steps to reproduce the behavior:
Close all files
Select a file in the explorer
Call up the command pallet and execute the file duplicate action
An error is displayed
Expected behavior
The currently selected file/folder is duplicated
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
VSCode Version: 1.39.0
OS Version: 10.0.17763
The text was updated successfully, but these errors were encountered:
A related issue is that duplicating a folder using a keybinding or the command palette doesn't work (it duplicates the currently open file instead). Both issues are caused by the fact that VSCode doesn't expose an API to get the currently selected file/folder from the explorer view. See microsoft/vscode#3553, where some possible workarounds are also mentioned.
Describe the bug
When executing the "Duplicate File" actions from the command pallet (or more generally a keyboard shortcut) and no file is currently open (but the explorer is active and an item is selected) an error occurs saying that a file needs to be open. This also means that if you have a file open but the explorer is what is currently active you cannot duplicate the currently active selection
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The currently selected file/folder is duplicated
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: