Theia API Documentation v1.65.0
    Preparing search index...

    Implements

    Index

    Constructors

    Properties

    autosaveable: false

    If false, the application should not attempt to auto-save this resource.

    encoding: undefined | string

    Latest read encoding of this resource.

    Optional if a resource does not support encoding, check with in operator`. Undefined if a resource did not read content yet.

    initiallyDirty: boolean
    onDidChangeContentsEmitter: Emitter<void> = ...
    uri: URI

    Accessors

    Methods

    • Reads latest content of this resource.

      If a resource supports versioning it updates version to latest. If a resource supports encoding it updates encoding to latest.

      Parameters

      • Optionaloptions: { encoding?: string }

      Returns Promise<string>

      ResourceError.NotFound if a resource not found

    • Rewrites the complete content for this resource. If a resource does not exist it will be created.

      If a resource supports versioning clients can pass some version to check against it, if it is not provided latest version is used.

      It updates version and encoding to latest.

      Parameters

      • content: string
      • Optionaloptions: { encoding?: string; overwriteEncoding?: boolean }

      Returns Promise<void>

      ResourceError.OutOfSync if latest resource version is out of sync with the given