Skip to content

Commit c64e337

Browse files
author
David Hasani
committed
quick plan fix
1 parent 04b25e1 commit c64e337

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,14 @@ export async function pollTransformationJob(jobId: string, validStates: string[]
703703
// final plan is complete; show to user
704704
isPlanComplete = true
705705
}
706+
// for JDK upgrades without a YAML file, we show a static plan so no need to keep refreshing it
707+
if (
708+
plan &&
709+
transformByQState.getSourceJDKVersion() !== transformByQState.getTargetJDKVersion() &&
710+
!transformByQState.getCustomDependencyVersionFilePath()
711+
) {
712+
isPlanComplete = true
713+
}
706714
}
707715

708716
if (validStates.includes(status)) {

0 commit comments

Comments
 (0)