Skip to content

Commit 5bfe471

Browse files
authored
Merge pull request #3869 from zixlin7/master
codewhisperer: fix auto-enable suggestion on window reload
2 parents 44a3bde + b57f1e8 commit 5bfe471

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/codewhisperer/util/authUtil.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,7 @@ export class AuthUtil {
7272
vscode.commands.executeCommand('aws.codeWhisperer.refreshStatusBar'),
7373
vscode.commands.executeCommand('aws.codeWhisperer.updateReferenceLog'),
7474
])
75-
// To check valid connection
76-
if (this.isValidEnterpriseSsoInUse() || (this.isBuilderIdInUse() && !this.isConnectionExpired())) {
77-
await vscode.commands.executeCommand('aws.codeWhisperer.enableCodeSuggestions')
78-
}
75+
7976
await vscode.commands.executeCommand('setContext', 'CODEWHISPERER_ENABLED', this.isConnected())
8077
})
8178
}

0 commit comments

Comments
 (0)