Skip to content

Commit

Permalink
fix(amazonq): respond in chat right away when user enters JDK path
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hasani committed Dec 18, 2024
1 parent cfa53f1 commit 54bba3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "Bug Fix",
"description": "Amazon Q Code Transformation: respond immediately when entering JAVA_HOME path"
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { CodeTransformTelemetryState } from '../../../amazonqGumby/telemetry/cod
import { ToolkitError } from '../../../shared/errors'
import { writeLogs } from './transformFileHandler'
import { throwIfCancelled } from './transformApiHandler'
import { sleep } from '../../../shared/utilities/timeoutUtils'

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

export async function prepareProjectDependencies(dependenciesFolder: FolderInfo, rootPomPath: string) {
// sleep for 0.5s to allow QCT to 1) process JAVA_HOME path and 2) send multiple chat messages
await sleep(500)
try {
copyProjectDependencies(dependenciesFolder, rootPomPath)
} catch (err) {
Expand Down

0 comments on commit 54bba3c

Please sign in to comment.