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

    Class ReferenceMutableResource

    Implements

    Index
    • 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.

      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

      • contents: string

      Returns Promise<void>

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