From fcae1fd37190818d4a3032a213db3008db5a47e4 Mon Sep 17 00:00:00 2001 From: Vincent Fugnitto Date: Mon, 13 Jan 2020 12:57:57 -0500 Subject: [PATCH] [terminal] improve the display of 'new terminal' Fixes #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 --- packages/terminal/src/browser/terminal-frontend-contribution.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/terminal/src/browser/terminal-frontend-contribution.ts b/packages/terminal/src/browser/terminal-frontend-contribution.ts index cee7957d046c8..7a9a37011158d 100644 --- a/packages/terminal/src/browser/terminal-frontend-contribution.ts +++ b/packages/terminal/src/browser/terminal-frontend-contribution.ts @@ -368,7 +368,7 @@ export class TerminalFrontendContribution implements TerminalService, CommandCon protected async selectTerminalCwd(): Promise { 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' }); }