Can't navigate to rems from search results of Cmd+P when the parent of rems is collapsed in document

Is this intended or is it a bug?

Bug. I believe the intended behaviour is scrolling to the rem when searching for it and it’s in the same document, but if it’s hidden, it can’t be scrolled to.