Skip to content

Add support for JSX extension

Tan Le requested to merge add-jsx-support into main

What does this MR do and why?

This maps .jsx file to JavaScript tree-sitter-javascript parser. Files with .jsx extension is currently being excluded from prompt processing since it is not mapped to any of the code parser. We can see this issue by looking at the missing language label for jsx extension in Grafana.

Screenshot_2023-08-18_at_11.46.26_am

tree-sitter-javascript parser is already capable of parsing JSX content.

Edited by Tan Le

Merge request reports