Skip to content

Commit

Permalink
fix #136362
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge committed Nov 4, 2021
1 parent 3d6c93b commit 192768d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class TerminalProfileService implements ITerminalProfileService {
private _profilesReadyBarrier: AutoOpenBarrier;
private _availableProfiles: ITerminalProfile[] | undefined;
private _contributedProfiles: IExtensionTerminalProfile[] = [];
private _defaultProfileName?: string;
private _defaultProfileName: string | null = null;
private readonly _profileProviders: Map</*ext id*/string, Map</*provider id*/string, ITerminalProfileProvider>> = new Map();
private readonly _primaryOffProcessTerminalService?: IOffProcessTerminalService;

Expand Down Expand Up @@ -84,7 +84,7 @@ export class TerminalProfileService implements ITerminalProfileService {
_serviceBrand: undefined;

getDefaultProfileName(): string | undefined {
return this._defaultProfileName;
return this._defaultProfileName === null ? undefined : this._defaultProfileName;
}

@throttle(2000)
Expand Down

0 comments on commit 192768d

Please sign in to comment.