Skip to content

Fix #187: Report warnings and infos from get_errors - #516

Open
Lars Vogel (vogella) wants to merge 1 commit into
microsoft:mainfrom
vogellacompany:get-errors-all-severities
Open

Lars Vogel (vogella) wants to merge 1 commit into
microsoft:mainfrom
vogellacompany:get-errors-all-severities

Conversation

@vogella

Copy link
Copy Markdown
Contributor

The get_errors tool only passed error markers to the model, so Copilot could not see the warnings and infos that the user sees in the Problems view, which is the gap discussed in #187. It now reports every problem marker of the requested files with its severity, line number and message, errors first and each group ordered by line, and states when a file has no problems instead of returning an empty result. Each problem is one readable line instead of the raw marker dump, which also keeps the tool output shorter for the model. The tool keeps its name and input schema, only its description mentions the additional severities. Fixes #187.

The get_errors tool only returned error markers, printed as raw marker dumps, so Copilot could not see the warnings and infos the Problems view shows. It now lists every problem marker of the requested files with its severity, line and message, errors first, and says when a file has no problems.

Assisted-by: multiple AI agents and layers of automated tooling 🤖

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the change extending get_errors to include warning and informational diagnostics.

No open issues 🎉

What changed in this PR

Extends get_errors to report warnings and informational problems alongside errors, addressing #187’s gap in Copilot’s access to Eclipse Problems view diagnostics.

Changes:

  • Formats problems with severity, optional line number, and message, ordered by severity and then line.
  • Explicitly reports files with no problems and updates tool descriptions without changing the input structure.
  • Adds tests for severity ordering, missing line numbers, and empty marker lists.
File Description
com.microsoft.copilot.eclipse.ui/​src/​com/​microsoft/​copilot/​eclipse/​ui/​chat/​tools/​GetErrorsTool.java Reports all problem severities in readable, sorted output.
com.microsoft.copilot.eclipse.ui.test/​src/​com/​microsoft/​copilot/​eclipse/​ui/​chat/​tools/​GetErrorsToolTests.java Adds formatting, ordering, and empty-result tests.

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] Enable access to the Problems view

2 participants