src/vs/workbench/services/history/browser/history.ts/HistoryService/handleNonTextEditorEventInNavigationStack
class HistoryService:	private handleNonTextEditorEventInNavigationStack(editor: IEditorPane): void {
		if (!editor.input) {
			return;
		}

		const currentStack = this.navigationStack[this.navigationStackIndex];
		if (currentStack && this.matches(editor.input, currentStack.editor)) {
			return; // do not push same editor input again
		}

		this.addToNavigationStack(editor.input);
	}