mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 12:51:35 +02:00
* Remove ESLint disable * Unnest ProjectRootDocManager methods * Promisify `setRootDocAutomatically` * Promisify `findRootDocFileFromDirectory` * Promisify `setRootDocFromName` * Promisify `ensureRootDocumentIsSet` * Promisify `ensureRootDocumentIsValid` * Promisify `_sortFileList` * Fixup export * Call `ProjectRootDocManager.promises.setRootDocAutomatically` so mocks work * Update ProjectRootDocManager.test.mjs * Remove expects on callbacks * Add `return` on the first matching entry in `setRootDocAutomatically` See https://github.com/overleaf/internal/pull/30327#discussion_r2624011209 Co-authored-by: Brian Gough <brian.gough@overleaf.com> --------- Co-authored-by: Brian Gough <brian.gough@overleaf.com> GitOrigin-RevId: f83e8239f65776d23b49cb7a569181abc7c9a276