- none: Lean.Lsp.TextDocumentSyncKind
- full: Lean.Lsp.TextDocumentSyncKind
- incremental: Lean.Lsp.TextDocumentSyncKind
Equations
- Lean.Lsp.instFromJsonTextDocumentSyncKind = { fromJson? := fun j => match Lean.Json.getNat? j with | Except.ok 0 => pure Lean.Lsp.TextDocumentSyncKind.none | Except.ok 1 => pure Lean.Lsp.TextDocumentSyncKind.full | Except.ok 2 => pure Lean.Lsp.TextDocumentSyncKind.incremental | x => throw "unknown TextDocumentSyncKind" }
Equations
- Lean.Lsp.instToJsonTextDocumentSyncKind = { toJson := fun x => match x with | Lean.Lsp.TextDocumentSyncKind.none => 0 | Lean.Lsp.TextDocumentSyncKind.full => 1 | Lean.Lsp.TextDocumentSyncKind.incremental => 2 }
Equations
- Lean.Lsp.instToJsonDidOpenTextDocumentParams = { toJson := [anonymous] }
Equations
- Lean.Lsp.instFromJsonDidOpenTextDocumentParams = { fromJson? := [anonymous] }
- documentSelector? : Option Lean.Lsp.DocumentSelector
- syncKind : Lean.Lsp.TextDocumentSyncKind
- rangeChange: Lean.Lsp.Range → String → Lean.Lsp.TextDocumentContentChangeEvent
- fullChange: String → Lean.Lsp.TextDocumentContentChangeEvent
Equations
- Lean.Lsp.instFromJsonTextDocumentContentChangeEvent = { fromJson? := fun j => HOrElse.hOrElse (do let range ← Lean.Json.getObjValAs? j Lean.Lsp.Range "range" let text ← Lean.Json.getObjValAs? j String "text" pure (Lean.Lsp.TextDocumentContentChangeEvent.rangeChange range text)) fun x => Lean.Lsp.TextDocumentContentChangeEvent.fullChange <$> Lean.Json.getObjValAs? j String "text" }
Equations
- Lean.Lsp.TextDocumentContentChangeEvent.hasToJson = { toJson := fun o => Lean.Json.mkObj (match o with | Lean.Lsp.TextDocumentContentChangeEvent.rangeChange range text => [("range", Lean.toJson range), ("text", Lean.toJson text)] | Lean.Lsp.TextDocumentContentChangeEvent.fullChange text => [("text", Lean.toJson text)]) }
- textDocument : Lean.Lsp.VersionedTextDocumentIdentifier
- contentChanges : Array Lean.Lsp.TextDocumentContentChangeEvent
Equations
- Lean.Lsp.instToJsonDidChangeTextDocumentParams = { toJson := [anonymous] }
Equations
- Lean.Lsp.instFromJsonDidChangeTextDocumentParams = { fromJson? := [anonymous] }
Equations
- Lean.Lsp.instFromJsonSaveOptions = { fromJson? := [anonymous] }
Equations
- Lean.Lsp.instToJsonSaveOptions = { toJson := [anonymous] }
- textDocument : Lean.Lsp.TextDocumentIdentifier
Equations
- Lean.Lsp.instToJsonDidCloseTextDocumentParams = { toJson := [anonymous] }
Equations
- Lean.Lsp.instFromJsonDidCloseTextDocumentParams = { fromJson? := [anonymous] }
- openClose : Bool
- change : Lean.Lsp.TextDocumentSyncKind
- willSave : Bool
- willSaveWaitUntil : Bool
- save? : Option Lean.Lsp.SaveOptions
Equations
- Lean.Lsp.instToJsonTextDocumentSyncOptions = { toJson := [anonymous] }
Equations
- Lean.Lsp.instFromJsonTextDocumentSyncOptions = { fromJson? := [anonymous] }