Skip to content

Commit

Permalink
[terminal] improve the display of 'new terminal'
Browse files Browse the repository at this point in the history
Fixes eclipse-theia#6874

- improves the display of `new terminal` items when running in a multi-root workspace.
- adds the `root name` as a label, and displays the `uri` as a description.

Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
  • Loading branch information
vince-fugnitto authored and akosyakov committed Feb 24, 2020
1 parent 6bfdaf4 commit fcae1fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ export class TerminalFrontendContribution implements TerminalService, CommandCon
protected async selectTerminalCwd(): Promise<string | undefined> {
const roots = this.workspaceService.tryGetRoots();
return this.quickPick.show(roots.map(
({ uri }) => ({ label: this.labelProvider.getLongName(new URI(uri)), value: uri })
({ uri }) => ({ label: this.labelProvider.getName(new URI(uri)), description: this.labelProvider.getLongName(new URI(uri)), value: uri })
), { placeholder: 'Select current working directory for new terminal' });
}

Expand Down

0 comments on commit fcae1fd

Please sign in to comment.