Skip to content

Reference Panel: Inconsistent behaviour in search-based go to definition

Created by: macraig

Problem

When clicking on a definition in a file with search-based code nav, the panel expands Definitions inconsistently. See example below, where for one definition the ref panel shows Definitions expanded by default, while in the second case they are collapsed by default.

Image

Link to file to reproduce: https://sourcegraph.sourcegraph.com/github.com/sourcegraph/sourcegraph/-/blob/cmd/frontend/graphqlbackend/insights.graphql?L17:6#tab=references