Fix a on-hover message
@@ -685,7 +685,15 @@ fn get_scalar_or_linked_field_hover_content(
}
if field.is_extension {
- hover_contents.push(MarkedString::String("**Client Schema Extension**: This field was declared as a Relay Client Schema Extension, and is therefore only avalaible in Relay code. [Learn More](https://relay.dev/docs/guided-tour/updating-data/client-only-data/#client-only-data-client-schema-extensions).".to_string()))
+ let msg = match content_consumer_type {
+ ContentConsumerType::Relay => {
+ "**Client Schema Extension**: This field was declared as a Relay Client Schema Extension, and is therefore only avalaible in Relay code. [Learn More](https://relay.dev/docs/guided-tour/updating-data/client-only-data/#client-only-data-client-schema-extensions)."
+ }
+ ContentConsumerType::GraphQL => {
+ "**Client Schema Extension**: This field was declared as a GraphQL client schema extension explicitly among [these](https://fburl.com/code/9qg1gghd) files etc."
+ }
+ };
+ hover_contents.push(MarkedString::String(msg.to_string()))
}
Some(hover_contents)
}
