- resolveProvider : Bool
Equations
- Lean.Lsp.instFromJsonCompletionOptions = { fromJson? := Lean.Lsp.fromJsonCompletionOptions✝ }
Equations
- text : CompletionItemKind
- method : CompletionItemKind
- function : CompletionItemKind
- constructor : CompletionItemKind
- field : CompletionItemKind
- variable : CompletionItemKind
- class : CompletionItemKind
- interface : CompletionItemKind
- module : CompletionItemKind
- property : CompletionItemKind
- unit : CompletionItemKind
- value : CompletionItemKind
- enum : CompletionItemKind
- keyword : CompletionItemKind
- snippet : CompletionItemKind
- color : CompletionItemKind
- file : CompletionItemKind
- reference : CompletionItemKind
- folder : CompletionItemKind
- enumMember : CompletionItemKind
- constant : CompletionItemKind
- struct : CompletionItemKind
- event : CompletionItemKind
- operator : CompletionItemKind
- typeParameter : CompletionItemKind
Equations
Equations
- Lean.Lsp.instDecidableEqCompletionItemKind x✝ y✝ = if h : x✝.toCtorIdx = y✝.toCtorIdx then isTrue ⋯ else isFalse ⋯
Equations
- Lean.Lsp.instReprCompletionItemKind = { reprPrec := Lean.Lsp.reprCompletionItemKind✝ }
Equations
- Lean.Lsp.instToJsonCompletionItemKind = { toJson := fun (a : Lean.Lsp.CompletionItemKind) => Lean.toJson (a.toCtorIdx + 1) }
Equations
- Lean.Lsp.instFromJsonCompletionItemKind = { fromJson? := fun (v : Lean.Json) => do let i ← Lean.fromJson? v pure (Lean.Lsp.CompletionItemKind.ofNat (i - 1)) }
Equations
- Lean.Lsp.instFromJsonInsertReplaceEdit = { fromJson? := Lean.Lsp.fromJsonInsertReplaceEdit✝ }
Equations
Equations
Equations
Equations
Equations
- Lean.Lsp.instDecidableEqCompletionItemTag x✝ y✝ = if h : x✝.toCtorIdx = y✝.toCtorIdx then isTrue ⋯ else isFalse ⋯
Equations
- Lean.Lsp.instReprCompletionItemTag = { reprPrec := Lean.Lsp.reprCompletionItemTag✝ }
Equations
Equations
- Lean.Lsp.instToJsonCompletionItemTag = { toJson := fun (t : Lean.Lsp.CompletionItemTag) => Lean.toJson (t.toCtorIdx + 1) }
Equations
- Lean.Lsp.instFromJsonCompletionItemTag = { fromJson? := fun (v : Lean.Json) => do let i ← Lean.fromJson? v pure (Lean.Lsp.CompletionItemTag.ofNat (i - 1)) }
- label : String
- documentation? : Option MarkupContent
- kind? : Option CompletionItemKind
- textEdit? : Option InsertReplaceEdit
Equations
- Lean.Lsp.instFromJsonCompletionItem = { fromJson? := Lean.Lsp.fromJsonCompletionItem✝ }
Equations
- Lean.Lsp.instToJsonCompletionItem = { toJson := Lean.Lsp.toJsonCompletionItem✝ }
Equations
- One or more equations did not get rendered due to their size.
Equations
Equations
- isIncomplete : Bool
- items : Array CompletionItem
Equations
- Lean.Lsp.instFromJsonCompletionList = { fromJson? := Lean.Lsp.fromJsonCompletionList✝ }
Equations
- Lean.Lsp.instToJsonCompletionList = { toJson := Lean.Lsp.toJsonCompletionList✝ }
Equations
- Lean.Lsp.instFromJsonCompletionParams = { fromJson? := Lean.Lsp.fromJsonCompletionParams✝ }
Equations
- contents : MarkupContent
Instances For
Equations
- Lean.Lsp.instToJsonHover = { toJson := Lean.Lsp.toJsonHover✝ }
Equations
- Lean.Lsp.instFromJsonHover = { fromJson? := Lean.Lsp.fromJsonHover✝ }
Equations
- Lean.Lsp.instFromJsonHoverParams = { fromJson? := Lean.Lsp.fromJsonHoverParams✝ }
Equations
- Lean.Lsp.instToJsonHoverParams = { toJson := Lean.Lsp.toJsonHoverParams✝ }
Equations
- Lean.Lsp.instFromJsonDeclarationParams = { fromJson? := Lean.Lsp.fromJsonDeclarationParams✝ }
Equations
Equations
- Lean.Lsp.instFromJsonDefinitionParams = { fromJson? := Lean.Lsp.fromJsonDefinitionParams✝ }
Equations
Equations
Equations
- includeDeclaration : Bool
Equations
- Lean.Lsp.instFromJsonReferenceContext = { fromJson? := Lean.Lsp.fromJsonReferenceContext✝ }
Equations
Equations
- Lean.Lsp.instFromJsonReferenceParams = { fromJson? := Lean.Lsp.fromJsonReferenceParams✝ }
Equations
- query : String
Equations
- text : DocumentHighlightKind
- read : DocumentHighlightKind
- write : DocumentHighlightKind
Instances For
Equations
- One or more equations did not get rendered due to their size.
- range : Range
- kind? : Option DocumentHighlightKind
Instances For
Equations
@[reducible, inline]
Equations
Equations
- file : SymbolKind
- module : SymbolKind
- namespace : SymbolKind
- package : SymbolKind
- class : SymbolKind
- method : SymbolKind
- property : SymbolKind
- field : SymbolKind
- constructor : SymbolKind
- enum : SymbolKind
- interface : SymbolKind
- function : SymbolKind
- variable : SymbolKind
- constant : SymbolKind
- string : SymbolKind
- number : SymbolKind
- boolean : SymbolKind
- array : SymbolKind
- object : SymbolKind
- key : SymbolKind
- null : SymbolKind
- enumMember : SymbolKind
- struct : SymbolKind
- event : SymbolKind
- operator : SymbolKind
- typeParameter : SymbolKind
Equations
- Lean.Lsp.instBEqSymbolKind = { beq := Lean.Lsp.beqSymbolKind✝ }
Equations
- Lean.Lsp.instHashableSymbolKind = { hash := Lean.Lsp.hashSymbolKind✝ }
Equations
- Lean.Lsp.instInhabitedSymbolKind = { default := Lean.Lsp.SymbolKind.file }
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
- name : String
- kind : SymbolKind
- range : Range
- selectionRange : Range
instance
Lean.Lsp.instFromJsonDocumentSymbolAux
{Self✝ : Type}
[FromJson Self✝]
:
FromJson (DocumentSymbolAux Self✝)
Equations
- Lean.Lsp.instFromJsonDocumentSymbolAux = { fromJson? := Lean.Lsp.fromJsonDocumentSymbolAux✝ }
instance
Lean.Lsp.instToJsonDocumentSymbolAux
{Self✝ : Type}
[ToJson Self✝]
:
ToJson (DocumentSymbolAux Self✝)
Equations
- mk (sym : DocumentSymbolAux DocumentSymbol) : DocumentSymbol
Instances For
Equations
- syms : Array DocumentSymbol
Instances For
Equations
- Lean.Lsp.instToJsonDocumentSymbolResult = { toJson := fun (dsr : Lean.Lsp.DocumentSymbolResult) => Lean.toJson dsr.syms }
Equations
- Lean.Lsp.instBEqSymbolTag = { beq := Lean.Lsp.beqSymbolTag✝ }
Equations
- Lean.Lsp.instHashableSymbolTag = { hash := Lean.Lsp.hashSymbolTag✝ }
Equations
- Lean.Lsp.instInhabitedSymbolTag = { default := Lean.Lsp.SymbolTag.deprecated }
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.Lsp.instToJsonSymbolTag = { toJson := fun (x : Lean.Lsp.SymbolTag) => match x with | Lean.Lsp.SymbolTag.deprecated => 1 }
- name : String
- kind : SymbolKind
- location : Location
Equations
- Lean.Lsp.instFromJsonSymbolInformation = { fromJson? := Lean.Lsp.fromJsonSymbolInformation✝ }
Equations
- name : String
- kind : SymbolKind
- uri : DocumentUri
- range : Range
- selectionRange : Range
Equations
- Lean.Lsp.instFromJsonCallHierarchyItem = { fromJson? := Lean.Lsp.fromJsonCallHierarchyItem✝ }
Equations
Equations
Equations
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.Lsp.instInhabitedCallHierarchyIncomingCall = { default := { «from» := default, fromRanges := default } }
Equations
- Lean.Lsp.instInhabitedCallHierarchyOutgoingCall = { default := { to := default, fromRanges := default } }
- keyword : SemanticTokenType
- variable : SemanticTokenType
- property : SemanticTokenType
- function : SemanticTokenType
- namespace : SemanticTokenType
- type : SemanticTokenType
- class : SemanticTokenType
- enum : SemanticTokenType
- interface : SemanticTokenType
- struct : SemanticTokenType
- typeParameter : SemanticTokenType
- parameter : SemanticTokenType
- enumMember : SemanticTokenType
- event : SemanticTokenType
- method : SemanticTokenType
- macro : SemanticTokenType
- modifier : SemanticTokenType
- comment : SemanticTokenType
- string : SemanticTokenType
- number : SemanticTokenType
- regexp : SemanticTokenType
- operator : SemanticTokenType
- decorator : SemanticTokenType
- leanSorryLike : SemanticTokenType
Equations
Equations
- Lean.Lsp.instFromJsonSemanticTokenType = { fromJson? := Lean.Lsp.fromJsonSemanticTokenType✝ }
Equations
Equations
Equations
- One or more equations did not get rendered due to their size.
Equations
- tokenType.toNat = tokenType.toCtorIdx
The semantic token modifiers included by default in the LSP specification. Not used by the Lean core, but implementing them here allows them to be utilized by users extending the Lean server.
- declaration : SemanticTokenModifier
- definition : SemanticTokenModifier
- readonly : SemanticTokenModifier
- static : SemanticTokenModifier
- deprecated : SemanticTokenModifier
- abstract : SemanticTokenModifier
- async : SemanticTokenModifier
- modification : SemanticTokenModifier
- documentation : SemanticTokenModifier
- defaultLibrary : SemanticTokenModifier
Equations
Equations
- Lean.Lsp.SemanticTokenModifier.names = #["declaration", "definition", "readonly", "static", "deprecated", "abstract", "async", "modification", "documentation", "defaultLibrary"]
Equations
- modifier.toNat = modifier.toCtorIdx
Equations
Equations
- legend : SemanticTokensLegend
- range : Bool
- full : Bool
Equations
Equations
Equations
Equations
- Lean.Lsp.instFromJsonSemanticTokens = { fromJson? := Lean.Lsp.fromJsonSemanticTokens✝ }
Equations
- Lean.Lsp.instToJsonSemanticTokens = { toJson := Lean.Lsp.toJsonSemanticTokens✝ }
Equations
- Lean.Lsp.instFromJsonFoldingRangeParams = { fromJson? := Lean.Lsp.fromJsonFoldingRangeParams✝ }
Equations
- comment : FoldingRangeKind
- imports : FoldingRangeKind
- region : FoldingRangeKind
Instances For
Equations
- One or more equations did not get rendered due to their size.
- startLine : Nat
- endLine : Nat
- kind? : Option FoldingRangeKind
Instances For
Equations
- Lean.Lsp.instToJsonFoldingRange = { toJson := Lean.Lsp.toJsonFoldingRange✝ }
- prepareProvider : Bool
Equations
- Lean.Lsp.instFromJsonRenameOptions = { fromJson? := Lean.Lsp.fromJsonRenameOptions✝ }
Equations
- Lean.Lsp.instToJsonRenameOptions = { toJson := Lean.Lsp.toJsonRenameOptions✝ }
- newName : String
Equations
- Lean.Lsp.instFromJsonRenameParams = { fromJson? := Lean.Lsp.fromJsonRenameParams✝ }
Equations
- Lean.Lsp.instToJsonRenameParams = { toJson := Lean.Lsp.toJsonRenameParams✝ }