createFile
fun createFile(uri: Uri, options: WorkspaceEdit.CreateFileOptions = definedExternally, metadata: WorkspaceEditEntryMetadata = definedExternally)(source)
Create a regular file.
Parameters
uri
Uri of the new file.
options
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. The content
-property allows to set the initial contents the file is being created with.
metadata
Optional metadata for the entry.