Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/amazonq/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import { focusAmazonQPanel } from 'aws-core-vscode/codewhispererChat'
import { activate as activateAmazonqLsp } from './lsp/activation'
import { activate as activateInlineCompletion } from './app/inline/activation'
import { isAmazonInternalOs } from '../../core/dist/src/shared/vscode/env'

Check failure on line 46 in packages/amazonq/src/extension.ts

View workflow job for this annotation

GitHub Actions / lint (18.x, stable)

'../../core/dist/src/shared/vscode/env' import is restricted from being used by a pattern. Avoid importing from the core lib's dist/ folders; please use directly from the core lib defined exports

export const amazonQContextPrefix = 'amazonq'

Expand Down Expand Up @@ -119,7 +120,10 @@
}
// This contains every lsp agnostic things (auth, security scan, code scan)
await activateCodeWhisperer(extContext as ExtContext)
if (Experiments.instance.get('amazonqLSP', false) || Auth.instance.isInternalAmazonUser()) {
if (
(Experiments.instance.get('amazonqLSP', false) || Auth.instance.isInternalAmazonUser()) &&
!isAmazonInternalOs()
) {
// start the Amazon Q LSP for internal users first
await activateAmazonqLsp(context)
}
Expand Down
Loading