The number of affected resources of textual or resource changes.
Replace the given range with given text for the given resource.
A resource identifier.
A range.
A string.
Optional metadata for the entry.
Insert the given text at the given position.
A resource identifier.
A position.
A string.
Optional metadata for the entry.
Delete the text at the given range.
A resource identifier.
A range.
Optional 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.
Create a regular file.
Uri of the new file..
Defines if an existing file should be overwritten or be ignored. When overwrite and ignoreIfExists are both set overwrite wins. When both are unset and when the file already exists then the edit cannot be applied successfully.
Optional metadata for the entry.
Delete a file or folder.
The uri of the file that is to be deleted.
Optional metadata for the entry.
Rename a file or folder.
The existing file.
The new location.
Defines if existing files should be overwritten or be ignored. When overwrite and ignoreIfExists are both set overwrite wins.
Optional metadata for the entry.
友链:VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场
A workspace edit is a collection of textual and files changes for multiple resources and documents.
Use the applyEdit-function to apply a workspace edit.