From 2748e23311705f8baffc369119665f7a035de8b4 Mon Sep 17 00:00:00 2001 From: "Gregory.Shrago" Date: Tue, 15 Jul 2025 04:43:46 +0400 Subject: [PATCH] [analyzer] Fix IOOBE in setTrace notification GitOrigin-RevId: d571258269284664d678c66c87e581a83f0acf83 --- .../src/main/com/jetbrains/lsp/protocol/LogTrace.kt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/fleet/lsp.protocol/src/main/com/jetbrains/lsp/protocol/LogTrace.kt b/fleet/lsp.protocol/src/main/com/jetbrains/lsp/protocol/LogTrace.kt index c61a1b47093b..e1a70b2d59a5 100644 --- a/fleet/lsp.protocol/src/main/com/jetbrains/lsp/protocol/LogTrace.kt +++ b/fleet/lsp.protocol/src/main/com/jetbrains/lsp/protocol/LogTrace.kt @@ -15,8 +15,16 @@ data class LogTraceParams( val verbose: String? ) +@Serializable +data class SetTraceParams( + /** + * The new value that should be assigned to the trace setting. + */ + val value: TraceValue, +) + val LogTraceNotificationType: NotificationType = NotificationType("\$/logTrace", LogTraceParams.serializer()) -val SetTraceNotificationType: NotificationType = - NotificationType("\$/setTrace", TraceValue.serializer()) \ No newline at end of file +val SetTraceNotificationType: NotificationType = + NotificationType("\$/setTrace", SetTraceParams.serializer()) \ No newline at end of file