245
}
246
}
248
>
try {
249
>
const content = stringifyEntryWithFallback(session);
250
>
const storageLocation = this.getTransferredSessionStorageLocation(session.sessionResource);
251
>
await this.fileService.writeFile(storageLocation, VSBuffer.fromString(content));
252
>
} catch (e) {
253
this.reportError('sessionWrite', 'Error writing chat session', e);
254
return;
255
}
257
>
index[workspaceKey] = transferData;
258
>
try {
259
>
this.storageService.store(ChatTransferIndexStorageKey, index, StorageScope.PROFILE, StorageTarget.MACHINE);
260
>
} catch (e) {
261
this.reportError('storeTransferSession', 'Error storing chat transfer session', e);
262
}
264
265
private getTransferredSessionIndex(): IChatTransferIndex {