File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/vs/workbench/contrib/remoteTunnel/electron-sandbox Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments