Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/highlight: always normalize filepath extensions before sendi…
…ng to syntect_server syntect_server expects lowercase filepath extensions only in https://github.com/sourcegraph/syntect_server#supported-file-extensions technically, it is being correct here because the actual syntax definitions describe exactly which file extensions they should match in a case sensitive manner. However, in practice this is not ideal because there is not usually an overlap of case-sensitivity in file extensions describing different syntaxes, and it is somewhat common for users to find they have e.g. `.CPP` and `.cpp` files for whatever reason in their repos. Thus, we lowercase file extensions before sending the request to syntect_server. Fixes #13007 Fixes #11327
- Loading branch information
Showing
2 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters