-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into rli/add-otel
Conflicts: plugins/core/jetbrains-community/build.gradle.kts plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/services/telemetry/otel/OtelBase.kt plugins/core/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/telemetry/otel/OtelBaseTest.kt
- Loading branch information
Showing
19 changed files
with
168 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"date" : "2024-10-30", | ||
"version" : "3.36", | ||
"entries" : [ { | ||
"type" : "bugfix", | ||
"description" : "Fix inline chat default key binding not working on windows and linux" | ||
} ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"date" : "2024-10-31", | ||
"version" : "3.37", | ||
"entries" : [ { | ||
"type" : "bugfix", | ||
"description" : "Amazon Q /dev: Fix the issue resulting in the first request per conversation to /dev failing" | ||
}, { | ||
"type" : "bugfix", | ||
"description" : "Fix inline chat shortcut hint breaking text selection on remote editors" | ||
} ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...unity/src/software/aws/toolkits/jetbrains/services/cwc/inline/InlineChatActionPromoter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package software.aws.toolkits.jetbrains.services.cwc.inline | ||
|
||
import com.intellij.openapi.actionSystem.ActionPromoter | ||
import com.intellij.openapi.actionSystem.AnAction | ||
import com.intellij.openapi.actionSystem.CommonDataKeys | ||
import com.intellij.openapi.actionSystem.DataContext | ||
import com.intellij.openapi.keymap.KeymapUtil | ||
import com.intellij.openapi.util.SystemInfo | ||
|
||
class InlineChatActionPromoter : ActionPromoter { | ||
// temporary until we find a better key binding | ||
override fun promote(actions: MutableList<out AnAction>, context: DataContext): MutableList<AnAction> { | ||
val results = actions.toMutableList() | ||
if (context.getData(CommonDataKeys.EDITOR) == null || | ||
context.getData(CommonDataKeys.PROJECT) == null | ||
) { | ||
return results | ||
} | ||
val shortCut = KeymapUtil.getShortcutText("aws.toolkit.jetbrains.core.services.cwc.inline.openChat") | ||
// only promote for the default key bindings | ||
if (SystemInfo.isMac && shortCut != "⌘I") return results | ||
if (!SystemInfo.isMac && shortCut != "Ctrl+I") return results | ||
|
||
results.sortWith { a, b -> | ||
when { | ||
isOpenChatInputAction(a) -> -1 | ||
isOpenChatInputAction(b) -> 1 | ||
else -> 0 | ||
} | ||
} | ||
return results | ||
} | ||
|
||
private fun isOpenChatInputAction(action: AnAction): Boolean = | ||
action is OpenChatInputAction | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
...community/resources/icons/resources/inlinechat/amazonq_inline_chat_shortcut.svg
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.