Skip to content

Conversation

leigaol
Copy link
Contributor

@leigaol leigaol commented Jul 2, 2025

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Description

Previous before LSP inline completion migration, we do not make auto trigger when deleting characters. But after LSP inline migration, we are making such triggers. These triggers are not what backend expects, it triggers more, causing server side throttling, and the quality isn't good.

Now we are bringing back the previous auto trigger conditions.

This entire file does not have unit test and the getSuggestion method is integrated with JB inline completion API which makes it hard to add unit test. The test was done manually.

Checklist

  • My code follows the code style of this project
  • I have added tests to cover my changes
  • A short description of the change has been added to the CHANGELOG if the change is customer-facing in the IDE.
  • I have added metrics for my changes (if required)

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

@leigaol leigaol requested review from a team as code owners July 2, 2025 18:57
@leigaol leigaol marked this pull request as draft July 2, 2025 20:17
@leigaol leigaol marked this pull request as ready for review July 2, 2025 20:59
}

fun InlineCompletionEvent.isDeletion(): Boolean =
this is InlineCompletionEvent.Backspace

Check warning

Code scanning / QDJVMC

Unstable API Usage Warning

'com.intellij.codeInsight.inline.completion.InlineCompletionEvent.Backspace' is marked unstable with @ApiStatus.Experimental
@samgst-amazon samgst-amazon merged commit d2ecf2e into aws:main Jul 2, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants