src/vs/platform/storage/common/storage.ts/AbstractStorageService/flush
class AbstractStorageService:	async flush(): Promise<void> {

		// Signal event to collect changes
		this._onWillSaveState.fire({ reason: WillSaveStateReason.NONE });

		// Await flush
		await Promises.settled([
			this.getStorage(StorageScope.GLOBAL)?.whenFlushed() ?? Promise.resolve(),
			this.getStorage(StorageScope.WORKSPACE)?.whenFlushed() ?? Promise.resolve()
		]);
	}