Skip to content

Commit

Permalink
fix if not parser for language
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmacarthy committed Apr 29, 2024
1 parent 357b5f0 commit 344587e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/extension/parser-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export const getParser = async (
const newFileExtension = path.extname(filePath).slice(1)
const language = WASM_LANGAUAGES[newFileExtension]

if (!language) return undefined

if (newFileExtension === fileExtension && parser) return parser

fileExtension = newFileExtension
Expand Down

0 comments on commit 344587e

Please sign in to comment.