Skip to content

fix(amazonq): avoid using modeled types in chat message proxy #5710

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

Merged
merged 3 commits into from
May 13, 2025

Conversation

rli
Copy link
Contributor

@rli rli commented May 13, 2025

There is a high possibiltiy of drift in our modeling as the UI <-> Server evolves.

To avoid a treadmill in making sure these are always up to date, avoid materializing these messages into concrete types

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

There is a high possibiltiy of drift in our modeling as the UI <-> Server evolves.

To avoid a treadmill in making sure these are always up to date,
avoid materializing these messages into concrete types
@rli rli requested review from a team as code owners May 13, 2025 08:13
Copy link

github-actions bot commented May 13, 2025

Qodana Community for JVM

5 new problems were found

Inspection name Severity Problems
Unused symbol 🔶 Warning 5

💡 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 qodana-support@jetbrains.com

}
}

val sendChatPrompt = JsonRpcRequest(

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Property "sendChatPrompt" is never used
String::class.java
)

val sendQuickAction = JsonRpcRequest(

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Property "sendQuickAction" is never used
Any::class.java
)

val getSerializedActions = JsonRpcRequest(

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Property "getSerializedActions" is never used
fun <T> executeIfRunning(project: Project, runnable: AmazonQLspService.(AmazonQLanguageServer) -> T): T? =
project.serviceIfCreated<AmazonQLspService>()?.executeSync(runnable)

suspend fun <T> asyncExecuteIfRunning(project: Project, runnable: suspend AmazonQLspService.(AmazonQLanguageServer) -> T): T? =

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Function "asyncExecuteIfRunning" is never used
val error: OpenTabResultErrorError,
)

data class OpenTabResultErrorError(
Copy link
Contributor

Choose a reason for hiding this comment

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

nit:

Suggested change
data class OpenTabResultErrorError(
data class OpenTabResultErrorData(

@rli rli merged commit 241386d into feature/q-lsp-chat May 13, 2025
2 of 9 checks passed
@rli rli deleted the rli/deserializer-nonsense branch May 13, 2025 21:02
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