WorkspaceEdit$Typings extension
Properties
-
set
→ ({void Function(Uri uri, ReadonlyArray<Object> edits) $1, void Function(Uri uri, ReadonlyArray<(Object, WorkspaceEditEntryMetadata)> edits) $2, void Function(Uri uri, List<NotebookEdit> edits) $3, void Function(Uri uri, ReadonlyArray<(NotebookEdit, WorkspaceEditEntryMetadata)> edits) $4})
-
Overload accessor: $1, $2, $3, $4
no setter
-
size
→ num
-
The number of affected resources of textual or resource changes.
no setter
Methods
-
createFile(Uri uri, [IInline20? options, WorkspaceEditEntryMetadata? metadata])
→ void
-
Create a regular file.
-
delete(Uri uri, Range range, [WorkspaceEditEntryMetadata? metadata])
→ void
-
Delete the text at the given range.
-
deleteFile(Uri uri, [IInline21? options, WorkspaceEditEntryMetadata? metadata])
→ void
-
Delete a file or folder.
-
entries()
→ List<(Uri, List<TextEdit>)>
-
Get all text edits grouped by resource.
-
get(Uri uri)
→ List<TextEdit>
-
Get the text edits for a resource.
-
has(Uri uri)
→ bool
-
Check if a text edit for a resource exists.
-
insert(Uri uri, Position position, String newText, [WorkspaceEditEntryMetadata? metadata])
→ void
-
Insert the given text at the given position.
-
renameFile(Uri oldUri, Uri newUri, [IInline22? options, WorkspaceEditEntryMetadata? metadata])
→ void
-
Rename a file or folder.
-
replace(Uri uri, Range range, String newText, [WorkspaceEditEntryMetadata? metadata])
→ void
-
Replace the given range with given text for the given resource.