Skip to content

Commit a5bfcc3

Browse files
Merge main into feature/q-dev-execution
2 parents adebb94 + 1b266b2 commit a5bfcc3

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)