src/vs/platform/storage/browser/storageService.ts/IndexedDBStorageDatabase/doUpdateItems
class IndexedDBStorageDatabase:	private async doUpdateItems(request: IUpdateRequest): Promise<void> {

		// Return early if the request is empty
		const toInsert = request.insert;
		const toDelete = request.delete;
		if ((!toInsert && !toDelete) || (toInsert?.size === 0 && toDelete?.size === 0)) {
			return;
		}

		// Update `ItemTable` with inserts and/or deletes
		return new Promise<void>(async (resolve, reject) => {
			const db = await this.whenConnected;

			const transaction = db.transaction(IndexedDBStorageDatabase.STORAGE_OBJECT_STORE, 'readwrite');
			transaction.oncomplete = () => resolve();
			transaction.onerror = () => reject(transaction.error);

			const objectStore = transaction.objectStore(IndexedDBStorageDatabase.STORAGE_OBJECT_STORE);

			// Inserts
			if (toInsert) {
				for (const [key, value] of toInsert) {
					objectStore.put(value, key);
				}
			}

			// Deletes
			if (toDelete) {
				for (const key of toDelete) {
					objectStore.delete(key);
				}
			}
		});
	}