This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
Inconsistent behavior between search and sidebar when modeline overrides language specified by extension #60580
Labels
team/search-platform
Issues owned by the search platform team
Related items:
Search query in screenshot, file in screenshot
One possible fix here would be that once we have a high performance API for fetching file contents (Slack discussion)
we can also do content-based language detection for the icons and ensure consistent behavior.
As a quick spot check, I went through ~10 different files which have a C++ modeline but a C extension, and all of them seem to actually be valid C and not using any C++ features. So I'm not sure why they got marked as C++ with the modeline. 🤷🏽 However, I'd argue that the discrepancy is still confusing.
/cc @sourcegraph/search-platform
The text was updated successfully, but these errors were encountered: