src/vs/workbench/common/editor/sideBySideEditorInput.ts/SideBySideEditorInput/matches
class SideBySideEditorInput:	override matches(otherInput: IEditorInput | IUntypedEditorInput): boolean {
		if (super.matches(otherInput)) {
			return true;
		}

		if (isResourceDiffEditorInput(otherInput)) {
			return this.primary.matches(otherInput.modifiedInput) && this.secondary.matches(otherInput.originalInput);
		}

		if (otherInput instanceof SideBySideEditorInput) {
			return this.primary.matches(otherInput.primary) && this.secondary.matches(otherInput.secondary);
		}

		return false;
	}