Skip to content

Commit c72bd54

Browse files
authored
1 parent 359a67e commit c72bd54

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,13 @@ export class UserDataProfilesWorkbenchContribution extends Disposable implements
164164
const that = this;
165165
return registerAction2(class UpdateCurrentProfileShortName extends Action2 {
166166
constructor() {
167+
const shortName = that.userDataProfileService.getShortName(that.userDataProfileService.currentProfile);
168+
const themeIcon = ThemeIcon.fromString(shortName);
167169
super({
168170
id: `workbench.profiles.actions.updateCurrentProfileShortName`,
169171
title: {
170-
value: localize('change short name profile', "Change Short Name ({0})...", that.userDataProfileService.getShortName(that.userDataProfileService.currentProfile)),
171-
original: `Change Short Name (${that.userDataProfileService.currentProfile.shortName})...`
172+
value: localize('change short name profile', "Change Short Name ({0})...", themeIcon?.id ?? shortName),
173+
original: `Change Short Name (${themeIcon?.id ?? shortName})...`
172174
},
173175
menu: [
174176
{

0 commit comments

Comments
 (0)