-
Notifications
You must be signed in to change notification settings - Fork 272
fix(amazonq): make q chat unavalable in IDE version 2024.2.1 #5788
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): make q chat unavalable in IDE version 2024.2.1 #5788
Conversation
q.sign.in=Get Started | ||
q.ui.prompt.transform=/transform | ||
q.unavailable=\ Not supported in v2023.2.0 | ||
q.unavailable=\ Q Chat not supported in v2024.2.1 |
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.
q.unavailable=\ Q Chat not supported in v2024.2.1 | |
q.unavailable=\ Amazon Q Chat not supported in v2024.2.1 |
|
||
fun isQSupportedInThisVersion(): Boolean = ApplicationInfo.getInstance().build.asStringWithoutProductCode() !in unSupportedIdeVersionInQ | ||
|
||
val unSupportedIdeVersionInQ = listOf("242.21829.142") |
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.
can we do startswith 242.1, as in do we know for sure it's only this specific version?
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.
mv == "242" && version < 242.22855.74?
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.
242.21829.142 maps to 242.1
242.22855.74 is 242.2
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.
changed to check for earlier 242 versions.
nit: should we say |
Qodana Community for JVM1 new problem were found
💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at [email protected]
|
} | ||
|
||
override fun shouldBeAvailable(project: Project): Boolean = isQWebviewsAvailable() | ||
override fun shouldBeAvailable(project: Project): Boolean = isQWebviewsAvailable() && isQSupportedInThisVersion() |
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.
doesnt this prevent the panel from being available at all?
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 only added this because I saw it here: https://github.com/aws/aws-toolkit-jetbrains-staging/pull/1769/files
but you're right when its true it removes the Q chat panel completely. Too confusing for cxs.
|
||
fun isQSupportedInThisVersion(): Boolean = ApplicationInfo.getInstance().build.asStringWithoutProductCode() !in unSupportedIdeVersionInQ | ||
|
||
val unSupportedIdeVersionInQ = listOf("242.21829.142") |
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.
mv == "242" && version < 242.22855.74?
Not producing notification/modal since we can just display the update message directly in the Q panel. |
…ailable' into samgst/q-lsp-chat-webview-not-available # Conflicts: # plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/QUtils.kt
...nq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/QUtils.kt
Outdated
Show resolved
Hide resolved
…olkits/jetbrains/services/amazonq/QUtils.kt Co-authored-by: Richard Li <[email protected]>
plugins/core/resources/resources/software/aws/toolkits/resources/MessagesBundle.properties
Outdated
Show resolved
Hide resolved
…es/MessagesBundle.properties
…ailable' into samgst/q-lsp-chat-webview-not-available
/retryBuilds |
Types of changes
Description
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.