Microsoft/vscode

different behavior of commands in right click menu of explorer

Open

#176.075 aperta il 3 mar 2023

Vedi su GitHub
 (0 commenti) (0 reazioni) (1 assegnatario)TypeScript (10.221 fork)batch import
file-explorerhelp wantedpolish

Metriche repository

Star
 (74.848 star)
Metriche merge PR
 (Merge medio 11h 43m) (1000 PR mergiate in 30 g)

Descrizione

  • VS Code Version: 1.76.0
  • OS Version: windows10

This issue is about the different behavior of commands in right click menu of explorer

There are two different parts in this issue:

    1. when right clicking in explorer where there is no folder
    1. when selecting a folder in explorer but right clicking somewhere that there is no folder

I checked all of the actions happen after each option in the menu and here is the result:

When no folder is selected:

  • New file...: works on first folder of workspace

  • New folder...: works on first folder of workspace

    • I think it would be better if these two options would work on the last interacted folder instead of first folder in workspace
  • reveal in file explorer: works on current open editor file

  • open in external terminal: works on current open editor file

    • (Ok)
  • open folder settings: does not work (check this issue: #176060)

  • remove folder from workspace: Opens a menu for workspace folders

    • Better change the name to remove a folder from workspace
  • find in folder: works on all of folders in workspace

    • different options works differently here. so it would be better to change the name to find in workspace
  • copy path: works on current open editor file

  • copy relative path: works on current open editor file

    • These two options are not clear to user in this situation but they are acceptable

When a folder was selected but right click is on somewhere else:

  • New file...: works on first folder of workspace

  • New folder...: works on first folder of workspace

  • reveal in file explorer: works on previously selected folder

  • open in external terminal: works on previously selected folder

  • remove folder from workspace: works on previously selected folder

  • find in folder: works on previously selected folder

  • copy path: works on previously selected folder

  • copy relative path: works on previously selected folder

  • open folder settings: does not work (check this issue: #176060)

    • As you can see most of these options work on the previously selected folder. so it would be better if new folder, new file and open folder settings will work like the others (work on the previously selected folder) so all commands have the same target

Guida contributor