Skip to content

Commit e72fece

Browse files
Merge master into feature/amazonqLSP
2 parents b19d52b + 27a698f commit e72fece

File tree

22 files changed

+198
-57
lines changed

22 files changed

+198
-57
lines changed

.github/workflows/filterDuplicates.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ async function run() {
111111
console.log('%s duplicates found', filteredDuplicates.length)
112112
if (filteredDuplicates.length > 0) {
113113
console.log(formatDuplicates(filteredDuplicates, commitHash, repoName))
114+
console.log(
115+
'* Hint: if these duplicates appear unrelated to the changes, rebase onto or merge in the latest target branch.'
116+
)
114117
process.exit(1)
115118
}
116119
}

package-lock.json

Lines changed: 4 additions & 4 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.305",
44+
"@aws-toolkits/telemetry": "^1.0.307",
4545
"@playwright/browser-chromium": "^1.43.1",
4646
"@stylistic/eslint-plugin": "^2.11.0",
4747
"@types/he": "^1.2.3",
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": "Amazon Q chat: Create a new prompt form does not autofocus or submit with Enter press"
4+
}
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": "/review: Zip files are created with the wrong file path for file scans in multifolder workspaces."
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "/review: show code diff for fix preview"
4+
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { loginToIdC } from './utils/setup'
1414
import { webviewConstants, webviewTabConstants } from 'aws-core-vscode/amazonq'
1515

1616
describe('Amazon Q Chat', function () {
17+
this.retries(3)
1718
let framework: qTestingFramework
1819
let tab: Messenger
1920
let store: MynahUIDataModel

packages/amazonq/test/e2e/inline/inline.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ import { Commands, globals, sleep, waitUntil, collectionUtil } from 'aws-core-vs
1919
import { loginToIdC } from '../amazonq/utils/setup'
2020

2121
describe('Amazon Q Inline', async function () {
22-
let tempFolder: string
2322
const retries = 3
23+
this.retries(retries)
24+
25+
let tempFolder: string
2426
const waitOptions = {
2527
interval: 500,
2628
timeout: 10000,

packages/core/src/amazonq/webview/ui/apps/cwChatConnector.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,29 @@ export class Connector extends BaseConnector {
160160
)
161161
}
162162

163+
onFormTextualItemKeyPress = (
164+
tabId: string,
165+
event: KeyboardEvent,
166+
formData: Record<string, string>,
167+
itemId: string,
168+
eventId?: string
169+
) => {
170+
if (itemId === 'prompt-name' && event.key === 'Enter') {
171+
event.preventDefault()
172+
this.sendMessageToExtension({
173+
command: 'form-action-click',
174+
action: {
175+
id: 'submit-create-prompt',
176+
formItemValues: formData,
177+
},
178+
tabType: this.getTabType(),
179+
tabID: tabId,
180+
})
181+
return true
182+
}
183+
return false
184+
}
185+
163186
handleMessageReceive = async (messageData: any): Promise<void> => {
164187
if (messageData.type === 'chatMessage') {
165188
await this.processChatMessage(messageData)

packages/core/src/amazonq/webview/ui/apps/testChatConnector.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ export class Connector extends BaseConnector {
162162
body: messageData.message,
163163
canBeVoted: false,
164164
informationCard: messageData.informationCard,
165+
buttons: messageData.buttons ?? [],
165166
}
166167
this.onChatAnswerReceived(messageData.tabID, answer, messageData)
167168
}

0 commit comments

Comments
 (0)