src/vs/workbench/services/history/browser/history.ts/HistoryService/handleEditorEventInHistory
class HistoryService:	private handleEditorEventInHistory(editor?: IEditorPane): void {

		// Ensure we have not configured to exclude input and don't track invalid inputs
		const input = editor?.input;
		if (!input || input.isDisposed() || !this.includeInHistory(input)) {
			return;
		}

		// Remove any existing entry and add to the beginning
		this.removeFromHistory(input);
		this.addToHistory(input);
	}