Skip to content

Commit 226f20c

Browse files
committed
add change log
1 parent cfada72 commit 226f20c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
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 inline chat shortcut hint breaks selection on gateway"
4+
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ import software.aws.toolkits.jetbrains.services.cwc.inline.InlineChatEditorHint
1212
class InlineChatSelectionListener : SelectionListener, Disposable {
1313
private val inlineChatEditorHint = InlineChatEditorHint()
1414
override fun selectionChanged(e: SelectionEvent) {
15+
if (AppMode.isRemoteDevHost()) return
1516
val editor = e.editor
1617
val selectionModel = editor.selectionModel
1718

18-
if (selectionModel.hasSelection() && !AppMode.isRemoteDevHost()) {
19+
if (selectionModel.hasSelection()) {
1920
inlineChatEditorHint.show(editor)
2021
} else {
2122
inlineChatEditorHint.hide()

0 commit comments

Comments
 (0)