Skip to content

Commit 911435b

Browse files
committed
fix merge
1 parent 3f8bed5 commit 911435b

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/credentials/auth.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -865,9 +865,7 @@ export const isBuilderIdConnection = (conn?: Connection): conn is SsoConnection
865865
isSsoConnection(conn) && conn.startUrl === builderIdStartUrl
866866

867867
export async function createStartUrlPrompter(title: string, ignoreScopes = true) {
868-
const existingConnections = (await Auth.instance.listConnections())
869-
.filter(isSsoConnection)
870-
.map(conn => vscode.Uri.parse(conn.startUrl))
868+
const existingConnections = (await Auth.instance.listConnections()).filter(isSsoConnection)
871869
const requiredScopes = createSsoProfile('').scopes
872870

873871
function validateSsoUrl(url: string) {
@@ -953,11 +951,6 @@ const addConnection = Commands.register('aws.auth.addConnection', async () => {
953951
// Right now users can only have 1 builder id connection
954952
const conn = existingConn ?? (await Auth.instance.createConnection(createBuilderIdProfile()))
955953

956-
return Auth.instance.useConnection(conn)
957-
}
958-
case 'builderId': {
959-
const conn = await createBuilderIdConnection(Auth.instance)
960-
961954
return Auth.instance.useConnection(conn)
962955
}
963956
}

0 commit comments

Comments
 (0)