Options
All
  • Public
  • Public/Protected
  • All
Menu

Cache for topic metadata.

Hierarchy

  • MetadataCache

Index

Constructors

constructor

Accessors

hasOpenProject

  • get hasOpenProject(): boolean

isPopulated

  • get isPopulated(): boolean

project

projectDir

  • get projectDir(): string

projectFile

  • get projectFile(): string

topicChanges

topicCount

  • get topicCount(): number

Methods

closeProject

  • closeProject(): Promise<void>

ensurePopulated

  • ensurePopulated(progress?: Observer<string>): Promise<boolean>
  • Ensure that the cache is populated.

    Parameters

    • Optional progress: Observer<string>

      An optional observer used to report progress.

    Returns Promise<boolean>

    true, if the cache was successfully populated; otherwise, false.

flush

  • flush(clearWorkspaceState?: boolean): Promise<void>
  • Flush the metadata cache.

    Parameters

    • Optional clearWorkspaceState: boolean

      Also clear any state data persisted in workspace state?

    Returns Promise<void>

getTopic

  • Get the metadata for the topic (if any) associated with the specified UID.

    throws

    MetadataCacheError The cache does not current have an open project.

    Parameters

    • uid: string

      The target UID.

    Returns TopicMetadata | null

    The metadata, or null if no topic was found with the specified Id.

getTopics

  • Get metadata for some or all of the topics in the cache.

    throws

    MetadataCacheError The cache does not current have an open project.

    Parameters

    • Optional uidPrefix: string

      If specified, only topics whose UID start with the specified prefix will be returned.

    Returns TopicMetadata[]

    The topic metadata.

openProject

  • openProject(docfxProjectFile: string): Promise<void>
  • Open a DocFX project.

    Parameters

    • docfxProjectFile: string

      The DocFX project file.

    Returns Promise<void>

persist

  • persist(): Promise<void>

Generated using TypeDoc