Fix incorrect y-websocket event name in sync wait

This commit is contained in:
2026-07-22 18:07:19 -04:00
parent 43c8cfd85a
commit 7b0cc2a807
+1 -1
View File
@@ -688,7 +688,7 @@ async function tryOpenCollab(file: string, diskContent: string) {
);
const synced = await new Promise<boolean>((resolve) => {
session.provider.once("synced", (isSynced: boolean) => resolve(isSynced));
session.provider.once("sync", (isSynced: boolean) => resolve(isSynced));
}).catch(() => false);
if (app.activePath !== file) {