Skip to content

Commit e1a9077

Browse files
authored
tunnels: fix redundant quick pick group name (microsoft#189198)
Fixes microsoft#188825
1 parent 5a7e68a commit e1a9077

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/vs/workbench/contrib/remoteTunnel/electron-sandbox/remoteTunnel.contribution.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -397,11 +397,11 @@ export class RemoteTunnelWorkbenchContribution extends Disposable implements IWo
397397
private async createQuickpickItems(sessions: ExistingSessionItem[]): Promise<(ExistingSessionItem | AuthenticationProviderOption | IQuickPickSeparator | IQuickPickItem & { canceledAuthentication: boolean })[]> {
398398
const options: (ExistingSessionItem | AuthenticationProviderOption | IQuickPickSeparator | IQuickPickItem & { canceledAuthentication: boolean })[] = [];
399399

400-
options.push({ type: 'separator', label: localize('signed in', "Signed In") });
401-
402-
options.push(...sessions);
403-
404-
options.push({ type: 'separator', label: localize('others', "Others") });
400+
if (sessions.length) {
401+
options.push({ type: 'separator', label: localize('signed in', "Signed In") });
402+
options.push(...sessions);
403+
options.push({ type: 'separator', label: localize('others', "Others") });
404+
}
405405

406406
for (const authenticationProvider of (await this.getAuthenticationProviders())) {
407407
const signedInForProvider = sessions.some(account => account.providerId === authenticationProvider.id);

0 commit comments

Comments
 (0)