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

    Implements

    Index

    Constructors

    Properties

    fileService: FileService
    indexCache?: ChatSessionIndex
    logger: ILogger
    preferenceService: PreferenceService
    storageInitialized: boolean = false
    storageRoot?: URI
    storageService: StorageService
    storePromise: Promise<void> = ...
    workspaceChangeListener?: Disposable
    workspaceService: WorkspaceService

    Methods

    • Initializes the storage directory on disk, creating it if necessary and seeding it from global storage for new workspace storage locations.

      Parameters

      Returns Promise<void>

    • Sets up or tears down the workspace change listener based on the current storage scope. When scope is 'workspace', we need to listen for changing out of the first root to invalidate the cache. When scope is 'global', no workspace listener is needed at all.

      Returns Promise<void>