Datalayer VS Code Extension - v0.0.4
    Preparing search index...

    Virtual file system provider that maps Datalayer documents to clean URI scheme. Allows VS Code to display "datalayer://Space Name/Notebook.ipynb" instead of temp paths.

    const provider = DatalayerFileSystemProvider.getInstance();
    const virtualUri = provider.registerMapping('My Space/notebook.ipynb', '/tmp/real-path.ipynb');

    Implements

    • FileSystemProvider
    Index

    Constructors

    Properties

    _emitter: EventEmitter<FileChangeEvent[]> = ...
    onDidChangeFile: Event<FileChangeEvent[]> = ...

    Event fired when files change in the virtual file system.

    realToVirtual: Map<string, Uri> = ...
    virtualToReal: Map<string, string> = ...

    Methods

    • Delete a file or directory.

      Parameters

      • uri: Uri

        The URI to delete

      • options: { recursive: boolean }

        Delete options (recursive flag)

      Returns void

    • Read the contents of a directory.

      Parameters

      • uri: Uri

        The URI of the directory

      Returns [string, FileType][]

      Array of [name, type] tuples representing directory contents

    • Read the contents of a file.

      Parameters

      • uri: Uri

        The URI of the file to read

      Returns Uint8Array

      The file contents as a byte array

    • Register a mapping between a virtual URI and a real file path.

      Parameters

      • virtualPath: string

        Clean path for the virtual URI (e.g., "Space Name/Notebook.ipynb")

      • realPath: string

        Actual file system path to the document

      Returns Uri

      The created virtual URI with datalayer:// scheme

    • Rename or move a file or directory.

      Parameters

      • oldUri: Uri

        The current URI

      • newUri: Uri

        The new URI

      • options: { overwrite: boolean }

        Rename options (overwrite flag)

      Returns void

    • Get metadata about a file or directory.

      Parameters

      • uri: Uri

        The URI of the file or directory

      Returns FileStat

      Metadata about the file or directory

    • Watch a file or directory for changes.

      Parameters

      • _uri: Uri

        The URI to watch

      Returns Disposable

      A disposable that stops watching when disposed

    • Write data to a file.

      Parameters

      • uri: Uri

        The URI of the file to write

      • content: Uint8Array

        The content to write

      • options: { create: boolean; overwrite: boolean }

        Write options (create and overwrite flags)

      Returns void