Skip to content

Commit fc6f01f

Browse files
authored
Merge pull request microsoft#154355 from microsoft/tyriar/154354
Polish default terminal tab icon/color settings
2 parents 72208d7 + f7f3f48 commit fc6f01f

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

src/vs/platform/terminal/common/terminal.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ export const enum TerminalSettingId {
4040
DefaultProfileMacOs = 'terminal.integrated.defaultProfile.osx',
4141
DefaultProfileWindows = 'terminal.integrated.defaultProfile.windows',
4242
UseWslProfiles = 'terminal.integrated.useWslProfiles',
43-
TabsDefaultIconColor = 'terminal.integrated.tabs.defaultIconColor',
44-
TabsDefaultIconId = 'terminal.integrated.tabs.defaultIconId',
43+
TabsDefaultColor = 'terminal.integrated.tabs.defaultColor',
44+
TabsDefaultIcon = 'terminal.integrated.tabs.defaultIcon',
4545
TabsEnabled = 'terminal.integrated.tabs.enabled',
4646
TabsEnableAnimation = 'terminal.integrated.tabs.enableAnimation',
4747
TabsHideCondition = 'terminal.integrated.tabs.hideCondition',

src/vs/platform/terminal/common/terminalPlatformConfiguration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ const terminalProfileBaseProperties: IJSONSchemaMap = {
4646
type: 'boolean'
4747
},
4848
icon: {
49-
description: localize('terminalProfile.icon', 'A codicon ID to associate with this terminal.'),
49+
description: localize('terminalProfile.icon', 'A codicon ID to associate with the terminal icon.'),
5050
...terminalIconSchema
5151
},
5252
color: {
53-
description: localize('terminalProfile.color', 'A theme color ID to associate with this terminal.'),
53+
description: localize('terminalProfile.color', 'A theme color ID to associate with the terminal icon.'),
5454
...terminalColorSchema
5555
},
5656
env: {

src/vs/workbench/contrib/terminal/browser/terminalInstance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
550550
private _getIcon(): TerminalIcon | undefined {
551551
if (!this._icon) {
552552
this._icon = this._processManager.processState >= ProcessState.Launching
553-
? getIconRegistry().getIcon(this._configurationService.getValue(TerminalSettingId.TabsDefaultIconId))
553+
? getIconRegistry().getIcon(this._configurationService.getValue(TerminalSettingId.TabsDefaultIcon))
554554
: undefined;
555555
}
556556
return this._icon;

src/vs/workbench/contrib/terminal/browser/terminalProfileResolverService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export abstract class BaseTerminalProfileResolverService implements ITerminalPro
117117
}
118118

119119
getDefaultIcon(): TerminalIcon & ThemeIcon {
120-
return this._iconRegistry.getIcon(this._configurationService.getValue(TerminalSettingId.TabsDefaultIconId)) || Codicon.terminal;
120+
return this._iconRegistry.getIcon(this._configurationService.getValue(TerminalSettingId.TabsDefaultIcon)) || Codicon.terminal;
121121
}
122122

123123
async resolveShellLaunchConfig(shellLaunchConfig: IShellLaunchConfig, options: IShellLaunchConfigResolveOptions): Promise<void> {
@@ -157,7 +157,7 @@ export abstract class BaseTerminalProfileResolverService implements ITerminalPro
157157
// Apply the color
158158
shellLaunchConfig.color = shellLaunchConfig.color
159159
|| resolvedProfile.color
160-
|| this._configurationService.getValue(TerminalSettingId.TabsDefaultIconColor);
160+
|| this._configurationService.getValue(TerminalSettingId.TabsDefaultColor);
161161

162162
// Resolve useShellEnvironment based on the setting if it's not set
163163
if (shellLaunchConfig.useShellEnvironment === undefined) {

src/vs/workbench/contrib/terminal/common/terminalConfiguration.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ const terminalConfiguration: IConfigurationNode = {
4040
type: 'boolean',
4141
default: false
4242
},
43-
[TerminalSettingId.TabsDefaultIconColor]: {
44-
description: localize('terminal.integrated.tabs.defaultIconColor', "A theme color ID to associate with terminals by default."),
43+
[TerminalSettingId.TabsDefaultColor]: {
44+
description: localize('terminal.integrated.tabs.defaultColor', "A theme color ID to associate with terminal icons by default."),
4545
...terminalColorSchema
4646
},
47-
[TerminalSettingId.TabsDefaultIconId]: {
48-
description: localize('terminal.integrated.tabs.defaultIconId', "A codicon ID to associate with terminals by default."),
47+
[TerminalSettingId.TabsDefaultIcon]: {
48+
description: localize('terminal.integrated.tabs.defaultIcon', "A codicon ID to associate with terminal icons by default."),
4949
...terminalIconSchema,
5050
default: Codicon.terminal.id,
5151
},

0 commit comments

Comments
 (0)