Add a status-bar widget showing how many error reports are in the current errors-ai.log, so a new error is visible without opening the tool window. (Floated as a "next" idea in the README.)
What to do
In the :plugin module:
- Implement a
com.intellij.openapi.wm.StatusBarWidgetFactory (+ a StatusBarWidget, e.g. a StatusBarWidget.TextPresentation) that renders something like stacktale: 3.
- Register it in
plugin/src/main/resources/META-INF/plugin.xml via <statusBarWidgetFactory .../>.
- Source the count from the same place
StacktalePanel already reads/polls the log (reuse the parse + the existing poll so the two stay consistent — don't add a second watcher).
- Clicking the widget should activate the Stacktale tool window (
ToolWindowManager.getInstance(project).getToolWindow("Stacktale").activate(...)).
How to verify
./gradlew runIde, open a project with an errors-ai.log, and confirm the count shows and updates as reports arrive. ./gradlew test stays green.
Files: a new widget/factory class under plugin/src/main/java/.../idea/, plugin.xml.
Add a status-bar widget showing how many error reports are in the current
errors-ai.log, so a new error is visible without opening the tool window. (Floated as a "next" idea in the README.)What to do
In the
:pluginmodule:com.intellij.openapi.wm.StatusBarWidgetFactory(+ aStatusBarWidget, e.g. aStatusBarWidget.TextPresentation) that renders something likestacktale: 3.plugin/src/main/resources/META-INF/plugin.xmlvia<statusBarWidgetFactory .../>.StacktalePanelalready reads/polls the log (reuse the parse + the existing poll so the two stay consistent — don't add a second watcher).ToolWindowManager.getInstance(project).getToolWindow("Stacktale").activate(...)).How to verify
./gradlew runIde, open a project with anerrors-ai.log, and confirm the count shows and updates as reports arrive../gradlew teststays green.Files: a new widget/factory class under
plugin/src/main/java/.../idea/,plugin.xml.