Skip to content

Conversation

@rli
Copy link
Contributor

@rli rli commented May 9, 2025

Due to mix of Jackson and Gson, history is not rendered correctly due to incorrect deserialization of enums

License

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

…t ui

Due to mix of Jackson and Gson, history is not rendered correctly due to incorrect deserialization of enums
@rli rli requested review from a team as code owners May 9, 2025 00:55
…-history-restore

 Conflicts:
	plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLanguageClientImpl.kt
@github-actions
Copy link

github-actions bot commented May 9, 2025

Qodana Community for JVM

21 new problems were found

Inspection name Severity Problems
Unused symbol 🔶 Warning 21

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


enum class AuthFollowupType(val value: String) {
@JsonAdapter(EnumJsonValueAdapter::class)
enum class AuthFollowupType(@JsonValue val repr: String) {

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Property "repr" is never used
@JsonProperty("calendar")
CALENDAR,
@JsonAdapter(EnumJsonValueAdapter::class)
enum class IconType(@JsonValue val repr: String) {

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Property "repr" is never used
@JsonAdapter(EnumJsonValueAdapter::class)
enum class IconType(@JsonValue val repr: String) {
FILE("file"),
FOLDER("folder"),

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Class "FOLDER" is never used
FILE("file"),
FOLDER("folder"),
CODE_BLOCK("code-block"),
LIST_ADD("list-add"),

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Class "LIST_ADD" is never used
FOLDER("folder"),
CODE_BLOCK("code-block"),
LIST_ADD("list-add"),
MAGIC("magic"),

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Class "MAGIC" is never used
CODE_BLOCK("code-block"),
LIST_ADD("list-add"),
MAGIC("magic"),
HELP("help"),

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Class "HELP" is never used
LIST_ADD("list-add"),
MAGIC("magic"),
HELP("help"),
TRASH("trash"),

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Class "TRASH" is never used
MAGIC("magic"),
HELP("help"),
TRASH("trash"),
SEARCH("search"),

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Class "SEARCH" is never used
HELP("help"),
TRASH("trash"),
SEARCH("search"),
CALENDAR("calendar"),

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Class "CALENDAR" is never used

enum class ConversationAction(val value: String) {
@JsonAdapter(EnumJsonValueAdapter::class)
enum class ConversationAction(@JsonValue val repr: String) {

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Property "repr" is never used

enum class SerializedChatFormat(val value: String) {
@JsonAdapter(EnumJsonValueAdapter::class)
enum class SerializedChatFormat(@JsonValue val repr: String) {

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Class "SerializedChatFormat" is never used

enum class SerializedChatFormat(val value: String) {
@JsonAdapter(EnumJsonValueAdapter::class)
enum class SerializedChatFormat(@JsonValue val repr: String) {

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Property "repr" is never used

enum class TabBarAction(val value: String) {
@JsonAdapter(EnumJsonValueAdapter::class)
enum class TabBarAction(@JsonValue val repr: String) {

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Class "TabBarAction" is never used

enum class TabBarAction(val value: String) {
@JsonAdapter(EnumJsonValueAdapter::class)
enum class TabBarAction(@JsonValue val repr: String) {

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Property "repr" is never used
// https://github.com/aws/language-server-runtimes/blob/main/chat-client-ui-types/src/uiContracts.ts#L27
enum class TriggerType(val value: String) {
@JsonAdapter(EnumJsonValueAdapter::class)
enum class TriggerType(@JsonValue val repr: String) {

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Property "repr" is never used
@rli rli merged commit 25ee578 into feature/q-lsp-chat May 9, 2025
13 of 16 checks passed
@rli rli deleted the rli/fix-history-restore branch May 9, 2025 21:18
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