Add a status-bar item showing how many error reports are in the current errors-ai.log, so you notice new errors without opening the view.
What to do
In src/extension.ts:
- Create a
vscode.StatusBarItem (align left) in activate(), e.g. text $(bug) 3, tooltip stacktale: 3 error reports.
- Update its text whenever the reports refresh — the provider already re-reads on the
FileSystemWatcher event and on the stacktale.refresh command; hook the count update into the same place (the count is parseReports(...).length).
- Set the item's
command to stacktale.reports.focus (reveals the view) so a click jumps to the list.
- Hide the item when there's no
errors-ai.log in the workspace; show it when one is found. Remember to context.subscriptions.push(...) it.
How to verify
F5 to launch the Extension Development Host, open a project with an errors-ai.log, and confirm the count appears and updates as reports are added. npm run compile must stay clean (strict TS).
File: src/extension.ts (plus a line in package.json only if you choose to gate visibility with a when context).
Add a status-bar item showing how many error reports are in the current
errors-ai.log, so you notice new errors without opening the view.What to do
In
src/extension.ts:vscode.StatusBarItem(align left) inactivate(), e.g. text$(bug) 3, tooltipstacktale: 3 error reports.FileSystemWatcherevent and on thestacktale.refreshcommand; hook the count update into the same place (the count isparseReports(...).length).commandtostacktale.reports.focus(reveals the view) so a click jumps to the list.errors-ai.login the workspace; show it when one is found. Remember tocontext.subscriptions.push(...)it.How to verify
F5 to launch the Extension Development Host, open a project with an
errors-ai.log, and confirm the count appears and updates as reports are added.npm run compilemust stay clean (strict TS).File:
src/extension.ts(plus a line inpackage.jsononly if you choose to gate visibility with awhencontext).