Skip to content

Commit 600c97a

Browse files
committed
pr feedback
1 parent a72c118 commit 600c97a

File tree

4 files changed

+4
-17
lines changed

4 files changed

+4
-17
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/cwc/inline/InlineChatActionPromoter.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import com.intellij.openapi.keymap.KeymapUtil
1010
import com.intellij.openapi.util.SystemInfo
1111

1212
class InlineChatActionPromoter : ActionPromoter {
13+
// temporary until we find a better key binding
1314
override fun promote(actions: MutableList<out AnAction>, context: DataContext): MutableList<AnAction> {
1415
val results = actions.toMutableList()
1516
val shortCut = KeymapUtil.getShortcutText("aws.toolkit.jetbrains.core.services.cwc.inline.openChat")

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/cwc/inline/InlineChatEditorHint.kt

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,9 @@ class InlineChatEditorHint {
6767
coloredText.appendToComponent(component)
6868
val shortcutComponent = HintUtil.createInformationComponent()
6969
val shortCut = KeymapUtil.getShortcutText("aws.toolkit.jetbrains.core.services.cwc.inline.openChat")
70-
if (shortCut == "⌘I") {
71-
val shortCutIcon = AwsIcons.Resources.InlineChat.AWS_Q_INLINECHAT_SHORTCUT
72-
shortcutComponent.isIconOnTheRight = true
73-
shortcutComponent.icon = shortCutIcon
74-
} else {
75-
val shortcutText =
76-
SimpleColoredText(shortCut, SimpleTextAttributes.REGULAR_ATTRIBUTES)
77-
shortcutText.appendToComponent(shortcutComponent)
78-
}
70+
val shortcutText =
71+
SimpleColoredText(shortCut, SimpleTextAttributes.REGULAR_ATTRIBUTES)
72+
shortcutText.appendToComponent(shortcutComponent)
7973

8074
val panel = JPanel(BorderLayout()).apply {
8175
add(component, BorderLayout.WEST)

plugins/core/jetbrains-community/resources/icons/resources/inlinechat/amazonq_inline_chat_shortcut.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

plugins/core/jetbrains-community/src/icons/AwsIcons.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,6 @@ object AwsIcons {
125125

126126
@JvmField val SEVERITY_CRITICAL = load("/icons/resources/codewhisperer/severity-critical.svg")
127127
}
128-
129-
object InlineChat {
130-
@JvmField val AWS_Q_INLINECHAT_SHORTCUT = load("/icons/resources/inlinechat/amazonq_inline_chat_shortcut.svg")
131-
}
132128
}
133129

134130
object Actions {

0 commit comments

Comments
 (0)