Clears cached document from filesystem and memory.
Document UID to clear.
Cleans up temporary files and metadata on disposal. Removes cached documents and clears runtime tracking.
Ensures a runtime exists for the document. Verifies cached runtime status or creates a new one if needed.
Document UID needing runtime.
Runtime instance or undefined if creation fails.
Gets list of active runtime pod names.
Array of runtime pod names.
Gets document metadata by VS Code URI. Handles both real filesystem and virtual URI schemes.
The target document identifier to look up.
Document metadata if found.
Gets document metadata by document ID.
Document UID.
Document metadata if found.
Gets document metadata by path. Resolves virtual URIs to real paths for lookup.
Virtual or real filesystem path.
Document metadata if found.
Opens a document from Datalayer platform. Downloads content, caches locally, and creates virtual URI for VS Code.
The document to open.
OptionalspaceId: stringID of the containing space.
OptionalspaceName: stringName of the containing space.
Virtual URI for the opened document.
StaticgetGets the singleton instance of DocumentBridge (synchronous). Use getInstanceAsync() for better reliability during startup.
Optionalcontext: ExtensionContextExtension context (required on first call).
Optionaldatalayer: DatalayerClientDatalayer instance (required on first call).
The singleton instance.
StaticgetGets the singleton instance of DocumentBridge. Waits for extension initialization if necessary.
Optionalcontext: ExtensionContextExtension context (required on first call).
Optionaldatalayer: DatalayerClientDatalayer instance (required on first call).
The singleton instance.
Manages document lifecycle between Datalayer platform and local filesystem. Singleton service that handles document caching and runtime association.