Skip to content

Support overwrite of files in textEditor #186

@bhouston

Description

@bhouston

Currently there is this code:


      case 'create': {
        // Check if file already exists
        if (fsSync.existsSync(absolutePath)) {
          throw new Error(
            `File already exists: ${filePath}. Use str_replace to modify it.`,
          );
        }

I think it would be better that if when one does create on an existing file, it overwrites the file rather than failing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions