Skip to content

Commit e42c0fa

Browse files
refactor: Remove additional prompt for CC Builder ID (#3608)
When connection to CodeCatalyst Builder ID there is a prompt that asks if you would like to go to the browser but then immediately follows up with a prompt to copy a code then open the browser. This removes that initial prompt since it is unncessary. Signed-off-by: Nikolas Komonen <[email protected]>
1 parent b8c81b1 commit e42c0fa

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/codecatalyst/auth.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import * as vscode from 'vscode'
77
import { CodeCatalystClient, createClient } from '../shared/clients/codecatalystClient'
8-
import { getIdeProperties } from '../shared/extensionUtilities'
98
import { Auth } from '../auth/auth'
109
import { getSecondaryAuth } from '../auth/secondaryAuth'
1110
import { getLogger } from '../shared/logger'
@@ -138,15 +137,6 @@ export class CodeCatalystAuthenticationProvider {
138137
codecatalyst_connectionFlow: 'Create',
139138
} satisfies ConnectionFlowEvent as MetricShapes[MetricName])
140139

141-
const message = `The ${
142-
getIdeProperties().company
143-
} Toolkit extension requires a connection for CodeCatalyst to begin.\n\n Proceed to the browser to allow access?`
144-
145-
const resp = await vscode.window.showInformationMessage(message, { modal: true }, continueItem, cancelItem)
146-
if (resp !== continueItem) {
147-
throw new ToolkitError('Not connected to CodeCatalyst', { code: 'NoConnection', cancelled: true })
148-
}
149-
150140
const newConn = await createBuilderIdConnection(this.auth, defaultScopes)
151141
if (this.auth.activeConnection?.id !== newConn.id) {
152142
await this.secondaryAuth.useNewConnection(newConn)

0 commit comments

Comments
 (0)