src/vs/platform/userDataSync/common/globalStateSync.ts/formatAndStringify
function formatAndStringify(globalState: IGlobalState): string {
	const storageKeys = globalState.storage ? Object.keys(globalState.storage).sort() : [];
	const storage: IStringDictionary<IStorageValue> = {};
	storageKeys.forEach(key => storage[key] = globalState.storage[key]);
	globalState.storage = storage;
	const content = JSON.stringify(globalState);
	const edits = format(content, undefined, {});
	return applyEdits(content, edits);
}