Skip to content

Conversation

samgst-amazon
Copy link
Contributor

Screenshot 2025-06-04 at 8 36 02 PM

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 June 5, 2025 03:44
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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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")
Copy link
Contributor

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?

Copy link
Contributor

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?

Copy link
Contributor

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

Copy link
Contributor Author

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.

@saurabhajmera
Copy link
Contributor

nit: should we say Q Chat is not supported in v2024.2.1 ?

Copy link

github-actions bot commented Jun 5, 2025

Qodana Community for JVM

1 new problem were found

Inspection name Severity Problems
Can be replaced with binary operator ◽️ Notice 1

💡 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]

}

override fun shouldBeAvailable(project: Project): Boolean = isQWebviewsAvailable()
override fun shouldBeAvailable(project: Project): Boolean = isQWebviewsAvailable() && isQSupportedInThisVersion()
Copy link
Contributor

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?

Copy link
Contributor Author

@samgst-amazon samgst-amazon Jun 5, 2025

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")
Copy link
Contributor

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?

@samgst-amazon
Copy link
Contributor Author

Not producing notification/modal since we can just display the update message directly in the Q panel.

samgst-amazon and others added 6 commits June 4, 2025 22:07
…ailable' into samgst/q-lsp-chat-webview-not-available

# Conflicts:
#	plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/QUtils.kt

return !(
currentBuild.baselineVersion == 242 &&
BuildNumber.fromString("242.22855.74")?.let { currentBuild.compareTo(it) < 0 } == true

Check notice

Code scanning / QDJVMC

Can be replaced with binary operator Note

Call can be replaced with binary operator
samgst-amazon and others added 2 commits June 4, 2025 23:52
…olkits/jetbrains/services/amazonq/QUtils.kt

Co-authored-by: Richard Li <[email protected]>
rli and others added 3 commits June 5, 2025 00:05
@manodnyab
Copy link
Contributor

manodnyab commented Jun 5, 2025

/retryBuilds

@manodnyab manodnyab merged commit a6d80b4 into feature/q-lsp-chat Jun 5, 2025
11 of 14 checks passed
@manodnyab manodnyab deleted the samgst/q-lsp-chat-webview-not-available branch June 5, 2025 09:54
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.

4 participants