215
216
export function createNullSessionDataService(): ISessionDataService {
218
>
_serviceBrand: undefined,
219
>
getSessionDataDir: session => URI.from({ scheme: Schemas.inMemory, path: `/session-data${session.path}` }),
220
>
getSessionDataDirById: sessionId => URI.from({ scheme: Schemas.inMemory, path: `/session-data/${sessionId}` }),
221
>
openDatabase: () => { throw new Error('not implemented'); },
222
>
tryOpenDatabase: async () => undefined,
223
>
deleteSessionData: async () => { },
224
>
onWillDeleteSessionData: Event.None,
225
>
cleanupOrphanedData: async () => { },
226
>
whenIdle: async () => { },
227
>
};
228
>
}
229
230
export function encodeString(text: string): Uint8Array {