()
| 25 | >() |
| 26 | |
| 27 | function deferred() { |
| 28 | const box = { resolve: (_: State) => {} } |
| 29 | const promise = new Promise<State>((resolve) => { |
| 30 | box.resolve = resolve |
| 31 | }) |
| 32 | return { promise, resolve: box.resolve } |
| 33 | } |
| 34 | |
| 35 | export const Worktree = { |
| 36 | get(scope: ServerScope, directory: string) { |