-
Notifications
You must be signed in to change notification settings - Fork 274
fix(amazonq): confusing message during loading profiles #5552
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
Conversation
...at/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/QLoginWebview.kt
Fixed
Show fixed
Hide fixed
| // TODO: design and improve the API here | ||
|
|
||
| prepareUi(state: BrowserSetupData) { | ||
| prepareUi(state: any) { |
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.
?
|
|
||
| private fun handleListProfilesMessage() { | ||
| ApplicationManager.getApplication().executeOnPooledThread { | ||
| var errorMessage: String = "" |
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.
| var errorMessage: String = "" | |
| var errorMessage = "" |
| { | ||
| stage: '$stage', | ||
| regions: $regions, | ||
| idcInfo: { | ||
| profileName: '${lastLoginIdcInfo.profileName}', | ||
| startUrl: '${lastLoginIdcInfo.startUrl}', | ||
| region: '${lastLoginIdcInfo.region}' | ||
| }, | ||
| cancellable: ${state.browserCancellable}, | ||
| feature: '${state.feature}', | ||
| existConnections: ${writeValueAsString(selectionSettings.values.map { it.currentSelection }.toList())}, | ||
| } |
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.
want to make all these messages from ide to webview typesafe as well, future work
| { | ||
| stage: 'PROFILE_SELECT', | ||
| status: '${if (profiles != null) "succeeded" else "failed"}', | ||
| profiles: ${writeValueAsString(profiles ?: "")}, | ||
| errorMessage: '$errorMessage' | ||
| } |
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.
ideally should polymorphism but haven't got enough time to figure it out
Co-authored-by: Richard Li <[email protected]>
Types of changes
Description
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.