Skip to content

Commit bf8f353

Browse files
committed
hide inline chat shortcut hint on remote/gateway
1 parent e121827 commit bf8f353

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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
@@ -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
@@ -14,7 +15,7 @@ class InlineChatSelectionListener : SelectionListener, Disposable {
1415
val editor = e.editor
1516
val selectionModel = editor.selectionModel
1617

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

0 commit comments

Comments
 (0)