src/vs/platform/state/electron-main/stateMainService.ts/StateMainService/init
class StateMainService:	async init(): Promise<void> {
		try {
			// TODO@bpasero remove legacy migration eventually
			await Promises.move(this.legacyStateFilePath.fsPath, this.stateFilePath.fsPath);
		} catch (error) {
			if (error.code !== 'ENOENT') {
				this.logService.error(error);
			}
		}

		return this.fileStorage.init();
	}