()
| 119 | } |
| 120 | |
| 121 | async function updateStatusBar() { |
| 122 | try { |
| 123 | const { stdout } = await runDevCtx("log -n 1"); |
| 124 | if (stdout.includes("[")) { |
| 125 | // Extract timestamp from log output |
| 126 | const match = stdout.match(/\[([^\]]+)\]/); |
| 127 | if (match) { |
| 128 | statusBarItem.text = `$(history) DevCtx: ${match[1]}`; |
| 129 | statusBarItem.show(); |
| 130 | return; |
| 131 | } |
| 132 | } |
| 133 | statusBarItem.text = "$(history) DevCtx"; |
| 134 | statusBarItem.show(); |
| 135 | } catch { |
| 136 | statusBarItem.text = "$(history) DevCtx: No context"; |
| 137 | statusBarItem.show(); |
| 138 | } |
| 139 | } |
no test coverage detected