From ab90c853925db82a75b39c667490147c1959f5ce Mon Sep 17 00:00:00 2001 From: Bartek Pacia Date: Fri, 30 Jan 2026 21:08:14 +0100 Subject: [PATCH] docs [lsp]: link to LSP spec from LogTrace.kt also refromat the file GitOrigin-RevId: fc98f95db70992e9f1bb74dca560ccb09f5a8e0b --- .../com/jetbrains/lsp/protocol/LogTrace.kt | 39 ++++++++++++------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/fleet/lsp.protocol/srcCommonMain/com/jetbrains/lsp/protocol/LogTrace.kt b/fleet/lsp.protocol/srcCommonMain/com/jetbrains/lsp/protocol/LogTrace.kt index e1a70b2d59a5..5ea9aca8bba0 100644 --- a/fleet/lsp.protocol/srcCommonMain/com/jetbrains/lsp/protocol/LogTrace.kt +++ b/fleet/lsp.protocol/srcCommonMain/com/jetbrains/lsp/protocol/LogTrace.kt @@ -2,17 +2,20 @@ package com.jetbrains.lsp.protocol import kotlinx.serialization.Serializable +/** + * @see logTraceParams (LSP spec) + */ @Serializable data class LogTraceParams( - /** - * The message to be logged. - */ - val message: String, - /** - * Additional information that can be computed if the `trace` configuration - * is set to `"verbose"` - */ - val verbose: String? + /** + * The message to be logged. + */ + val message: String, + /** + * Additional information that can be computed if the `trace` configuration + * is set to `"verbose"` + */ + val verbose: String?, ) @Serializable @@ -23,8 +26,18 @@ data class SetTraceParams( val value: TraceValue, ) -val LogTraceNotificationType: NotificationType = - NotificationType("\$/logTrace", LogTraceParams.serializer()) +/** + * @see $/logTrace (LSP spec) + */ +val LogTraceNotificationType: NotificationType = NotificationType( + method = "$/logTrace", + paramsSerializer = LogTraceParams.serializer(), +) -val SetTraceNotificationType: NotificationType = - NotificationType("\$/setTrace", SetTraceParams.serializer()) \ No newline at end of file +/** + * @see $/setTrace (LSP spec) + */ +val SetTraceNotificationType: NotificationType = NotificationType( + method = "$/setTrace", + paramsSerializer = SetTraceParams.serializer(), +)