Skip to content

Commit

Permalink
fix(core): return parent vFile order is wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
NWYLZW committed Oct 8, 2023
1 parent 8aa3cfa commit 4caa0de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/virtual-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const createSetVFile = (
for (const parent of parents) {
insertIndex = vFiles.findIndex(vFile => vFile.path === parent)
if (insertIndex !== -1) break
rtVFiles.push(createVFile({ path: parent }) as VFile)
rtVFiles.unshift(createVFile({ path: parent }) as VFile)
}
return [insertIndex, rtVFiles] as const
}
Expand Down

0 comments on commit 4caa0de

Please sign in to comment.