Skip to content

Commit 8327fdc

Browse files
dhasani23David Hasani
andauthored
fix(amazonq): let chat update after entering jdk path (#6562)
## Problem After entering JDK path, chat is sometimes frozen until the local build completes. ## Solution Pause after user enters JDK path, to give chat time to update before starting the local build. --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license. Co-authored-by: David Hasani <[email protected]>
1 parent 3f45c37 commit 8327fdc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

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

1718
// run 'install' with either 'mvnw.cmd', './mvnw', or 'mvn' (if wrapper exists, we use that, otherwise we use regular 'mvn')
1819
function installProjectDependencies(dependenciesFolder: FolderInfo, modulePath: string) {
@@ -110,6 +111,8 @@ function copyProjectDependencies(dependenciesFolder: FolderInfo, modulePath: str
110111
export async function prepareProjectDependencies(dependenciesFolder: FolderInfo, rootPomPath: string) {
111112
await setMaven()
112113
getLogger().info('CodeTransformation: running Maven copy-dependencies')
114+
// pause to give chat time to update
115+
await sleep(100)
113116
try {
114117
copyProjectDependencies(dependenciesFolder, rootPomPath)
115118
} catch (err) {

0 commit comments

Comments
 (0)