Equations
- Lean.Lsp.instToJsonClientInfo = { toJson := [anonymous] }
Equations
- Lean.Lsp.instFromJsonClientInfo = { fromJson? := [anonymous] }
- off: Lean.Lsp.Trace
- messages: Lean.Lsp.Trace
- verbose: Lean.Lsp.Trace
Equations
- Lean.Lsp.instFromJsonTrace = { fromJson? := fun j => match Lean.Json.getStr? j with | Except.ok "off" => pure Lean.Lsp.Trace.off | Except.ok "messages" => pure Lean.Lsp.Trace.messages | Except.ok "verbose" => pure Lean.Lsp.Trace.verbose | x => throw "uknown trace" }
Equations
- Lean.Lsp.Trace.hasToJson = { toJson := fun x => match x with | Lean.Lsp.Trace.off => Lean.Json.str "off" | Lean.Lsp.Trace.messages => Lean.Json.str "messages" | Lean.Lsp.Trace.verbose => Lean.Json.str "verbose" }
Equations
- Lean.Lsp.instFromJsonInitializationOptions = { fromJson? := [anonymous] }
Equations
- Lean.Lsp.instToJsonInitializationOptions = { toJson := [anonymous] }
- processId? : Option Int
- clientInfo? : Option Lean.Lsp.ClientInfo
- rootUri? : Option String
- initializationOptions? : Option Lean.Lsp.InitializationOptions
- capabilities : Lean.Lsp.ClientCapabilities
- trace : Lean.Lsp.Trace
- workspaceFolders? : Option (Array Lean.Lsp.WorkspaceFolder)
Equations
- Lean.Lsp.instToJsonInitializeParams = { toJson := [anonymous] }
Equations
- Lean.Lsp.instFromJsonInitializeParams = { fromJson? := fun j => let processId? := Lean.Json.getObjValAs? j Int "processId"; let clientInfo? := Lean.Json.getObjValAs? j Lean.Lsp.ClientInfo "clientInfo"; let rootUri? := Lean.Json.getObjValAs? j String "rootUri"; let initializationOptions? := Lean.Json.getObjValAs? j Lean.Lsp.InitializationOptions "initializationOptions"; do let capabilities ← Lean.Json.getObjValAs? j Lean.Lsp.ClientCapabilities "capabilities" let trace : Lean.Lsp.Trace := Option.getD (Except.toOption (Lean.Json.getObjValAs? j Lean.Lsp.Trace "trace")) Lean.Lsp.Trace.off let workspaceFolders? : Except String (Array Lean.Lsp.WorkspaceFolder) := Lean.Json.getObjValAs? j (Array Lean.Lsp.WorkspaceFolder) "workspaceFolders" pure { processId? := Except.toOption processId?, clientInfo? := Except.toOption clientInfo?, rootUri? := Except.toOption rootUri?, initializationOptions? := Except.toOption initializationOptions?, capabilities := capabilities, trace := trace, workspaceFolders? := Except.toOption workspaceFolders? } }
Equations
- Lean.Lsp.instFromJsonInitializedParams = { fromJson? := fun x => pure Lean.Lsp.InitializedParams.mk }
Equations
- Lean.Lsp.instToJsonInitializedParams = { toJson := fun x => Lean.Json.null }
Equations
- Lean.Lsp.instFromJsonServerInfo = { fromJson? := [anonymous] }
Equations
- Lean.Lsp.instToJsonServerInfo = { toJson := [anonymous] }
- capabilities : Lean.Lsp.ServerCapabilities
- serverInfo? : Option Lean.Lsp.ServerInfo
Equations
- Lean.Lsp.instToJsonInitializeResult = { toJson := [anonymous] }
Equations
- Lean.Lsp.instFromJsonInitializeResult = { fromJson? := [anonymous] }