In the TreeParser.ts, we may change the grammar used for the file to TSX based on the file content. We however still use queries based upon the Information in the ParseFile, which is still only based upon the file extension. We have to make sure that
We execute TreeParser/the reading of the file before any query is build for that file.
We set the language in the ParseFile for that file.
In the TreeParser.ts, we may change the grammar used for the file to TSX based on the file content. We however still use queries based upon the Information in the ParseFile, which is still only based upon the file extension. We have to make sure that