MCPcopy Create free account
hub / github.com/IAmUnbounded/devctx / updateStatusBar

Function updateStatusBar

devctx/vscode-extension/src/extension.ts:121–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119}
120
121async 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}

Callers 2

activateFunction · 0.85
saveContextFunction · 0.85

Calls 1

runDevCtxFunction · 0.85

Tested by

no test coverage detected