File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src/vs/workbench/contrib/terminal/browser Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -485,11 +485,9 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
485
485
const defaultProfile = ( await this . _terminalProfileResolverService . getDefaultProfile ( { remoteAuthority : this . remoteAuthority , os } ) ) ;
486
486
this . shellLaunchConfig . executable = defaultProfile . path ;
487
487
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 ;
493
491
}
494
492
495
493
await this . _createProcess ( ) ;
You can’t perform that action at this time.
0 commit comments