Skip to content

Commit ca1a4f6

Browse files
authored
Fix issue where Amazon Q Chat does not appear in IDEs other than IntelliJ IDEA (#4219)
CodeTransform services are only availble in Java-IDEs, so chat initialization was failing to load the relevant services. Temporarily fix by skipping the /transform command when the Java module is not available and being more defensive during panel initialization
1 parent 917ae5b commit ca1a4f6

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Fix issue where Amazon Q Chat does not appear in IDEs other than IntelliJ IDEA (#4218)"
4+
}

plugins/amazonq/chat/jetbrains-community/resources/META-INF/plugin-chat.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
<extensions defaultExtensionNs="aws.toolkit.amazonq">
2626
<appFactory implementation="software.aws.toolkits.jetbrains.services.cwc.AppFactory" />
2727
<appFactory implementation="software.aws.toolkits.jetbrains.services.amazonqFeatureDev.FeatureDevAppFactory" />
28-
<appFactory implementation="software.aws.toolkits.jetbrains.services.codemodernizer.CodeTransformChatAppFactory" />
2928
</extensions>
3029

3130
<actions>

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/toolwindow/AppSource.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,9 @@ import software.aws.toolkits.jetbrains.services.amazonq.apps.AmazonQAppFactory
99

1010
class AppSource {
1111
private val extensionPointName = ExtensionPointName.create<AmazonQAppFactory>("aws.toolkit.amazonq.appFactory")
12-
fun getApps(project: Project) = extensionPointName.extensionList.map { it.createApp(project) }
12+
fun getApps(project: Project) = buildList {
13+
extensionPointName.forEachExtensionSafe {
14+
add(it.createApp(project))
15+
}
16+
}
1317
}

plugins/amazonq/codetransform/jetbrains-community/resources/META-INF/ext-codetransform-java.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
<fileEditorProvider implementation="software.aws.toolkits.jetbrains.services.codemodernizer.summary.CodeModernizerSummaryEditorProvider"/>
2424
</extensions>
2525

26+
<extensions defaultExtensionNs="aws.toolkit.amazonq">
27+
<appFactory implementation="software.aws.toolkits.jetbrains.services.codemodernizer.CodeTransformChatAppFactory" />
28+
</extensions>
29+
2630
<actions>
2731
<group id="aws.toolkit.codemodernizer.toolbar">
2832
<action

0 commit comments

Comments
 (0)