ReadonlyonEvent fired when files change in the virtual file system.
Deletes a file or directory and removes its mapping.
The URI of the resource to delete.
Delete options controlling recursive behavior.
Whether to delete directory contents recursively.
Clean up all mappings.
Gets the real file path for a virtual URI.
Virtual URI to resolve to a local file path.
Real file path or undefined if no mapping exists.
Gets the virtual URI for a real file path.
Real file path to resolve to a virtual URI.
Virtual URI or undefined if no mapping exists.
Initializes the provider with extension context for persistent storage. Restores any previously saved mappings from globalState.
Extension context for accessing globalState.
Reads the contents of a file from the mapped real path. Mappings are restored from persistent storage during initialization, so this should always find the real path for valid documents.
The URI of the file to read.
The file contents as a byte array.
Registers a mapping between a virtual URI and a real file path. Persists the mapping to globalState for restoration after restart.
Clean path for the virtual URI such as "Space Name/Notebook.ipynb".
Actual file system path to the document on disk.
The created virtual URI with datalayer:// scheme.
Removes a mapping for a closed document. Updates persistent storage accordingly.
Virtual URI whose mapping should be removed.
Renames or moves a file or directory and updates mappings.
The current URI of the resource.
The target URI after the rename or move.
Rename options controlling overwrite behavior.
Whether to overwrite if target already exists.
Watches a file or directory for changes.
The URI to watch for changes.
A disposable that stops watching when disposed.
Writes data to a file at the mapped real path.
The URI of the file to write.
The binary content to write to disk.
Write options controlling create and overwrite behavior.
Whether to create the file if it does not exist.
Whether to overwrite existing file content.
StaticgetGets the singleton instance of DatalayerFileSystemProvider.
The singleton provider instance.
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. Persists mappings across VS Code restarts using globalState.