Skip to content

feat: status-bar widget with the errors-ai.log error count #4

Description

@GabrielBBaldez

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:

  1. Implement a com.intellij.openapi.wm.StatusBarWidgetFactory (+ a StatusBarWidget, e.g. a StatusBarWidget.TextPresentation) that renders something like stacktale: 3.
  2. Register it in plugin/src/main/resources/META-INF/plugin.xml via <statusBarWidgetFactory .../>.
  3. 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).
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions