Skip to content

Commit 1b266b2

Browse files
zixlin7rli
andauthored
fix(amazonq): hide inline chat shortcut hint on remote/gateway (#5034)
* hide inline chat shortcut hint on remote/gateway * add change log * Update .changes/next-release/bugfix-bc45640b-9877-43e5-b6cd-8b7dc35c570b.json Co-authored-by: Richard Li <[email protected]> --------- Co-authored-by: Richard Li <[email protected]>
1 parent fcb4f88 commit 1b266b2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
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 breaking text selection on remote editors"
4+
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
package software.aws.toolkits.jetbrains.services.cwc.inline.listeners
55

6+
import com.intellij.idea.AppMode
67
import com.intellij.openapi.Disposable
78
import com.intellij.openapi.editor.event.SelectionEvent
89
import com.intellij.openapi.editor.event.SelectionListener
@@ -11,6 +12,7 @@ import software.aws.toolkits.jetbrains.services.cwc.inline.InlineChatEditorHint
1112
class InlineChatSelectionListener : SelectionListener, Disposable {
1213
private val inlineChatEditorHint = InlineChatEditorHint()
1314
override fun selectionChanged(e: SelectionEvent) {
15+
if (AppMode.isRemoteDevHost()) return
1416
val editor = e.editor
1517
val selectionModel = editor.selectionModel
1618

0 commit comments

Comments
 (0)