-
Couldn't load subscription status.
- Fork 273
fix(amazonq): implement logic so aws/chat/openTab returns correct tabID to server #5658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(amazonq): implement logic so aws/chat/openTab returns correct tabID to server #5658
Conversation
…ions' into samsgt/q-lsp-chat-openTab-impl
| companion object { | ||
| private val LOG = getLogger<AmazonQLanguageClientImpl>() | ||
|
|
||
| private val pendingTabRequests = ConcurrentHashMap<String, CompletableFuture<OpenTabResult>>() |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea. done
Qodana Community for JVMIt 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 Contact Qodana teamContact us at [email protected]
|
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
Description
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.