Skip to content

Commit c9619e1

Browse files
committed
improved labels in recent workspace list
1 parent ed28adb commit c9619e1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/dev-container/src/electron-browser/container-info-contribution.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ export class ContainerInfoContribution implements FrontendApplicationContributio
7676
return 0;
7777
}
7878

79-
getLongName(element: URI): string | undefined {
80-
return `${element.path.base} [Dev Container: ${this.containerFilePath}]`;
79+
getName(element: URI): string | undefined {
80+
const dir = new URI(this.containerFilePath).path.dir.base;
81+
return `${element.path.base} [Dev Container${dir && dir !== '.devcontainer' ? `: ${dir}` : ''}]`;
8182
}
8283

8384
}

packages/getting-started/src/browser/getting-started-widget.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ export class GettingStartedWidget extends ReactWidget {
270270
tabIndex={0}
271271
onClick={() => this.open(new URI(items[index]))}
272272
onKeyDown={(e: React.KeyboardEvent) => this.openEnter(e, new URI(items[index]))}>
273-
{new URI(items[index]).path.base}
273+
{this.labelProvider.getName(new URI(items[index]))}
274274
</a>
275275
<span className='gs-action-details'>
276276
{item}

0 commit comments

Comments
 (0)