RSX Code Reference
    Preparing search index...

    Class ProjectLibrary

    Editor-facing API for discovering and managing entries in the loaded project's virtual library.

    ProjectLibrary manages the library hierarchy and its metadata. Use it to find LibraryEntry objects and to import, create, move, rename, or delete entries. Use Resources to load the corresponding Resource instances.

    To access a resource's contents, locate its ResourceEntry and pass ResourceEntry#uuid to Resources.get, Resources.load, Resources.loadAsync, or Resources.loadHandleBackground depending on the required loading behavior.

    A LibraryPath identifies a location in the virtual library hierarchy but is not unique across packages. A LibraryIdentifierPath identifies a specific entry, including its package, it's use is typically required when working with internal library API, when absolute locations are required e.g. copy or move operations.

    Index
    packageFileExtension: ".rpak"

    The file extension for the RSX package format. The string includes the leading dot separator.

    • get asyncPackageOperationProgress(): number

      Returns the progress of asynchronous package operations, in range [0, 1]. Returns 1.0 if all operations are complete or none have even started.

      All async operations that are started while there is another async operation in progress are considered as part of the same import session. This means that queuing further async operations can result in the progress number decreasing rather than increasing.

      Returns number

    • get codeFolder(): FilePath

      Returns the absolute filesystem path of the current project's generated source-code folder.

      Returns FilePath

    • get editorRoot(): DirectoryEntry

      Returns the root entry containing editor-provided resources.

      Returns DirectoryEntry

    • get engineInternalResourcesRoot(): Iterable<DirectoryEntry>

      Returns resource roots marked as built-in engine or editor data.

      Returns Iterable<DirectoryEntry>

    • get engineRoot(): DirectoryEntry

      Returns the root entry containing engine-provided resources.

      Returns DirectoryEntry

    • get importInProgress(): boolean

      Checks whether an asset import is currently in progress.

      Returns boolean

    • get importProgress(): number

      Returns the import progress for all active import operations, in range [0, 1]. Returns 1.0 if import is complete or has not even started.

      All import operations that are started while there is another import operation in progress are considered as part of the same import session. This means that queuing further import operations can result in the progress number decreasing rather than increasing.

      Returns number

    • get libraryIconSize(): number

      Gets the size of the library icon image.

      Returns number

      When assigning a new library icon, ensure that the dimensions match this constant. Otherwise a blit operation is required.

    • get projectFolder(): FilePath

      Returns the absolute filesystem path of the current project folder.

      Returns FilePath

    • get resourcesFolder(): FilePath

      Returns the absolute filesystem path of the current project's resources folder.

      Returns FilePath

    • get root(): DirectoryEntry

      Returns the root entry containing resources owned by the current project.

      Returns DirectoryEntry

    • Marks every queued import destination as canceled. Running importer work cannot be interrupted and must finish before cancellation is finalized. Call finalizeAsyncOperations to process the resulting state changes.

      Returns void

    • Composes the unique identifier path for a package or an entry within that package.

      Parameters

      • packageFilePath: FilePath

        The file-system path of the package.

      • OptionalresourceLibraryPath: LibraryPath

        Optional virtual path of an entry within the package.

      Returns LibraryIdentifierPath

      The unique identifier path for the package or package entry.

    • Checks if the library contains a resource with the specified UUID.

      Parameters

      • uuid: UUID

        UUID of the resource.

      Returns boolean

      True if the resource is part of the library.

    • Toggles the coordinate-system handedness of a mesh or template resource. Applying the operation twice restores the original handedness.

      Parameters

      • resourceUUID: UUID

        UUID of the mesh or template resource to convert.

      Returns void

    • Copies a list of library entries from one path to another.

      Parameters

      • sourceIdentifierPaths: LibraryIdentifierPath[]

        Source identifier paths.

      • destinationIdentifierPaths: LibraryIdentifierPath[]

        Destination identifier paths corresponding one-to-one with sourceIdentifierPaths.

      • Optionaloverwrite: boolean

        If an entry already exists at the destination path, should it be overwritten.

      Returns void

    • Registers a new resource in the library. This will add the resource to the package at the provided identifierPath if one exists, or create a new package otherwise.

      Parameters

      • resource: Resource

        Resource instance to add to the library.

      • identifierPath: LibraryIdentifierPath

        Identifier path at which to store the resource. It must include the target package and the resource's virtual path inside that package.

      • Optionalclone: boolean

        If true the contents of the resource will be saved as they are in the current state. This allows you to freely modify the existing copy of the resource after the call.

      • Optionalflags: EnumValue<ProjectLibraryEntryMetaDataFlags>

        Optional resource meta flags.

      • OptionalownerUserID: UUID

        Optional ID of the owner of the resource. The owner might be different from the creator. If a resource has an owner, only the owner can write to the resource.

      Returns ResourceEntry

      The transient resource entry created for the queued operation, or null if the operation could not be queued.

      The write operation is executed asynchronously on a worker thread and you must not modify the resource contents until this operation completes. If this is not possible the set the clone parameter to true.

    • Registers a new resource in the library. This will create a package for the resource and store the file at the virtual libraryPath. The project library assumes that the resource is the main resource inside the package, and the package file name will match the UUID of the resource.

      Parameters

      • resource: Resource

        Resource instance to add to the library.

      • libraryPath: LibraryPath

        Virtual library path at which to store the resource inside the new package.

      • Optionalclone: boolean

        If true the contents of the resource will be saved as they are in the current state. This allows you to freely modify the existing copy of the resource after the call.

      • Optionalflags: EnumValue<ProjectLibraryEntryMetaDataFlags>

        Optional resource meta flags.

      • OptionalownerUserID: UUID

        Optional ID of the owner of the resource. The owner might be different from the creator. If a resource has an owner, only the owner can write to the resource.

      Returns ResourceEntry

      The transient resource entry created for the queued operation, or null if the operation could not be queued.

      The write operation is executed asynchronously on a worker thread and you must not modify the resource contents until this operation completes. If this is not possible the set the clone parameter to true.

    • Creates a new virtual folder in the library.

      Parameters

      • libraryPath: LibraryPath

        Virtual folder path, for example Materials/Organic/.

      Returns void

      This will create a temporary package to hold the folder. The package will be removed once the engine restarts.

    • Deletes an entry from the library.

      Parameters

      • identifierPath: LibraryIdentifierPath

        Absolute identifier path, or a path relative to the project resources root.

      Returns any

    • Deletes a list of entries from the library.

      Parameters

      Returns any

    • Determines if all dependencies for the resource with the specified uuid are available in the project library. If the method returns false, a load would trigger a potential blocking download of all dependencies.

      Parameters

      • uuid: UUID

        UUID of the resource whose direct dependencies should be checked.

      Returns boolean

      True if every relevant dependency is available, false if at least one requires retrieval, or null if the resource or its package metadata cannot be found.

      This method does not check that all streaming has been downloaded. Only whether the corresponding main resources are available and loadable. If a dependency has been deleted from the project, it's considered to be available.

    • Checks whether the project library contains an entry with the specified identifier path.

      Parameters

      • path: LibraryIdentifierPath

        Identifier path of the entry to find.

      • OptionalsearchInsidePackages: boolean

        Whether entries inside package virtual file systems should be considered.

      Returns boolean

      true if the entry exists; otherwise, false.

    • Determines whether a library entry exists at the given virtual library path, without taking packages into account. To find an entry within a specific package, use GetEntryWithIdentifierPath instead.

      For example, the "Meshes" folder could be present in both PackageA and PackageB. This method returns true if either package contains an entry at that virtual path.

      Parameters

      • libraryPath: LibraryPath

        Virtual library path to search for.

      Returns boolean

      Whether an entry exists at the given virtual library path in any package.

    • Finalizes completed library operations and dispatches their resulting hierarchy updates and events. To avoid starving the main thread, one call processes at most three heavy finalization operations. If wait is true, the call first blocks until currently queued background work has completed.

      Parameters

      • Optionalwait: boolean

        Whether to wait for queued work instead of finalizing only work that has already completed.

      Returns void

    • Gets resources affixed to the resource with the specified uuid. If requiredFlags is None, resources with any affix flags are included.

      Parameters

      • uuid: UUID

        UUID of the resource to which returned resources are affixed.

      • OptionalrequiredFlags: EnumValue<AffixResourceFlags>

        Required affix flags; matching any requested flag is sufficient.

      Returns ResourceEntry[]

      The dependent resource entries.

      The relationship is stored in ResourceMetaData.affixResourceUUID and affixResourceFlags.

    • Finds resources whose package metadata declares a dependency on the resource at the specified identifier path.

      Parameters

      • identifierPath: LibraryIdentifierPath

        Absolute identifier path, or a path relative to the project resources root.

      Returns ResourceEntry[]

      Transient resource entries that depend on the specified resource.

    • Gets project resource entries associated with a Polyverse library and, optionally, one Polyverse asset.

      Parameters

      • polyverseLibraryID: UUID

        UUID of the Polyverse library.

      • OptionalpolyverseAssetID: UUID

        Optional UUID used to restrict the results to one Polyverse asset.

      Returns ResourceEntry[]

      The resource entries.

    • Finds all resources that were imported from the provided source asset path.

      Parameters

      • sourcePath: FilePath

        Absolute path to the source asset.

      Returns ResourceEntry[]

      A list of resources imported from asset at sourcePath.

    • Looks up the identifier path for the resource with the specified UUID. The identifier path is absolute.

      Parameters

      • uuid: UUID

        UUID of the resource.

      Returns LibraryIdentifierPath

      The absolute identifier path, or an empty path if the UUID is not present in the library.

    • Converts a project resource identifier path into the corresponding generated source path without checking whether the resource is a code resource or whether the source file exists.

      Parameters

      • identifierPath: LibraryIdentifierPath

        Identifier path of the resource. Absolute paths must belong to the project resources root.

      • isEditorCodeFile: boolean

        If true, resolves beneath the Code/Editor folder; otherwise resolves beneath Code.

      Returns FilePath

      The absolute generated source path, or an empty path if an absolute identifier lies outside the project library.

    • Gets the generated source path for the resource with the specified UUID.

      Parameters

      • uuid: UUID

        UUID of the resource.

      • isEditorCodeFile: boolean

        If true, resolves beneath the Code/Editor folder; otherwise resolves beneath Code.

      Returns FilePath

      The absolute generated source path, or an empty path if the UUID is not present in the project library.

    • Finds the entries that reside at the folder in the virtual library path.

      Parameters

      • folderLibraryPath: LibraryPath

        The virtual library path of the folder.

      • uniqueDirectoryEntries: boolean

        True to only include the first found directory entry with identical names but in different packages.

      • OptionalrootType: EnumValue<ProjectRootType>

        Resource root to search.

      Returns LibraryEntry[]

      The transient entries directly contained by the folder.

    • Gets any library entry with the specified uuid.

      Parameters

      • uuid: UUID

        UUID of the entry.

      Returns LibraryEntry

      The transient entry, or null if no entry was found.

    • Finds a library entry at the specified identifier path.

      Parameters

      • identifierPath: LibraryIdentifierPath

        Absolute identifier path, or a path relative to the project resources root.

      • searchInsidePackages: boolean

        When true the entry returned can be a directory or a resource entry within the package virtual file system. When false the search stops at physical folders and package files.

      • OptionalonlyInProjectLibrary: boolean

        When true, excludes engine and editor resource roots from an absolute-path search.

      Returns LibraryEntry

      The transient entry, or null if no matching entry exists.

    • Finds the entry that represents the provided virtual library path.

      Parameters

      • libraryPath: LibraryPath

        The virtual library path to search for.

      • Optionalindex: number

        The index of the element. If multiple elements share the same virtual path, you can iterate through all items by specifying a higher index. Once the end of the list was reached, the API will return null.

      • OptionalrootType: EnumValue<ProjectRootType>

        Resource root to search.

      Returns LibraryEntry

      The transient entry at index, or null if no matching entry exists.

      Multiple LibraryEntry might occupy same virtual library path. Usindexe the to select which of the entries to return.

    • Returns the import progress of the package containing the specified resource.

      Parameters

      Returns number

      1 if the package has finished importing, or 0 if it is queued, unknown, or has not started.

    • Returns cached library icons for the resource at the specified identifier path.

      Parameters

      • identifierPath: LibraryIdentifierPath

        Identifier path of the resource.

      • OptionalrequestCreation: boolean

        If true and no icons are cached, requests icon generation for supported entries.

      Returns ProjectLibraryEntryIcons

      The library icons, or null if no library icons are available.

    • Returns the library icons for the resource with the provided uuid.

      Parameters

      • uuid: UUID

        The UUID of the resource.

      • OptionalrequestCreation: boolean

        If true and no icons are cached, requests icon generation for supported entries.

      Returns ProjectLibraryEntryIcons

      The library icons, or null if no library icons are available.

    • Finds the physical folder or package entry containing the specified identifier path without searching inside packages.

      Parameters

      • identifierPath: LibraryIdentifierPath

        Absolute identifier path, or a path relative to the project resources root.

      Returns LibraryEntry

      The transient folder or package entry, or null if no matching entry exists.

    • Looks up the identifier path for the resource with the specified UUID. The path is relative to the root resource folder.

      Parameters

      • uuid: UUID

        UUID of the resource.

      Returns LibraryIdentifierPath

      The project-resources-relative identifier path. Resources in other roots remain absolute. Returns an empty path if the UUID is not present in the library.

    • Looks up the identifier path for the resource. The path is relative to the root resource folder.

      Parameters

      • resource: Resource

        The resource to get the path for.

      Returns LibraryIdentifierPath

      The project-resources-relative identifier path. Resources in other roots remain absolute. Returns an empty path if the resource is null or is not present in the library.

    • Gets the entry with the specified identifierPath.

      Parameters

      Returns ResourceEntry

      The resource entry, or null if the path does not resolve to a resource.

    • Gets the resource entry with the specified uuid.

      Parameters

      • uuid: UUID

        UUID of the resource.

      Returns ResourceEntry

      The resource entry, or null if no resource was found.

    • Gets package and project metadata for the resource at the specified identifier path.

      Parameters

      • identifierPath: LibraryIdentifierPath

        Absolute identifier path, or a path relative to the project resources root.

      Returns ResourceEntryMetaData

      The combined metadata, or null if the path does not resolve to a resource with metadata.

    • Gets package and project metadata for the resource with the specified UUID.

      Parameters

      • uuid: UUID

        UUID of the resource.

      Returns ResourceEntryMetaData

      The combined metadata, or null if the UUID does not resolve to a resource with metadata.

    • Converts a project-resources-relative identifier path to an absolute filesystem path. Absolute input is returned unchanged.

      Parameters

      • identifierPath: LibraryIdentifierPath

        Absolute identifier path, or a path relative to the project resources root.

      Returns FilePath

      The corresponding absolute filesystem path.

    • Returns the serialized size of a resource and its preview data, excluding optional streaming data.

      Parameters

      Returns number

      The size in bytes, or 0 if the resource cannot be found or read.

    • Returns the serialized size of a resource and its preview data, excluding optional streaming data.

      Parameters

      Returns number

      The size in bytes, or 0 if the entry is null or cannot be read.

    • Returns the combined size of a resource's streaming-data dependencies.

      Parameters

      • uuid: UUID

        UUID of the resource.

      Returns number

      The size in bytes, or null if the resource is not streaming or its metadata is unavailable.

    • Returns the source file from which a resource was imported.

      Parameters

      Returns FilePath

      The absolute source file path, or an empty path if no source file is recorded.

    • Constructs a unique library path. If an entry already exists at libraryPath, a numeric suffix is appended to the filename until an unused path is found.

      Parameters

      Returns LibraryPath

      A unique library path.

    • Checks whether an operation is currently targeting the specified library entry.

      Parameters

      • identifierPath: LibraryIdentifierPath

        Absolute or project-resources-relative identifier path of the entry.

      Returns boolean

      True if the entry currently has an associated library operation.

    • Imports a source asset using the provided import options and stores the output assets at the provided path.

      Parameters

      • sourcePath: FilePath

        Absolute path to the asset to import.

      • libraryPath: LibraryPath

        The virtual library path at which to store the imported assets.

      • OptionalimportOptions: ImportOptions

        Optional import options to use when importing the resource. Caller must ensure the import options are of the correct type for the resource in question. If null is provided default import options are used.

      • OptionalfileInformation: ImportFileInformation

        Optional result previously returned by peekFile for the same source file. Reusing it avoids repeating importer inspection work.

      Returns void

    • Determines if the code-file at the specified uuid is dirty.

      Parameters

      • uuid: UUID

        UUID of a code resource.

      Returns boolean

      True if the generated source file differs from the packaged code resource.

      Unlike the identifier path based API, this API is not Thread safe.

    • Determines if the code-file at the specified identifierPath is dirty.

      Parameters

      Returns boolean

      True if the generated source file differs from the packaged code resource.

      Thread safe.

    • Determines whether the resource entry represents a resource with a generated source-code file.

      Parameters

      Returns boolean

      True if the resource has a code-file representation.

    • Checks whether library icons are currently being generated for the specified entry.

      Parameters

      Returns boolean

      True while icon generation is in progress.

    • Checks whether library icons are currently being generated for the resource with the specified UUID.

      Parameters

      • uuid: UUID

        UUID of the resource.

      Returns boolean

      True while icon generation is in progress.

    • Checks whether an identifier path belongs to an engine-internal library root.

      Parameters

      Returns boolean

      true if the path belongs to an engine-internal root; otherwise, false.

    • Determines whether a library entry supports library-icon generation.

      Parameters

      Returns boolean

      True if an icon can be generated for the entry.

    • Determines whether the current editor user can modify a resource.

      A resource is not modifiable when the user lacks the editor role or its package metadata marks it as read-only.

      Parameters

      Returns boolean

      true if the resource is modifiable; otherwise, false.

    • Determines whether every streaming-data dependency for a resource is present in the local library.

      Parameters

      • uuid: UUID

        UUID of the resource.

      Returns boolean

      False if the resource is missing, is not streaming, or any streaming-data dependency is unavailable.

    • Determines whether a resource has streaming-data metadata.

      Parameters

      • uuid: UUID

        UUID of the resource.

      Returns boolean

      True if the resource is configured for streaming; false if it is not streaming or cannot be found.

    • Queues a move of one library entry.

      Parameters

      Returns any

    • Queues moves for corresponding source and destination identifier paths.

      Parameters

      • oldPaths: readonly LibraryIdentifierPath[]

        Source identifier paths.

      • newPaths: readonly LibraryIdentifierPath[]

        Destination identifier paths. The array must correspond one-to-one with oldPaths.

      • Optionaloverwrite: boolean

        Whether existing destination entries may be replaced.

      Returns any

    • Peeks into the given path to a file and cache its information. The cached import information can be passed to the import call to reduce memory usage and improve performance.

      Parameters

      • importFilePath: FilePath

        Absolute path to the asset to import.

      Returns UncertainAsyncOp<ImportFileInformation, string>

      An asynchronous operation containing cached importer information, or an error if the file cannot be inspected.

    • Checks whether resources at the specified identifier path have been modified, added, or deleted on disk and updates the internal hierarchy accordingly.

      Parameters

      • identifierPath: LibraryIdentifierPath

        Identifier path of the package, folder, or resource to refresh. Folders are checked recursively.

      Returns boolean

      True if the library hierarchy changed.

    • Reimports a source asset using the provided import options and stores it at the provided path. All existing assets referencing the provided source asset path will be updated (if they are still available in the source asset). Any new assets will be stored in the package identified by destinationPath.

      Parameters

      • sourcePath: FilePath

        Absolute path to the source asset to reimport.

      • destinationPath: LibraryIdentifierPath

        Identifier path of the destination package.

      • OptionalimportOptions: ImportOptions

        Optional import options to use when importing new assets. Caller must ensure the import options are of the correct type for the resource in question. If null is provided default import options are used. Existing assets will use their current import options.

      Returns void

    • Reimports one resource from its recorded source file using its stored import options.

      Parameters

      • identifierPath: LibraryIdentifierPath

        Absolute identifier path, or a path relative to the project resources root.

      Returns void

    • Reimports all the provided resources from their source file(s). Uses the import options currently bound to the assets.

      Parameters

      • identifierPaths: LibraryIdentifierPath[]

        Identifier paths of the resources to reimport.

      • OptionalimportOptions: ImportOptions[]

        An optional array of import options where each entry corresponds to an entry in identifierPaths. The previous import options cached on the ResourceEntry will be used if the entry in importOptions is null, or the importOptions array is smaller than the index of the corresponding identifier path.

      Returns void

    • Updates a resource that is already in the library.

      Note that the write operation is executed asynchronously on a worker thread and you must not modify the resource contents until this operation completes. If this is not possible the set the clone parameter to true.

      Parameters

      • resource: Resource

        Resource instance to add to the library.

      • Optionalclone: boolean

        If true the contents of the resource will be saved as they are in the current state. This allows you to freely modify the existing copy of the resource after the call.

      Returns AsyncOp<ProjectLibraryOperationResult>

      An asynchronous operation whose result contains an error message when saving fails.

    • Searches the project library root for resources matching pattern whose types match one of types.

      Parameters

      • pattern: string

        Pattern to search for. Use * to match any sequence of characters.

      • ...types: Type[]

        Resource types to include.

      Returns ResourceEntry[]

      An array of matching ResourceEntry objects.

    • Assigns editor-specific data to a resource selected by UUID or identifier path.

      Parameters

      • options: { userData: any; uuid: Const<UUID> } | { identifierPath: string; userData: any }

        Resource identity and editor data to assign.

        • { userData: any; uuid: Const<UUID> }
          • userData: any

            The userData.

          • uuid: Const<UUID>

            The uuid of the resource.

        • { identifierPath: string; userData: any }
          • identifierPath: string

            The identifierPath of the resource.

          • userData: any

            The userData.

      Returns void

    • Assigns a library icon to the resource at the specified identifier path.

      Parameters

      • identifierPath: LibraryIdentifierPath

        Identifier path of the resource.

      • icon: Texture

        Icon to assign as preview.

      • stripAlpha: boolean

        If true, makes the stored icon fully opaque.

      Returns any

    • Assigns a library icon to the resource with the specified UUID.

      Parameters

      • uuid: UUID

        The UUID of the resource for which to assign the preview.

      • icon: Texture

        Icon to assign as preview.

      • stripAlpha: boolean

        If true, makes the stored icon fully opaque.

      Returns any

    • Caches a static library icon for the type represented by resourceEntry.

      Parameters

      Returns void

      The icon is cached for the type of the resourceEntry so it's enough to set this value once.

    • Synchronizes every generated source code file back to its corresponding package.

      Returns AsyncOp<ProjectLibraryOperationResult[]>

      An asynchronous operation containing the result of each queued package update. If no code files need synchronization, the operation completes without results.

    • Synchronizes the code resource with the specified UUID from the generated source file into its package.

      Parameters

      • uuid: UUID

        UUID of the code resource.

      Returns boolean

      True if at least one code file synchronization was queued.

    • Synchronizes the code file at the provided path to its corresponding package.

      Parameters

      • identifierPath: LibraryIdentifierPath

        Path of the entry to check, either relative to the resources folder or absolute. Can point to an individual resource or a directory/package. All sub-entries will be iterated recursively.

      Returns boolean

      True if at least one code file synchronization was queued.

    • Iterates over the provided entry and all children recursively. If any code resources are found their corresponding code files will be generated and stored in the 'Source' directory. Any existing code files will be merged based on the specified merge mode.

      Parameters

      Returns number

      The number of code files generated.

    onEntryRemove: Event<[entry: LibraryEntry]>

    Triggered immediately before an entry is removed. The transient entry remains valid during the callback.

    onEntryRemoved: Event<[identifierPath: LibraryIdentifierPath]>

    Triggered after an entry is removed. identifierPath is the former identifier path of the entry.

    onEntryAdded: Event<[entry: LibraryEntry]>

    Triggered after an entry is added to the library.

    onEntryModified: Event<
        [
            identifierPath: LibraryIdentifierPath,
            operationName: string,
            operationType: EnumValue<LibrarySubOperationType, number>,
        ],
    >

    Triggered after a library operation modifies an entry or package.

    onEntryMovedOrRenamed: Event<
        [
            oldIdentifierPath: LibraryIdentifierPath,
            newIdentifierPath: LibraryIdentifierPath,
        ],
    >

    Triggered after an entry is renamed or moved from oldIdentifierPath to newIdentifierPath.

    onEntryImported: Event<[identifierPath: LibraryIdentifierPath]>

    Triggered after an imported resource has been added to or refreshed in its package.

    onEntryLibraryIconGenerationRequested: Event<
        [identifierPath: LibraryIdentifierPath],
    >

    Triggered when library-icon generation is requested for an entry.

    onResourceTypeIconRequested: Event<[resourceEntry: ResourceEntry]>

    Triggered when the generation of a static per-type library icon is requested. The specified ResourceEntry triggered the request.

    onEntryLibraryIconUpdated: Event<[identifierPath: LibraryIdentifierPath]>

    Triggered after cached library icons for an entry are updated.

    onEntryImportFailed: Event<[errors: readonly ResourceImportError[]]>

    Triggered when an import operation completes with one or more resource errors.

    onEntryConflictStateChanged: Event<
        [identifierPath: LibraryIdentifierPath, isConflicted: boolean],
    >

    Triggered when an entry's cloud-conflict state changes.

    onCodeSyncToPackage: Event<[identifierPath: LibraryIdentifierPath]>

    Triggered after an ICodeResource is synchronized from the filesystem into its package.

    onCodeSyncToFileSystem: Event<[identifierPath: LibraryIdentifierPath]>

    Triggered when synchronization of an ICodeResource from its package to the filesystem begins.

    This event only indicates that synchronization began; it does not indicate that the filesystem counterpart was updated. Use the onCodeSyncToFileSystemUpdateComplete event to handle this event. If no change to the file-system counterpart is needed, no event will be fired. If synchronization requires a merge, onCodeSyncMergeRequest is triggered so a listener can provide merged source. If the event is not handled, the built-in Three-Way-Merge will attempt to solve the merge. If the merge failed, the event onCodeSyncToFileSystemUpdateFailed will be triggered. If the ICodeResource does not support syncing to the file system, no event will be triggered at all.

    onCodeSyncModuleDefinitionToFileSystem: Event<
        [identifierPath: LibraryIdentifierPath],
    >

    Triggered when a sync of a module definition to the filesystem begins.

    onCodeSyncModuleDefinitionToFileSystemFailed: Event<
        [identifierPath: LibraryIdentifierPath],
    >

    Triggered when a sync of a module definition to the filesystem failed.

    onCodeSyncModuleDefinitionToFileSystemComplete: Event<
        [identifierPath: LibraryIdentifierPath],
    >

    Triggered when a sync of a module definition to the filesystem completed.

    onCodeSyncToFileSystemUpdateFailed: Event<
        [identifierPath: LibraryIdentifierPath],
    >

    Triggered when updating the filesystem representation of an ICodeResource fails.

    onCodeSyncToFileSystemUpdateComplete: Event<
        [identifierPath: LibraryIdentifierPath],
    >

    Triggered after the filesystem representation of an ICodeResource is updated successfully.

    onCodeSyncMergeRequest: Event<
        [
            identifierPath: LibraryIdentifierPath,
            currentSource: string,
            newSource: string,
            oldSource: string,
        ],
        string,
    >

    Triggered when an ICodeResource requires a three-way merge. A listener may return merged source code. If no listener handles the request, the built-in merge implementation is used.

    onImportFileConsumed: Event<[sourceFilePath: FilePath]>

    Triggered when an import no longer needs its source file.