Skip to content

Commit 0980d1c

Browse files
committed
1 parent 3196eb9 commit 0980d1c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,10 @@ 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-
this.shellLaunchConfig.icon = defaultProfile.icon;
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+
}
489492
this.shellLaunchConfig.color = defaultProfile.color;
490493
}
491494

0 commit comments

Comments
 (0)