Skip to content

Commit b19d52b

Browse files
authored
Merge pull request #6671 from aws/autoMerge/feature/amazonqLSP
Merge master into feature/amazonqLSP
2 parents ff1bbbd + 848fe0c commit b19d52b

File tree

206 files changed

+12641
-8222
lines changed

Some content is hidden

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

206 files changed

+12641
-8222
lines changed

buildspec/linuxE2ETests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ phases:
2626
# - '>/dev/null apt-get -qq install -y ca-certificates'
2727
# - 'apt-get install --reinstall ca-certificates'
2828
- bash buildspec/shared/linux-install.sh
29+
# increase file watcher count (ENOSPC error)
30+
- sysctl fs.inotify.max_user_watches=524288
2931

3032
pre_build:
3133
commands:

package-lock.json

Lines changed: 5284 additions & 5033 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.296",
44+
"@aws-toolkits/telemetry": "^1.0.305",
4545
"@playwright/browser-chromium": "^1.43.1",
4646
"@stylistic/eslint-plugin": "^2.11.0",
4747
"@types/he": "^1.2.3",

packages/amazonq/.changes/1.49.0.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"date": "2025-02-27",
3+
"version": "1.49.0",
4+
"entries": [
5+
{
6+
"type": "Bug Fix",
7+
"description": "Amazon Q /test: Unit test generation displays an inaccurate diff view for non-primary packages in the workspace."
8+
},
9+
{
10+
"type": "Bug Fix",
11+
"description": "Amazon Q /doc: Fix uploading file method throwing incorrect workspace too large error message"
12+
},
13+
{
14+
"type": "Bug Fix",
15+
"description": "/transform: skip running tests locally when user chooses to do so"
16+
},
17+
{
18+
"type": "Bug Fix",
19+
"description": "/review: ignored lines should not show up in scan issues"
20+
},
21+
{
22+
"type": "Bug Fix",
23+
"description": "/test: update capability card text"
24+
}
25+
]
26+
}

packages/amazonq/.changes/1.50.0.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"date": "2025-03-06",
3+
"version": "1.50.0",
4+
"entries": [
5+
{
6+
"type": "Bug Fix",
7+
"description": "/doc: Usage in multiple chat tabs may cause unexpected behavior."
8+
},
9+
{
10+
"type": "Bug Fix",
11+
"description": "/review: subsequent reviews weren't possible"
12+
},
13+
{
14+
"type": "Feature",
15+
"description": "Amazon Q chat: Use `@` to add folders, files, and saved prompts as context"
16+
},
17+
{
18+
"type": "Feature",
19+
"description": "Amazon Q chat: increase chat input height to 3 lines"
20+
},
21+
{
22+
"type": "Feature",
23+
"description": "Amazon Q chat: Show list of files sent as context in chat response"
24+
},
25+
{
26+
"type": "Feature",
27+
"description": "Amazon Q chat: Add support for `.md` file rules in workspace-level `.amazonq/rules` directory"
28+
},
29+
{
30+
"type": "Test",
31+
"description": "add Q Chat /review command test coverage"
32+
}
33+
]
34+
}

packages/amazonq/.changes/next-release/Bug Fix-8e53fbd9-35d8-40f0-95be-5c7ac2478353.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/amazonq/.changes/next-release/Bug Fix-e587b325-81f7-4ad0-8945-7c162dceffcd.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": "Feature",
3+
"description": "Amazon Q Chat: You can now keep a \"library\" of prompt files in your home directory under `~/.aws/amazonq/prompts` and then quickly add them to the context using `@` on any project you’re working on. Prompt files are in markdown (`.md`) format."
4+
}

packages/amazonq/CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
## 1.50.0 2025-03-06
2+
3+
- **Bug Fix** /doc: Usage in multiple chat tabs may cause unexpected behavior.
4+
- **Bug Fix** /review: subsequent reviews weren't possible
5+
- **Feature** Amazon Q chat: Use `@` to add folders, files, and saved prompts as context
6+
- **Feature** Amazon Q chat: increase chat input height to 3 lines
7+
- **Feature** Amazon Q chat: Show list of files sent as context in chat response
8+
- **Feature** Amazon Q chat: Add support for `.md` file rules in workspace-level `.amazonq/rules` directory
9+
- **Test** add Q Chat /review command test coverage
10+
11+
## 1.49.0 2025-02-27
12+
13+
- **Bug Fix** Amazon Q /test: Unit test generation displays an inaccurate diff view for non-primary packages in the workspace.
14+
- **Bug Fix** Amazon Q /doc: Fix uploading file method throwing incorrect workspace too large error message
15+
- **Bug Fix** /transform: skip running tests locally when user chooses to do so
16+
- **Bug Fix** /review: ignored lines should not show up in scan issues
17+
- **Bug Fix** /test: update capability card text
18+
119
## 1.48.0 2025-02-20
220

321
- **Bug Fix** /dev and /doc: Multi-root workspace with duplicate files causes infinite 'Uploading code...' loop

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.49.0-SNAPSHOT",
5+
"version": "1.51.0-SNAPSHOT",
66
"extensionKind": [
77
"workspace"
88
],

packages/amazonq/src/app/amazonqScan/app.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export function init(appContext: AmazonQAppInitContext) {
2525
authClicked: new vscode.EventEmitter<any>(),
2626
tabOpened: new vscode.EventEmitter<any>(),
2727
tabClosed: new vscode.EventEmitter<any>(),
28+
runScan: new vscode.EventEmitter<any>(),
2829
formActionClicked: new vscode.EventEmitter<any>(),
2930
errorThrown: new vscode.EventEmitter<any>(),
3031
showSecurityScan: new vscode.EventEmitter<any>(),

packages/amazonq/src/app/amazonqScan/chat/controller/controller.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class ScanController {
4949
this.authController = new AuthController()
5050

5151
this.chatControllerMessageListeners.tabOpened.event((data) => {
52-
return this.tabOpened(data).then(() => this.scanInitiated(data))
52+
return this.tabOpened(data)
5353
})
5454

5555
this.chatControllerMessageListeners.tabClosed.event((data) => {
@@ -60,6 +60,10 @@ export class ScanController {
6060
this.authClicked(data)
6161
})
6262

63+
this.chatControllerMessageListeners.runScan.event((data) => {
64+
return this.scanInitiated(data)
65+
})
66+
6367
this.chatControllerMessageListeners.formActionClicked.event((data) => {
6468
return this.formActionClicked(data)
6569
})

packages/amazonq/src/app/amazonqScan/chat/views/actions/uiMessageListener.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ export class UIMessageListener {
4040
case 'auth-follow-up-was-clicked':
4141
this.authClicked(msg)
4242
break
43+
case 'review':
44+
this.scan(msg)
45+
break
4346
case 'form-action-click':
4447
this.formActionClicked(msg)
4548
break
@@ -58,6 +61,12 @@ export class UIMessageListener {
5861
}
5962
}
6063

64+
private scan(msg: UIMessage) {
65+
this.scanControllerEventsEmitters?.runScan.fire({
66+
tabID: msg.tabID,
67+
})
68+
}
69+
6170
private formActionClicked(msg: UIMessage) {
6271
this.scanControllerEventsEmitters?.formActionClicked.fire({
6372
...msg,

packages/amazonq/test/e2e/amazonq/chat.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { MynahUIDataModel } from '@aws/mynah-ui'
1111
import { assertContextCommands, assertQuickActions } from './assert'
1212
import { registerAuthHook, using } from 'aws-core-vscode/test'
1313
import { loginToIdC } from './utils/setup'
14-
import { webviewConstants } from 'aws-core-vscode/amazonq'
14+
import { webviewConstants, webviewTabConstants } from 'aws-core-vscode/amazonq'
1515

1616
describe('Amazon Q Chat', function () {
1717
let framework: qTestingFramework
@@ -60,7 +60,7 @@ describe('Amazon Q Chat', function () {
6060
})
6161

6262
it('Shows placeholder', () => {
63-
assert.deepStrictEqual(store.promptInputPlaceholder, 'Ask a question or enter "/" for quick actions')
63+
assert.deepStrictEqual(store.promptInputPlaceholder, webviewTabConstants.commonTabData.placeholder)
6464
})
6565

6666
it('Sends message', async () => {

packages/amazonq/test/e2e/amazonq/framework/jsdomInjector.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ export function injectJSDOM() {
4040
get() {
4141
return this.textContent
4242
},
43+
set(value) {
44+
this.textContent = value
45+
},
4346
})
4447

4548
// jsdom doesn't have support for structuredClone. See https://github.com/jsdom/jsdom/issues/3363

0 commit comments

Comments
 (0)