Skip to content

Conversation

@Daan0709
Copy link
Contributor

  • Now only requests folder contents when actually loading the folder.
  • Sorts the filetree by directory first, then .xml files treated like folders, and then other files

Closes #173

@Daan0709 Daan0709 self-assigned this Jan 13, 2026
@sonarqubecloud
Copy link

@Daan0709 Daan0709 marked this pull request as ready for review January 14, 2026 09:07
@Daan0709 Daan0709 requested a review from Matthbo January 14, 2026 09:07
}

loadFileTree()
void loadFileTree()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does void here do?

Comment on lines +80 to +83
if (a.type !== b.type) {
return a.type === 'DIRECTORY' ? -1 : 1
}
return a.name.localeCompare(b.name)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sorted function is the same as the one used for the root, maybe you could reuse that instead recreating it here and possibly having to edit both?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cache file structures for quicker loading

3 participants