Skip to content

Commit

Permalink
fix autoload path lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
ksjogo committed Jan 9, 2022
1 parent 5302d9b commit 0981b5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse_node/parse_source_file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const parseSourceFile = (
const { statements } = node
const sourceInfo = props.project
.sourceFiles()
.find((file) => file.fsPath === node.fileName)
.find((file) => file.fsPath === path.normalize(node.fileName))

// props.usages = utils.collectVariableUsage(node)
props.isAutoload = sourceInfo?.isAutoload() ?? false
Expand Down

0 comments on commit 0981b5a

Please sign in to comment.