(scope: ServerScope, directory: string)
| 37 | return state.get(key(scope, directory)) |
| 38 | }, |
| 39 | pending(scope: ServerScope, directory: string) { |
| 40 | const id = key(scope, directory) |
| 41 | const current = state.get(id) |
| 42 | if (current && current.status !== "pending") return |
| 43 | state.set(id, { status: "pending" }) |
| 44 | }, |
| 45 | ready(scope: ServerScope, directory: string) { |
| 46 | const id = key(scope, directory) |
| 47 | const next = { status: "ready" } as const |
no test coverage detected