Skip to content

Commit 56ec976

Browse files
Merge branch 'main' into samgst/dev-profile-e2e-tests
2 parents f43d438 + a2fb39a commit 56ec976

File tree

5 files changed

+148
-89
lines changed

5 files changed

+148
-89
lines changed

.github/workflows/prerelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
matrix:
2020
build_target: [ ':plugin-core:buildPlugin', ':plugin-toolkit:intellij-standalone:buildPlugin', ':plugin-amazonq:buildPlugin' ]
21-
version: [ '2024.2', '2024.3', '2025.1' ]
21+
version: [ '2024.2', '2024.3', '2025.1', '2025.2' ]
2222
runs-on: ubuntu-latest
2323
steps:
2424
- uses: actions/checkout@v4

plugins/amazonq/codewhisperer/jetbrains-community/src-242/software/aws/toolkits/jetbrains/services/codewhisperer/popup/QManualCall.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ import software.aws.toolkits.jetbrains.services.codewhisperer.popup.QInlineCompl
1010
fun InlineCompletionEvent.isManualCall(): Boolean =
1111
this is InlineCompletionEvent.DirectCall && this.context?.getData(DATA_KEY_Q_AUTO_TRIGGER_INTELLISENSE) == false
1212

13+
fun InlineCompletionEvent.isIntelliSense(): Boolean =
14+
this is InlineCompletionEvent.DirectCall && this.context?.getData(DATA_KEY_Q_AUTO_TRIGGER_INTELLISENSE) == true
15+
1316
fun getManualCallEvent(editor: Editor, isIntelliSenseAccept: Boolean): InlineCompletionEvent {
1417
val dataContext = DataContext { dataId ->
1518
when (dataId) {

plugins/amazonq/codewhisperer/jetbrains-community/src-243+/software/aws/toolkits/jetbrains/services/codewhisperer/popup/QManualCall.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ import software.aws.toolkits.jetbrains.services.codewhisperer.popup.QInlineCompl
1111
fun InlineCompletionEvent.isManualCall(): Boolean =
1212
this is InlineCompletionEvent.ManualCall && this.additionalData.getUserData(KEY_Q_AUTO_TRIGGER_INTELLISENSE) == false
1313

14+
fun InlineCompletionEvent.isIntelliSense(): Boolean =
15+
this is InlineCompletionEvent.ManualCall && this.additionalData.getUserData(KEY_Q_AUTO_TRIGGER_INTELLISENSE) == true
16+
1417
fun getManualCallEvent(editor: Editor, isIntelliSenseAccept: Boolean): InlineCompletionEvent {
1518
val data = UserDataHolderBase().apply { this.putUserData(KEY_Q_AUTO_TRIGGER_INTELLISENSE, isIntelliSenseAccept) }
1619
return InlineCompletionEvent.ManualCall(editor, Q_INLINE_PROVIDER_ID, data)

0 commit comments

Comments
 (0)