@@ -7,11 +7,8 @@ import * as vscode from 'vscode'
77import { Auth } from './auth'
88import { LoginManager } from './deprecated/loginManager'
99import { fromString } from './providers/credentials'
10- import { getLogger } from '../shared/logger/logger'
11- import { ExtensionUse , initializeCredentialsProviderManager } from './utils'
12- import { isAmazonQ , isCloud9 , isSageMaker } from '../shared/extensionUtilities'
13- import { isInDevEnv } from '../shared/vscode/env'
14- import { isWeb } from '../shared/extensionGlobals'
10+ import { initializeCredentialsProviderManager } from './utils'
11+ import { isAmazonQ , isSageMaker } from '../shared/extensionUtilities'
1512
1613interface SagemakerCookie {
1714 authMode ?: 'Sso' | 'Iam'
@@ -33,28 +30,4 @@ export async function initialize(loginManager: LoginManager): Promise<void> {
3330 await loginManager . logout ( )
3431 }
3532 } )
36-
37- await showManageConnectionsOnStartup ( )
38- }
39-
40- /**
41- * Show the Manage Connections page when the extension starts up, if it should be shown.
42- */
43- async function showManageConnectionsOnStartup ( ) {
44- // Do not show connection management to user in certain scenarios.
45- let reason : string = ''
46- if ( isWeb ( ) ) {
47- // TODO: Figure out how we want users to connect to auth in browser mode
48- reason = 'We are in the browser'
49- } else if ( ! ExtensionUse . instance . isFirstUse ( ) ) {
50- reason = 'This is not the users first use of the extension'
51- } else if ( isInDevEnv ( ) ) {
52- reason = 'The user is in a Dev Evironment'
53- } else if ( isCloud9 ( 'any' ) ) {
54- reason = 'The user is in Cloud9'
55- }
56- if ( reason ) {
57- getLogger ( ) . debug ( `firstStartup: ${ reason } . Skipped showing Add Connections page.` )
58- return
59- }
6033}
0 commit comments