Antoine Clausse
|
16b83b128b
|
[web] Promisify ProjectRootDocManager (#30327)
* 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
|
2026-01-08 09:05:12 +00:00 |
|