Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/bright-socks-explain.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 0 additions & 2 deletions packages/sdk/src/project/loadProjectFromDirectory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { newProject } from "./newProject.js";
import { loadProjectInMemory } from "./loadProjectInMemory.js";
import {
closeLix,
fileQueueSettled,
openLixInMemory,
toBlob,
type Lix,
Expand Down Expand Up @@ -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:
Expand Down