Skip to content

Commit 3d6c93b

Browse files
committed
1 parent 88c39eb commit 3d6c93b

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,7 @@ export class TerminalProfileService implements ITerminalProfileService {
8383

8484
_serviceBrand: undefined;
8585

86-
getDefaultProfileName(): string {
87-
if (!this._defaultProfileName) {
88-
throw new Error('no default profile');
89-
}
86+
getDefaultProfileName(): string | undefined {
9087
return this._defaultProfileName;
9188
}
9289

src/vs/workbench/contrib/terminal/common/terminal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export interface ITerminalProfileService {
6363
readonly contributedProfiles: IExtensionTerminalProfile[];
6464
readonly profilesReady: Promise<void>;
6565
refreshAvailableProfiles(): void;
66-
getDefaultProfileName(): string;
66+
getDefaultProfileName(): string | undefined;
6767
onDidChangeAvailableProfiles: Event<ITerminalProfile[]>;
6868
getContributedDefaultProfile(shellLaunchConfig: IShellLaunchConfig): Promise<IExtensionTerminalProfile | undefined>;
6969
registerContributedProfile(extensionIdentifier: string, id: string, title: string, options: ICreateContributedTerminalProfileOptions): Promise<void>;

0 commit comments

Comments
 (0)