Readonly
sizeThe number of affected resources of textual or resource changes.
Create a regular file.
Uri of the new file..
Optional
options: { Defines if an existing file should be overwritten or be ignored. When overwrite and ignoreIfExists are both set overwrite wins.
Optional
ignoreOptional
overwrite?: booleanOptional
metadata: WorkspaceEditEntryMetadataOptional metadata for the entry.
Delete the text at the given range.
A resource identifier.
A range.
Optional
metadata: WorkspaceEditEntryMetadataOptional metadata for the entry.
Delete a file or folder.
The uri of the file that is to be deleted.
Optional
options: { Optional
ignoreOptional
recursive?: booleanOptional
metadata: WorkspaceEditEntryMetadataOptional metadata for the entry.
Check if a text edit for a resource exists.
A resource identifier.
true
if the given resource will be touched by this edit.
Insert the given text at the given position.
A resource identifier.
A position.
A string.
Optional
metadata: WorkspaceEditEntryMetadataOptional metadata for the entry.
Rename a file or folder.
The existing file.
The new location.
Optional
options: { Defines if existing files should be overwritten or be ignored. When overwrite and ignoreIfExists are both set overwrite wins.
Optional
ignoreOptional
overwrite?: booleanOptional
metadata: WorkspaceEditEntryMetadataOptional metadata for the entry.
Replace the given range with given text for the given resource.
A resource identifier.
A range.
A string.
Optional
metadata: WorkspaceEditEntryMetadataOptional metadata for the entry.
Set (and replace) text edits for a resource.
A resource identifier.
An array of text edits.
Set (and replace) text edits or snippet edits with metadata for a resource.
A resource identifier.
An array of edits.
Set (and replace) notebook edits for a resource.
A resource identifier.
An array of edits.
Set (and replace) notebook edits with metadata for a resource.
A resource identifier.
An array of edits.
A workspace edit is a collection of textual and files changes for multiple resources and documents.
Use the workspace.applyEdit applyEdit-function to apply a workspace edit.