Skip to content

GraphQL code intel doesn't work

Created by: felixfbecker

I have the GraphQL extension enabled, and with https://github.com/sourcegraph/sourcegraph/pull/8099 and https://github.com/sourcegraph/code-intel-extensions/pull/206 my understanding is that GraphQL schema files like https://sourcegraph.com/github.com/sourcegraph/sourcegraph/-/blob/cmd/frontend/graphqlbackend/schema.graphql#L541:12 (latest master) should have code intel.

But there are no symbols found in the symbols sidebar, and no hovers for types from the schema - instead, I do get hovers that point to same-name symbols found in Go code:

image

The symbols query comes back empty:

image

image

It seems like then the codeintel extension falls back to searching the whole repo, but it doesn't filter it to only GraphQL files (I could see why this may be desirable, but am curious if this is as-designed).

Now, what's weird is that on some commits, I do get symbols and also same-file hovers:

image

https://sourcegraph.com/github.com/sourcegraph/sourcegraph@133f9631a97f991328048f455f69b62cb38a9c16/-/blob/cmd/frontend/graphqlbackend/schema.graphql#L541:12

Also, the extension page of the GraphQL page seems to show screenshots of Python code?