Skip to content

Commit 3904e34

Browse files
author
David Hasani
committed
address comments
1 parent 54bba3c commit 3904e34

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/core/src/codewhisperer/models/constants.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,9 @@ export const checkingForProjectsChatMessage = 'Checking for eligible projects...
570570
export const buildStartedChatMessage =
571571
'I am building your project. This can take up to 10 minutes, depending on the size of your project.'
572572

573+
export const buildStartedNotification =
574+
'Amazon Q is building your project. This can take up to 10 minutes, depending on the size of your project.'
575+
573576
export const buildSucceededChatMessage = 'I was able to build your project and will start transforming your code soon.'
574577

575578
export const buildSucceededNotification =

packages/core/src/codewhisperer/service/transformByQ/transformMavenHandler.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { CodeTransformTelemetryState } from '../../../amazonqGumby/telemetry/cod
1313
import { ToolkitError } from '../../../shared/errors'
1414
import { writeLogs } from './transformFileHandler'
1515
import { throwIfCancelled } from './transformApiHandler'
16-
import { sleep } from '../../../shared/utilities/timeoutUtils'
1716

1817
// run 'install' with either 'mvnw.cmd', './mvnw', or 'mvn' (if wrapper exists, we use that, otherwise we use regular 'mvn')
1918
function installProjectDependencies(dependenciesFolder: FolderInfo, modulePath: string) {
@@ -109,8 +108,8 @@ function copyProjectDependencies(dependenciesFolder: FolderInfo, modulePath: str
109108
}
110109

111110
export async function prepareProjectDependencies(dependenciesFolder: FolderInfo, rootPomPath: string) {
112-
// sleep for 0.5s to allow QCT to 1) process JAVA_HOME path and 2) send multiple chat messages
113-
await sleep(500)
111+
// use await to allow other chat messages to send as well, before the build starts
112+
await vscode.window.showInformationMessage(CodeWhispererConstants.buildStartedNotification)
114113
try {
115114
copyProjectDependencies(dependenciesFolder, rootPomPath)
116115
} catch (err) {

0 commit comments

Comments
 (0)