diff options
| author | Adam <[email protected]> | 2025-10-16 14:53:44 -0500 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-10-16 14:53:44 -0500 |
| commit | 47d9e017657c4d265dea53bd86d727097a7ba282 (patch) | |
| tree | e278fb3983f13f6fa474228cf5031c3b4680f566 /packages/desktop/src/context/local.tsx | |
| parent | fc18fc8a08e703a54553e714344e638673b2d313 (diff) | |
| download | opencode-47d9e017657c4d265dea53bd86d727097a7ba282.tar.gz opencode-47d9e017657c4d265dea53bd86d727097a7ba282.zip | |
wip: css/ui and desktop work
Diffstat (limited to 'packages/desktop/src/context/local.tsx')
| -rw-r--r-- | packages/desktop/src/context/local.tsx | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/packages/desktop/src/context/local.tsx b/packages/desktop/src/context/local.tsx index e9fe8ee5c..c60e4520e 100644 --- a/packages/desktop/src/context/local.tsx +++ b/packages/desktop/src/context/local.tsx @@ -131,31 +131,31 @@ function init() { const changeset = createMemo(() => new Set(sync.data.changes.map((f) => f.path))) const changes = createMemo(() => Array.from(changeset()).sort((a, b) => a.localeCompare(b))) - createEffect((prev: FileStatus[]) => { - const removed = prev.filter((p) => !sync.data.changes.find((c) => c.path === p.path)) - for (const p of removed) { - setStore( - "node", - p.path, - produce((draft) => { - draft.status = undefined - draft.view = "raw" - }), - ) - load(p.path) - } - for (const p of sync.data.changes) { - if (store.node[p.path] === undefined) { - fetch(p.path).then(() => { - if (store.node[p.path] === undefined) return - setStore("node", p.path, "status", p) - }) - } else { - setStore("node", p.path, "status", p) - } - } - return sync.data.changes - }, sync.data.changes) + // createEffect((prev: FileStatus[]) => { + // const removed = prev.filter((p) => !sync.data.changes.find((c) => c.path === p.path)) + // for (const p of removed) { + // setStore( + // "node", + // p.path, + // produce((draft) => { + // draft.status = undefined + // draft.view = "raw" + // }), + // ) + // load(p.path) + // } + // for (const p of sync.data.changes) { + // if (store.node[p.path] === undefined) { + // fetch(p.path).then(() => { + // if (store.node[p.path] === undefined) return + // setStore("node", p.path, "status", p) + // }) + // } else { + // setStore("node", p.path, "status", p) + // } + // } + // return sync.data.changes + // }, sync.data.changes) const changed = (path: string) => { const node = store.node[path] |
