Skip to content

Commit bf6e097

Browse files
refactor(cleanup): remove dead code (#6619)
This does nothing anymore --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license. Signed-off-by: nkomonen-amazon <nkomonen@amazon.com>
1 parent a512982 commit bf6e097

File tree

1 file changed

+2
-29
lines changed

1 file changed

+2
-29
lines changed

packages/core/src/auth/activation.ts

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@ import * as vscode from 'vscode'
77
import { Auth } from './auth'
88
import { LoginManager } from './deprecated/loginManager'
99
import { 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

1613
interface 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

Comments
 (0)