()
| 162 | } |
| 163 | |
| 164 | function listSessions() { |
| 165 | return sdk.client.session |
| 166 | .list({ start: Date.now() - 30 * 24 * 60 * 60 * 1000, ...sessionListQuery() }) |
| 167 | .then((x) => (x.data ?? []).toSorted((a, b) => a.id.localeCompare(b.id))) |
| 168 | } |
| 169 | |
| 170 | event.subscribe((event, { directory, workspace }) => { |
| 171 | switch (event.type) { |
no test coverage detected