Skip to content

Commit ea8582b

Browse files
committed
default start for internal
1 parent 3109971 commit ea8582b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/amazonq/src/extension.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
import { AuthUtils, CredentialsStore, LoginManager, initializeAuth } from 'aws-core-vscode/auth'
6+
import { Auth, AuthUtils, CredentialsStore, LoginManager, initializeAuth } from 'aws-core-vscode/auth'
77
import { activate as activateCodeWhisperer, shutdown as shutdownCodeWhisperer } from 'aws-core-vscode/codewhisperer'
88
import { makeEndpointsProvider, registerGenericCommands } from 'aws-core-vscode'
99
import { CommonAuthWebview } from 'aws-core-vscode/login'
@@ -119,10 +119,10 @@ export async function activateAmazonQCommon(context: vscode.ExtensionContext, is
119119
}
120120
// This contains every lsp agnostic things (auth, security scan, code scan)
121121
await activateCodeWhisperer(extContext as ExtContext)
122-
if (Experiments.instance.get('amazonqLSP', false)) {
122+
if (Experiments.instance.get('amazonqLSP', false) || Auth.instance.isInternalAmazonUser()) {
123+
// start the Amazon Q LSP for internal users first
123124
await activateAmazonqLsp(context)
124125
}
125-
126126
if (!Experiments.instance.get('amazonqLSPInline', false)) {
127127
await activateInlineCompletion()
128128
}

0 commit comments

Comments
 (0)