Skip to content

Commit cac600f

Browse files
dhasani23David Hasani
andauthored
fix(amazonq): minor text update (#7554)
## Problem Minor text update request. ## Solution Update text. --- - 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 <davhasan@amazon.com>
1 parent eaf969c commit cac600f

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

packages/core/src/amazonqGumby/chat/controller/messenger/messenger.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,10 @@ ${codeSnippet}
704704
}
705705

706706
public async sendCustomDependencyVersionMessage(tabID: string) {
707-
const message = CodeWhispererConstants.chooseConfigFileMessage
707+
let message = CodeWhispererConstants.chooseConfigFileMessageLibraryUpgrade
708+
if (transformByQState.getSourceJDKVersion() !== transformByQState.getTargetJDKVersion()) {
709+
message = CodeWhispererConstants.chooseConfigFileMessageJdkUpgrade
710+
}
708711
const buttons: ChatItemButton[] = []
709712

710713
buttons.push({

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,8 +646,11 @@ export const continueWithoutConfigFileMessage =
646646
export const receivedValidConfigFileMessage =
647647
'The dependency upgrade file looks good. I will use this information to upgrade the dependencies you specified.'
648648

649-
export const chooseConfigFileMessage =
650-
'Would you like to provide a custom dependency upgrade file? You can specify first-party dependencies to upgrade in a YAML file, and I will upgrade them during the JDK upgrade (for example, Java 8 to 17). You can initiate a separate transformation (17 to 17 or 21 to 21) after the initial JDK upgrade to transform third-party dependencies.\n\nWithout a YAML file, I can perform a minimum JDK upgrade, and then you can initiate a separate transformation to upgrade all third-party dependencies as part of a maximum transformation. For an example dependency upgrade file, see the [documentation](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/code-transformation.html#dependency-upgrade-file).'
649+
export const chooseConfigFileMessageJdkUpgrade =
650+
'Would you like to provide a dependency upgrade file? You can specify first party dependencies and their versions in a YAML file, and I will upgrade them during the JDK upgrade transformation. For an example dependency upgrade file, see the [documentation](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/code-transformation.html#dependency-upgrade-file).'
651+
652+
export const chooseConfigFileMessageLibraryUpgrade =
653+
'Would you like to provide a dependency upgrade file? You can specify third party dependencies and their versions in a YAML file, and I will only upgrade these dependencies during the library upgrade transformation. For an example dependency upgrade file, see the [documentation](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/code-transformation.html#dependency-upgrade-file).'
651654

652655
export const enterJavaHomePlaceholder = 'Enter the path to your Java installation'
653656

0 commit comments

Comments
 (0)