Hierarchy

  • VirtualTreeContainer
    • VirtualTreeContainerExtra

Constructors

  • Parameters

    • virtualFs: VirtualDirectory[]

    Returns VirtualTreeContainerExtra

Methods

  • Designed for recreating virtual files from file paths and their buffer content This was created to support use of MetadataResolver with git diff results where the modified files and their content can be provided but the files don't actually exist on the filesystem

    Parameters

    • paths: string[]

      full paths to files

    • fileBufferByPath: Map<string, Buffer<ArrayBufferLike>>

      map of file paths to their buffer content

    Returns VirtualTreeContainer

    VirtualTreeContainer

  • Designed for recreating virtual files from a git ref This was created to support use of MetadataResolver with git diff results where the modified files and their content can be provided but the files don't actually exist on the filesystem

    Parameters

    • ref: string

      git ref

    • dir: string

      git dir

    • includeBufferForFiles: string[]

      full paths to modified files

    Returns Promise<VirtualTreeContainer>

    VirtualTreeContainer