diff --git a/.changeset/bright-socks-explain.md b/.changeset/bright-socks-explain.md new file mode 100644 index 0000000000..26214a2100 --- /dev/null +++ b/.changeset/bright-socks-explain.md @@ -0,0 +1,5 @@ +--- +"@inlang/sdk": patch +--- + +Remove the `fileQueueSettled` wait after the initial filesystem sync in `loadProjectFromDirectory` to avoid hangs when file operations never settle. diff --git a/packages/sdk/src/project/loadProjectFromDirectory.ts b/packages/sdk/src/project/loadProjectFromDirectory.ts index 9e34d9a010..2d57791e4a 100644 --- a/packages/sdk/src/project/loadProjectFromDirectory.ts +++ b/packages/sdk/src/project/loadProjectFromDirectory.ts @@ -2,7 +2,6 @@ import { newProject } from "./newProject.js"; import { loadProjectInMemory } from "./loadProjectInMemory.js"; import { closeLix, - fileQueueSettled, openLixInMemory, toBlob, type Lix, @@ -98,7 +97,6 @@ export async function loadProjectFromDirectory( lix: tempLix, syncInterval: undefined, }); - await fileQueueSettled({ lix: tempLix }); // TODO call tempProject.lix.settled() to wait for the new settings file, and remove reload of the proejct as soon as reactive settings has landed // NOTE: we need to ensure two things: