Skip to content

Commit

Permalink
Add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfheij-sil committed Dec 22, 2023
1 parent 3df24d7 commit b848a7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/extension-host/services/project-lookup.service-host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ async function getProjectUris(): Promise<string[]> {
// Get all the directories in the projects root
let entries = await nodeFS.readDir(PROJECTS_ROOT_URI);
if (entries.directory.length === 0) {
// TODO: This is a temporary solution that waits for a project directory when none are found.
// Ideally we would want to run `reloadMetadata()` whenever
// a project is added to or removed from the projects directory.
// https://github.com/paranext/paranext-core/issues/691
await wait(5000);
entries = await nodeFS.readDir(PROJECTS_ROOT_URI);
}
Expand Down

0 comments on commit b848a7b

Please sign in to comment.