Add language field to the Blob GraphQL query
Description
In !76525 (diffs) we added support for highlight.js.
As part of highlighting source code using HighlightJS we need a way to tell highlight.js what language definition to use for highlighting the content.
This issue is about adding a language field to the Blob Info GraphQL query (project > repository > blobs > nodes
).
Benefits
We currently have auto-detection enabled which loads only a subset of common languages. Auto-detection also has a larger footprint since we're not loading one specific language.
If we can determine the language of a blob upfront we can ensure that we only import and register a specific language thus reducing the overall footprint.
Edited by Jacques Erasmus