Skip to content

Commit a1dd463

Browse files
committed
Make fix more generic
1 parent 0980d1c commit a1dd463

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -485,11 +485,9 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
485485
const defaultProfile = (await this._terminalProfileResolverService.getDefaultProfile({ remoteAuthority: this.remoteAuthority, os }));
486486
this.shellLaunchConfig.executable = defaultProfile.path;
487487
this.shellLaunchConfig.args = defaultProfile.args;
488-
// Prevent debug icon from being overwritten
489-
if (!(this.shellLaunchConfig.icon && 'id' in this.shellLaunchConfig.icon && this.shellLaunchConfig.icon.id === Codicon.debug.id)) {
490-
this.shellLaunchConfig.icon = defaultProfile.icon;
491-
}
492-
this.shellLaunchConfig.color = defaultProfile.color;
488+
// Only use default icon and color if they are undefined in the SLC
489+
this.shellLaunchConfig.icon ??= defaultProfile.icon;
490+
this.shellLaunchConfig.color ??= defaultProfile.color;
493491
}
494492

495493
await this._createProcess();

0 commit comments

Comments
 (0)