Theia API Documentation v1.65.0
    Preparing search index...
    interface CreateTextFileOptions {
        encoding?: string;
        fromUserGesture?: boolean;
        overwrite?: boolean;
        overwriteEncoding?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    encoding?: string

    The encoding to use when updating a file.

    fromUserGesture?: boolean

    Indicates that a user action triggered the opening, e.g. via mouse or keyboard use. Default is true.

    overwrite?: boolean

    Overwrite the file to create if it already exists on disk. Otherwise an error will be thrown (FILE_MODIFIED_SINCE).

    overwriteEncoding?: boolean

    If set to true, will enforce the selected encoding and not perform any detection using BOMs.