createFile method

void createFile(
  1. Uri uri, [
  2. IInline20? options,
  3. WorkspaceEditEntryMetadata? metadata
])

Create a regular file.

@param uri Uri of the new file. @param 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. @param metadata Optional metadata for the entry.

Implementation

void createFile(
  _i3.Uri uri, [
  _i3.IInline20? options,
  _i3.WorkspaceEditEntryMetadata? metadata,
]) {
  _i5.callMethod(
    this,
    'createFile',
    [
      uri,
      options ?? _i6.undefined,
      metadata ?? _i6.undefined,
    ],
  );
}