Skip to content

Conversation

@samgst-amazon
Copy link
Contributor

This adds a requestID to the browser message that we post from this request.
a hashmap is used to track requestID's to the result that will be returned.
To match VSC a 30 second timeout is added in case the browser does not return the message.

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.

@samgst-amazon samgst-amazon requested review from a team as code owners April 30, 2025 01:28
companion object {
private val LOG = getLogger<AmazonQLanguageClientImpl>()

private val pendingTabRequests = ConcurrentHashMap<String, CompletableFuture<OpenTabResult>>()
Copy link
Contributor

Choose a reason for hiding this comment

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

Why can't this be a queue/list?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't understand why/how that would be better here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of here, can we maintain this as part of the chat communication manager since that's a service?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good idea. done

@github-actions
Copy link

github-actions bot commented Apr 30, 2025

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@samgst-amazon samgst-amazon merged commit 09be52d into feature/q-lsp-chat May 2, 2025
14 of 16 checks passed
@samgst-amazon samgst-amazon deleted the samsgt/q-lsp-chat-openTab-impl branch May 2, 2025 06:11
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.

2 participants