src/vs/workbench/services/workingCopy/electron-sandbox/workingCopyHistoryService.ts/NativeWorkingCopyHistoryService/registerListeners
class NativeWorkingCopyHistoryService:	private registerListeners(): void {
		if (!this.isRemotelyStored) {

			// Local: persist all on shutdown
			this.lifecycleService.onWillShutdown(e => this.onWillShutdown(e));

			// Local: schedule persist on change
			this._register(Event.any(this.onDidAddEntry, this.onDidChangeEntry, this.onDidReplaceEntry, this.onDidRemoveEntry)(() => this.onDidChangeModels()));
		}
	}