src/vs/workbench/contrib/editSessions/browser/editSessionsStorageService.ts/EditSessionsWorkbenchService/write
class EditSessionsWorkbenchService:	async write(editSession: EditSession): Promise<string> {
		await this.initialize(false);
		if (!this.initialized) {
			throw new Error('Please sign in to store your edit session.');
		}

		if (editSession.machine === undefined) {
			editSession.machine = await this.getOrCreateCurrentMachineId();
		}

		return this.storeClient!.writeResource('editSessions', JSON.stringify(editSession), null, undefined, createSyncHeaders(generateUuid()));
	}