Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

GraphQL code intel doesn't work #9756

Closed
@felixfbecker

Description

@felixfbecker

I have the GraphQL extension enabled, and with https://github.com/sourcegraph/sourcegraph/pull/8099 and sourcegraph/code-intel-extensions#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?

Metadata

Metadata

Assignees

Labels

bugAn error, flaw or fault that produces an incorrect or unexpected result, or behavior.symbolsteam/graphGraph Team (previously Code Intel/Language Tools/Language Platform)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions