Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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" : "Skip inline completion when deleting characters"
}
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,13 @@
CodeWhispererInvocationStatus.getInstance().setIsInvokingQInline(session, false)
}

if (request.event is InlineCompletionEvent.Backspace) {

Check warning on line 407 in plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/popup/QInlineCompletionProvider.kt

View workflow job for this annotation

GitHub Actions / qodana

Unstable API Usage

'com.intellij.codeInsight.inline.completion.InlineCompletionEvent.Backspace' is marked unstable with @ApiStatus.Experimental
logInline(triggerSessionId) {
"Skip inline completion when deleting"
}
return InlineCompletionSuggestion.Empty
}

val sessionContext = InlineCompletionSessionContext(triggerOffset = request.endOffset)

// Pagination workaround: Always return exactly 5 variants
Expand Down
Loading