Skip to content

Commit a42cc18

Browse files
authored
fix(amazonq): Q connectionState not correctly set
connection state should be handled by Authutil.ts https://github.com/aws/aws-toolkit-vscode-staging/blob/feature/q-region-expansion/packages/core/src/codewhisperer/util/authUtil.ts#L153-L162
1 parent d929a9c commit a42cc18

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/core/src/codewhisperer/commands/basicCommands.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ import { isRemoteWorkspace } from '../../shared/vscode/env'
5555
import { isBuilderIdConnection } from '../../auth/connection'
5656
import globals from '../../shared/extensionGlobals'
5757
import { getVscodeCliPath } from '../../shared/utilities/pathFind'
58-
import { setContext } from '../../shared/vscode/setContext'
5958
import { tryRun } from '../../shared/utilities/pathFind'
6059
import { IssueItem, SecurityIssueTreeViewProvider } from '../service/securityIssueTreeViewProvider'
6160
import { SecurityIssueProvider } from '../service/securityIssueProvider'
@@ -106,8 +105,6 @@ export const enableCodeSuggestions = Commands.declare(
106105
(context: ExtContext) =>
107106
async (isAuto: boolean = true) => {
108107
await CodeSuggestionsState.instance.setSuggestionsEnabled(isAuto)
109-
await setContext('aws.codewhisperer.connected', true)
110-
await setContext('aws.codewhisperer.connectionExpired', false)
111108
vsCodeState.isFreeTierLimitReached = false
112109
await vscode.commands.executeCommand('aws.amazonq.refreshStatusBar')
113110
}

0 commit comments

Comments
 (0)