eclipse-theia/theia

multi-root: improve display of path for 'WorkspaceInputDialog'

Open

#7,309 opened on Mar 10, 2020

View on GitHub
 (0 comments) (0 reactions) (0 assignees)TypeScript (18,676 stars) (2,478 forks)batch import
dialogshelp wantedmulti-root

Description

Description

Improve the display of the path for a multi-root workspace when executing the commands New File and New Folder (WorkspaceInputDialog).

In order to avoid confusion, the root name for the given uri should be displayed, for example:

image

Should be updated to:

image

image

Reproduction Steps

  1. using a multi-root workspace, execute the command New File or New Folder.

Relevant Code

https://github.com/eclipse-theia/theia/blob/d0e00c5d07ec0c95a17da51a5b744934d7c4d1f8/packages/workspace/src/browser/workspace-input-dialog.ts#L44-L57

Contributor guide