MaibornWolff / metric-gardener

BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

Bug: restructure file reading/tree parsing to be guaranteed to happen before any other operation requiring the Language #166

Closed ResistantBear closed 6 months ago

ResistantBear commented 7 months ago

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

  1. We execute TreeParser/the reading of the file before any query is build for that file.
  2. We set the language in the ParseFile for that file.