Skip to content

Conversation

@andrewyuq
Copy link
Contributor

@andrewyuq andrewyuq commented Oct 25, 2024

  1. perceivedLatency was previously calculated at the time of sending STE, but the timeOfLastCharTyped value is no longer accurate, so calculate the perceivedLatency value at suggestion showing time to get the most accurate timeOfLastCharTyped

VSC PR: aws/aws-toolkit-vscode#5871

Types of changes

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

Description

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.

1. perceivedLatency was previously calculated at
the time of sending STE, but the timeOfLastCharTyped value
is no longer accurate, so calculate the perceivedLatency value
at suggestion showing time to get the most accurate timeOfLastCharTyped
@andrewyuq andrewyuq requested a review from a team as a code owner October 25, 2024 21:45
justinmk3 pushed a commit to aws/aws-toolkit-vscode that referenced this pull request Oct 28, 2024


The perceivedLatency is currently calculated and sent when we send STE,
by then lastUserModificationTime is no longer accurate. Instead
calculate perceivedLatency when we show the suggestions and use the
lastUserModificationTime at that time to be accurate.

JB PR: aws/aws-toolkit-jetbrains#5013
Comment on lines +127 to +129
private fun connection(project: Project) =
ToolkitConnectionManager.getInstance(project).activeConnectionForFeature(QConnection.getInstance())

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think codewhispererconnection is safer, not sure if population has aged out of that one yet

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are deprecating 233 I think it's probably safe by now

@andrewyuq andrewyuq merged commit 2d679ef into aws:main Oct 29, 2024
12 of 13 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