Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 2 additions & 29 deletions packages/core/src/auth/activation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ import * as vscode from 'vscode'
import { Auth } from './auth'
import { LoginManager } from './deprecated/loginManager'
import { fromString } from './providers/credentials'
import { getLogger } from '../shared/logger/logger'
import { ExtensionUse, initializeCredentialsProviderManager } from './utils'
import { isAmazonQ, isCloud9, isSageMaker } from '../shared/extensionUtilities'
import { isInDevEnv } from '../shared/vscode/env'
import { isWeb } from '../shared/extensionGlobals'
import { initializeCredentialsProviderManager } from './utils'
import { isAmazonQ, isSageMaker } from '../shared/extensionUtilities'

interface SagemakerCookie {
authMode?: 'Sso' | 'Iam'
Expand All @@ -33,28 +30,4 @@ export async function initialize(loginManager: LoginManager): Promise<void> {
await loginManager.logout()
}
})

await showManageConnectionsOnStartup()
}

/**
* Show the Manage Connections page when the extension starts up, if it should be shown.
*/
async function showManageConnectionsOnStartup() {
// Do not show connection management to user in certain scenarios.
let reason: string = ''
if (isWeb()) {
// TODO: Figure out how we want users to connect to auth in browser mode
reason = 'We are in the browser'
} else if (!ExtensionUse.instance.isFirstUse()) {
reason = 'This is not the users first use of the extension'
} else if (isInDevEnv()) {
reason = 'The user is in a Dev Evironment'
} else if (isCloud9('any')) {
reason = 'The user is in Cloud9'
}
if (reason) {
getLogger().debug(`firstStartup: ${reason}. Skipped showing Add Connections page.`)
return
}
}
Loading