Skip to content

Commit d802def

Browse files
authored
Merge branch 'feature/amazonqLSP-auth' into feature/amazonqLSP-auth
2 parents 90cd802 + 4e1d059 commit d802def

File tree

25 files changed

+569
-40
lines changed

25 files changed

+569
-40
lines changed

package-lock.json

Lines changed: 6 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"skippedTestReport": "ts-node ./scripts/skippedTestReport.ts ./packages/amazonq/test/e2e/"
4242
},
4343
"devDependencies": {
44-
"@aws-toolkits/telemetry": "^1.0.317",
44+
"@aws-toolkits/telemetry": "^1.0.318",
4545
"@playwright/browser-chromium": "^1.43.1",
4646
"@stylistic/eslint-plugin": "^2.11.0",
4747
"@types/he": "^1.2.3",
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"date": "2025-05-09",
3+
"version": "1.66.0",
4+
"entries": [
5+
{
6+
"type": "Bug Fix",
7+
"description": "Avoid inline completion 'Improperly formed request' errors when file is too large"
8+
},
9+
{
10+
"type": "Bug Fix",
11+
"description": "Named agent tabs sometimes open with unnecessary input options"
12+
}
13+
]
14+
}

packages/amazonq/.changes/next-release/Bug Fix-75375702-36b5-4e89-af57-4afe983a7238.json

Lines changed: 0 additions & 4 deletions
This file was deleted.
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": "Previous and subsequent cells are used as context for completion in a Jupyter notebook"
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.66.0 2025-05-09
2+
3+
- **Bug Fix** Avoid inline completion 'Improperly formed request' errors when file is too large
4+
- **Bug Fix** Named agent tabs sometimes open with unnecessary input options
5+
16
## 1.65.0 2025-05-05
27

38
- **Feature** Support selecting customizations across all Q profiles with automatic profile switching for enterprise users

packages/amazonq/package.json

Lines changed: 1 addition & 1 deletion
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.66.0-SNAPSHOT",
5+
"version": "1.67.0-SNAPSHOT",
66
"extensionKind": [
77
"workspace"
88
],

packages/amazonq/src/lsp/activation.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ import vscode from 'vscode'
77
import { startLanguageServer } from './client'
88
import { AmazonQLspInstaller } from './lspInstaller'
99
import { lspSetupStage, ToolkitError, messages } from 'aws-core-vscode/shared'
10-
import { AuthUtil } from 'aws-core-vscode/codewhisperer'
1110

1211
export async function activate(ctx: vscode.ExtensionContext) {
1312
try {
1413
await lspSetupStage('all', async () => {
1514
const installResult = await new AmazonQLspInstaller().resolve()
1615
return await lspSetupStage('launch', () => startLanguageServer(ctx, installResult.resourcePaths))
1716
})
18-
await AuthUtil.instance.restore()
1917
} catch (err) {
2018
const e = err as ToolkitError
2119
void messages.showViewLogsMessage(`Failed to launch Amazon Q language server: ${e.message}`)

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ export async function activate(languageClient: LanguageClient, encryptionKey: Bu
2525
type: 'profile',
2626
profileArn: AuthUtil.instance.regionProfileManager.activeRegionProfile?.arn,
2727
})
28+
// We need to push the cached customization on startup explicitly
29+
await pushConfigUpdate(languageClient, {
30+
type: 'customization',
31+
customization: getSelectedCustomization(),
32+
})
2833

2934
const provider = new AmazonQChatViewProvider(mynahUIPath)
3035

packages/amazonq/src/lsp/chat/messages.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export function registerLanguageServerEventListener(languageClient: LanguageClie
9191
const telemetryName: string = e.name
9292

9393
if (telemetryName in telemetry) {
94+
languageClient.info(`[Telemetry] Emitting ${telemetryName} telemetry: ${JSON.stringify(e.data)}`)
9495
telemetry[telemetryName as keyof TelemetryBase].emit(e.data)
9596
}
9697
})

0 commit comments

Comments
 (0)