Equations
Instances For
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.
Equations
Instances For
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.
Equations
Instances For
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.
Equations
Instances For
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.
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Rename file operation
- oldUri : Protocol.Types.DocumentUri
- newUri : Protocol.Types.DocumentUri
- options : Option RenameFileOptions
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Text document edit
- textDocument : Protocol.Types.VersionedTextDocumentIdentifier
- edits : Array Protocol.Types.TextEdit
Instances For
Equations
Instances For
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.
A document change can be a text edit, create, rename, or delete
- textEdit (edit : TextDocumentEdit) : DocumentChange
- createFile (create : CreateFile) : DocumentChange
- renameFile (rename : RenameFile) : DocumentChange
- deleteFile (delete : DeleteFile) : DocumentChange
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
Instances For
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.
A workspace edit represents changes to many resources
- changes : Option (Std.HashMap String (Array Protocol.Types.TextEdit))
Map of document URI to text edits (simple format)
- documentChanges : Option (Array DocumentChange)
Document changes (rich format with file operations)
- changeAnnotations : Option (Std.HashMap String ChangeAnnotation)
Change annotations
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Builder for constructing workspace edits
- changes : Std.HashMap String (Array Protocol.Types.TextEdit)
- documentChanges : Array DocumentChange
- annotations : Std.HashMap String ChangeAnnotation
- useDocumentChanges : Bool
Instances For
Create a new builder
Equations
Instances For
def
Lapis.Server.WorkspaceEdit.WorkspaceEditBuilder.addEdit
(b : WorkspaceEditBuilder)
(uri : Protocol.Types.DocumentUri)
(edit : Protocol.Types.TextEdit)
:
Add a text edit to a document
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lapis.Server.WorkspaceEdit.WorkspaceEditBuilder.addEdits
(b : WorkspaceEditBuilder)
(uri : Protocol.Types.DocumentUri)
(edits : Array Protocol.Types.TextEdit)
:
Add multiple text edits to a document
Equations
- b.addEdits uri edits = Array.foldl (fun (b' : Lapis.Server.WorkspaceEdit.WorkspaceEditBuilder) (e : Lapis.Protocol.Types.TextEdit) => b'.addEdit uri e) b edits
Instances For
def
Lapis.Server.WorkspaceEdit.WorkspaceEditBuilder.addDocumentEdit
(b : WorkspaceEditBuilder)
(docEdit : TextDocumentEdit)
:
Add a document edit (for documentChanges mode)
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lapis.Server.WorkspaceEdit.WorkspaceEditBuilder.createFile
(b : WorkspaceEditBuilder)
(uri : Protocol.Types.DocumentUri)
(options : Option CreateFileOptions := none)
:
Add a create file operation
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lapis.Server.WorkspaceEdit.WorkspaceEditBuilder.renameFile
(b : WorkspaceEditBuilder)
(oldUri newUri : Protocol.Types.DocumentUri)
(options : Option RenameFileOptions := none)
:
Add a rename file operation
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lapis.Server.WorkspaceEdit.WorkspaceEditBuilder.deleteFile
(b : WorkspaceEditBuilder)
(uri : Protocol.Types.DocumentUri)
(options : Option DeleteFileOptions := none)
:
Add a delete file operation
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lapis.Server.WorkspaceEdit.WorkspaceEditBuilder.addAnnotation
(b : WorkspaceEditBuilder)
(id : String)
(annotation : ChangeAnnotation)
:
Add a change annotation
Equations
- b.addAnnotation id annotation = { changes := b.changes, documentChanges := b.documentChanges, annotations := b.annotations.insert id annotation, useDocumentChanges := b.useDocumentChanges }
Instances For
Build the final WorkspaceEdit
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lapis.Server.WorkspaceEdit.WorkspaceEditBuilder.replace
(b : WorkspaceEditBuilder)
(uri : Protocol.Types.DocumentUri)
(range : Protocol.Types.Range)
(newText : String)
:
Replace text in a range
Instances For
def
Lapis.Server.WorkspaceEdit.WorkspaceEditBuilder.insert
(b : WorkspaceEditBuilder)
(uri : Protocol.Types.DocumentUri)
(pos : Protocol.Types.Position)
(text : String)
:
Insert text at a position
Equations
Instances For
def
Lapis.Server.WorkspaceEdit.WorkspaceEditBuilder.delete
(b : WorkspaceEditBuilder)
(uri : Protocol.Types.DocumentUri)
(range : Protocol.Types.Range)
:
Delete a range
Instances For
def
Lapis.Server.WorkspaceEdit.applyEdit
(outputChannel : Transport.OutputChannel)
(pendingResponses : Receiver.PendingResponses)
(edit : WorkspaceEdit)
(label : Option String := none)
:
Apply a workspace edit via the client
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lapis.Server.WorkspaceEdit.applyEditOrThrow
(outputChannel : Transport.OutputChannel)
(pendingResponses : Receiver.PendingResponses)
(edit : WorkspaceEdit)
(label : Option String := none)
:
Apply a workspace edit and throw on failure
Equations
- One or more equations did not get rendered due to their size.