Skip to content

Commit

Permalink
convert to undefined when getValue happens
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge committed Nov 4, 2021
1 parent 192768d commit 4f0e12a
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 | null = null;
private _defaultProfileName?: string;
private readonly _profileProviders: Map</*ext id*/string, Map</*provider id*/string, ITerminalProfileProvider>> = new Map();
private readonly _primaryOffProcessTerminalService?: IOffProcessTerminalService;

Expand Down Expand Up @@ -139,7 +139,7 @@ export class TerminalProfileService implements ITerminalProfileService {
return this._availableProfiles || [];
}
const platform = await this._getPlatformKey();
this._defaultProfileName = this._configurationService.getValue(`${TerminalSettingPrefix.DefaultProfile}${platform}`);
this._defaultProfileName = this._configurationService.getValue(`${TerminalSettingPrefix.DefaultProfile}${platform}`) ?? undefined;
return this._primaryOffProcessTerminalService?.getProfiles(this._configurationService.getValue(`${TerminalSettingPrefix.Profiles}${platform}`), this._defaultProfileName, includeDetectedProfiles);
}

Expand Down

0 comments on commit 4f0e12a

Please sign in to comment.