Skip to content

Commit 7b32330

Browse files
committed
no flare in al2
1 parent 96dd2db commit 7b32330

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/amazonq/src/extension.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import { registerCommands } from './commands'
4343
import { focusAmazonQPanel } from 'aws-core-vscode/codewhispererChat'
4444
import { activate as activateAmazonqLsp } from './lsp/activation'
4545
import { activate as activateInlineCompletion } from './app/inline/activation'
46+
import { isAmazonInternalOs } from '../../core/dist/src/shared/vscode/env'
4647

4748
export const amazonQContextPrefix = 'amazonq'
4849

@@ -119,7 +120,10 @@ export async function activateAmazonQCommon(context: vscode.ExtensionContext, is
119120
}
120121
// This contains every lsp agnostic things (auth, security scan, code scan)
121122
await activateCodeWhisperer(extContext as ExtContext)
122-
if (Experiments.instance.get('amazonqLSP', false) || Auth.instance.isInternalAmazonUser()) {
123+
if (
124+
(Experiments.instance.get('amazonqLSP', false) || Auth.instance.isInternalAmazonUser()) &&
125+
!isAmazonInternalOs()
126+
) {
123127
// start the Amazon Q LSP for internal users first
124128
await activateAmazonqLsp(context)
125129
}

0 commit comments

Comments
 (0)