mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
docs [lsp]: link to LSP spec from LogTrace.kt
also refromat the file GitOrigin-RevId: fc98f95db70992e9f1bb74dca560ccb09f5a8e0b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b31907b9fa
commit
ab90c85392
@@ -2,17 +2,20 @@ package com.jetbrains.lsp.protocol
|
||||
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
/**
|
||||
* @see <a href="https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#logTrace">logTraceParams (LSP spec)</a>
|
||||
*/
|
||||
@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<LogTraceParams> =
|
||||
NotificationType("\$/logTrace", LogTraceParams.serializer())
|
||||
/**
|
||||
* @see <a href="https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#logTrace">$/logTrace (LSP spec)</a>
|
||||
*/
|
||||
val LogTraceNotificationType: NotificationType<LogTraceParams> = NotificationType(
|
||||
method = "$/logTrace",
|
||||
paramsSerializer = LogTraceParams.serializer(),
|
||||
)
|
||||
|
||||
val SetTraceNotificationType: NotificationType<SetTraceParams> =
|
||||
NotificationType("\$/setTrace", SetTraceParams.serializer())
|
||||
/**
|
||||
* @see <a href="https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#setTrace">$/setTrace (LSP spec)</a>
|
||||
*/
|
||||
val SetTraceNotificationType: NotificationType<SetTraceParams> = NotificationType(
|
||||
method = "$/setTrace",
|
||||
paramsSerializer = SetTraceParams.serializer(),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user