src/vs/workbench/services/editor/common/editorGroupFinder.ts/matchesEditor
function matchesEditor(typedEditor: EditorInput, editor: EditorInput | IUntypedEditorInput): boolean {
	if (typedEditor.matches(editor)) {
		return true;
	}

	// Note: intentionally doing a "weak" check on the resource
	// because `EditorInput.matches` will not work for untyped
	// editors that have no `override` defined.
	//
	// TODO@lramos15 https://github.com/microsoft/vscode/issues/131619
	if (typedEditor.resource) {
		return isEqual(typedEditor.resource, EditorResourceAccessor.getCanonicalUri(editor));
	}

	return false;
}