Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type" : "bugfix",
"description" : "Fix inline chat shortcut hint breaks selection on gateway"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

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

import com.intellij.idea.AppMode
import com.intellij.openapi.Disposable
import com.intellij.openapi.editor.event.SelectionEvent
import com.intellij.openapi.editor.event.SelectionListener
Expand All @@ -11,6 +12,7 @@ import software.aws.toolkits.jetbrains.services.cwc.inline.InlineChatEditorHint
class InlineChatSelectionListener : SelectionListener, Disposable {
private val inlineChatEditorHint = InlineChatEditorHint()
override fun selectionChanged(e: SelectionEvent) {
if (AppMode.isRemoteDevHost()) return

Check warning

Code scanning / QDJVMC

Unstable API Usage Warning

'com.intellij.idea.AppMode' is marked unstable with @ApiStatus.Internal

Check warning

Code scanning / QDJVMC

Unstable API Usage Warning

'isRemoteDevHost()' is declared in unstable class 'com.intellij.idea.AppMode' marked with @ApiStatus.Internal
val editor = e.editor
val selectionModel = editor.selectionModel

Expand Down
Loading