Skip to content

Commit 7fc386e

Browse files
authored
Merge pull request #7271 from opieter-aws/feature/amazonqLSP-auth
fix(amazonq): merge master into feature/amazonqLSP-auth
2 parents 772ea72 + 153f8b3 commit 7fc386e

File tree

61 files changed

+2593
-295
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+2593
-295
lines changed

.github/CODEOWNERS

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
* @aws/aws-ides-team
22
packages/core/src/codewhisperer/ @aws/codewhisperer-team
33
packages/core/src/amazonqFeatureDev/ @aws/earlybird
4-
packages/core/src/codewhispererChat/ @aws/flare
5-
packages/core/src/amazonq/ @aws/flare
64
packages/core/src/awsService/accessanalyzer/ @aws/access-analyzer

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ Unlike the user setting overrides, not all of these environment variables have t
534534
- `AWS_TOOLKIT_TEST_NO_COLOR`: If the tests should include colour in their output
535535
- `DEVELOPMENT_PATH`: The path to the aws toolkit vscode project
536536
- `TEST_DIR` - The directory where the test runner should find the tests
537+
- `AMAZONQ_FEATUREDEV_ITERATION_TEST` - Controls whether to enable multiple iteration testing for Amazon Q feature development
537538

538539
### SAM/CFN ("goformation") JSON schema
539540

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"date": "2025-05-05",
3+
"version": "1.65.0",
4+
"entries": [
5+
{
6+
"type": "Feature",
7+
"description": "Support selecting customizations across all Q profiles with automatic profile switching for enterprise users"
8+
},
9+
{
10+
"type": "Feature",
11+
"description": "Memorize and autofill users' last Sso login profile"
12+
}
13+
]
14+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Bug Fix",
3+
"description": "Avoid inline completion 'Improperly formed request' errors when file is too large"
4+
}

packages/amazonq/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.65.0 2025-05-05
2+
3+
- **Feature** Support selecting customizations across all Q profiles with automatic profile switching for enterprise users
4+
- **Feature** Memorize and autofill users' last Sso login profile
5+
16
## 1.64.0 2025-05-02
27

38
- **Bug Fix** Enable Amazon Q LSP in AL2 instances

packages/amazonq/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "amazon-q-vscode",
33
"displayName": "Amazon Q",
44
"description": "The most capable generative AI-powered assistant for building, operating, and transforming software, with advanced capabilities for managing data and AI",
5-
"version": "1.65.0-SNAPSHOT",
5+
"version": "1.66.0-SNAPSHOT",
66
"extensionKind": [
77
"workspace"
88
],
@@ -59,7 +59,6 @@
5959
"watch": "npm run clean && npm run buildScripts && tsc -watch -p ./",
6060
"testCompile": "npm run clean && npm run buildScripts && npm run compileOnly",
6161
"test": "npm run testCompile && c8 --allowExternal ts-node ../core/scripts/test/launchTest.ts unit dist/test/unit/index.js ../core/dist/src/testFixtures/workspaceFolder",
62-
"testE2E": "npm run testCompile && c8 --allowExternal ts-node ../core/scripts/test/launchTest.ts e2e dist/test/e2e/index.js ../core/dist/src/testFixtures/workspaceFolder",
6362
"testWeb": "npm run compileDev && c8 --allowExternal ts-node ../core/scripts/test/launchTest.ts web dist/test/web/testRunnerWebCore.js",
6463
"webRun": "npx @vscode/test-web --open-devtools --browserOption=--disable-web-security --waitForDebugger=9222 --extensionDevelopmentPath=. .",
6564
"webWatch": "npm run clean && npm run buildScripts && webpack --mode development --watch",

packages/amazonq/src/app/chat/activation.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,7 @@ export async function activate(context: ExtensionContext) {
3030
amazonq.listCodeWhispererCommandsWalkthrough.register(),
3131
amazonq.focusAmazonQPanel.register(),
3232
amazonq.focusAmazonQPanelKeybinding.register(),
33-
amazonq.tryChatCodeLensCommand.register(),
34-
vscode.workspace.onDidChangeConfiguration(async (configurationChangeEvent) => {
35-
if (configurationChangeEvent.affectsConfiguration('amazonQ.workspaceIndex')) {
36-
if (CodeWhispererSettings.instance.isLocalIndexEnabled()) {
37-
void setupLsp()
38-
}
39-
}
40-
})
33+
amazonq.tryChatCodeLensCommand.register()
4134
)
4235

4336
Commands.register('aws.amazonq.learnMore', () => {

packages/amazonq/src/extension.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ export async function activateAmazonQCommon(context: vscode.ExtensionContext, is
124124

125125
// This contains every lsp agnostic things (auth, security scan, code scan)
126126
await activateCodeWhisperer(extContext as ExtContext)
127-
128127
if (!Experiments.instance.get('amazonqLSPInline', false)) {
129128
await activateInlineCompletion()
130129
}

packages/amazonq/src/lsp/client.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ export async function startLanguageServer(
147147
showSaveFileDialog: true,
148148
},
149149
},
150+
contextConfiguration: {
151+
workspaceIdentifier: extensionContext.storageUri,
152+
},
150153
logLevel: toAmazonQLSPLogLevel(globals.logOutputChannel.logLevel),
151154
},
152155
credentials: {
@@ -280,8 +283,9 @@ export async function startLanguageServer(
280283
})
281284
)
282285
}
283-
284-
await activateChat(client, encryptionKey, resourcePaths.ui)
286+
if (Experiments.instance.get('amazonqChatLSP', true)) {
287+
await activateChat(client, encryptionKey, resourcePaths.ui)
288+
}
285289

286290
toDispose.push(
287291
AuthUtil.instance.regionProfileManager.onDidChangeRegionProfile(sendProfileToLsp),

0 commit comments

Comments
 (0)