Skip to content

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
@github-actions
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 [email protected]

}
}

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