Skip to content

Function: createLocalFsProvider() ​

ts
function createLocalFsProvider(config): WorkspacePersistenceProvider;

Defined in: application/services/persistence/local-fs-persistence-provider.ts:336

Creates a WorkspacePersistenceProvider (id local-fs) that stores each workspace as a JSON file in a user-chosen folder. The chosen directory handle is kept in IndexedDB so the folder can be reused across sessions. connect accepts openPicker or forcePicker to always show the directory picker; otherwise a stored handle is reused when available. Snapshot ids are file names.

Parameters ​

ParameterType
configLocalFsPersistenceConfig

Returns ​

WorkspacePersistenceProvider