File: .lake/packages/proofwidgets/ProofWidgets/Component/MakeEditLink.lean

full_name: Lean.Lsp.Position.advance
code: /-- Assuming that `s` is the content of a file starting at position `p`,
advance `p` to the end of `s`. -/
def Lean.Lsp.Position.advance (p : Position) (s : Substring) : Position 
goal: Lean.Lsp.Position

full_name: ProofWidgets.MakeEditLinkProps.newSelection?
code: structure MakeEditLinkProps where
  /-- The edit to perform on the file. -/
  edit : Lsp.TextDocumentEdit
  /-- Which textual range to select after the edit.
  The range is interpreted in the file that `edit` applies to.
  If present and `start == end`, the cursor is moved to `start` and nothing is selected.
  If not present, the selection is not changed. -/
  newSelection? : Option Lsp.Range := none
  /-- The `title` property, if any, to set on the displayed `<a>` link. -/
  title? : Option String := none
  deriving FromJson, ToJson
goal: Option Lean.Lsp.Range

full_name: ProofWidgets.MakeEditLinkProps
code: structure MakeEditLinkProps where
  /-- The edit to perform on the file. -/
  edit : Lsp.TextDocumentEdit
  /-- Which textual range to select after the edit.
  The range is interpreted in the file that `edit` applies to.
  If present and `start == end`, the cursor is moved to `start` and nothing is selected.
  If not present, the selection is not changed. -/
  newSelection? : Option Lsp.Range := none
  /-- The `title` property, if any, to set on the displayed `<a>` link. -/
  title? : Option String := none
  deriving FromJson, ToJson
goal: Type

full_name: ProofWidgets.MakeEditLinkProps.title?
code: structure MakeEditLinkProps where
  /-- The edit to perform on the file. -/
  edit : Lsp.TextDocumentEdit
  /-- Which textual range to select after the edit.
  The range is interpreted in the file that `edit` applies to.
  If present and `start == end`, the cursor is moved to `start` and nothing is selected.
  If not present, the selection is not changed. -/
  newSelection? : Option Lsp.Range := none
  /-- The `title` property, if any, to set on the displayed `<a>` link. -/
  title? : Option String := none
  deriving FromJson, ToJson
goal: Option String

full_name: ProofWidgets.MakeEditLinkProps.edit
code: structure MakeEditLinkProps where
  /-- The edit to perform on the file. -/
  edit : Lsp.TextDocumentEdit
  /-- Which textual range to select after the edit.
  The range is interpreted in the file that `edit` applies to.
  If present and `start == end`, the cursor is moved to `start` and nothing is selected.
  If not present, the selection is not changed. -/
  newSelection? : Option Lsp.Range := none
  /-- The `title` property, if any, to set on the displayed `<a>` link. -/
  title? : Option String := none
  deriving FromJson, ToJson
goal: Lean.Lsp.TextDocumentEdit

full_name: ProofWidgets.instFromJsonMakeEditLinkProps
code: FromJson
goal: Lean.FromJson ProofWidgets.MakeEditLinkProps

full_name: ProofWidgets.instToJsonMakeEditLinkProps
code: ToJson
goal: Lean.ToJson ProofWidgets.MakeEditLinkProps

full_name: ProofWidgets.MakeEditLinkProps.ofReplaceRange'
code: /-- Replace `range` with `newText`.
If `newSelection?` is absent, place the cursor at the end of the new text.
If `newSelection?` is present, make the specified selection instead.
See also `MakeEditLinkProps.ofReplaceRange`.
-/
def MakeEditLinkProps.ofReplaceRange' (meta : Server.DocumentMeta) (range : Lsp.Range)
    (newText : String) (newSelection? : Option Lsp.Range := none) : MakeEditLinkProps 
goal: ProofWidgets.MakeEditLinkProps

full_name: ProofWidgets.MakeEditLinkProps.ofReplaceRange
code: /-- Replace `range` with `newText`.
If `newSelection?` is absent, place the cursor at the end of the new text.
If `newSelection?` is present, select the range it specifies within `newText`.
See also `MakeEditLinkProps.ofReplaceRange'`. -/
def MakeEditLinkProps.ofReplaceRange (meta : Server.DocumentMeta) (range : Lsp.Range)
    (newText : String) (newSelection? : Option (String.Pos × String.Pos) := none) :
    MakeEditLinkProps 
goal: ProofWidgets.MakeEditLinkProps

full_name: ProofWidgets.MakeEditLink
code: /-- A link that, when clicked, makes the specified edit
and potentially moves the cursor
or makes a selection. -/
@[widget_module]
def MakeEditLink : Component MakeEditLinkProps 
goal: ProofWidgets.Component ProofWidgets.MakeEditLinkProps