Enable Roo Code to Read VS Code Diagnostics via getDiagnostics()
#2414
Replies: 2 comments
-
Hi, thanks for the feedback! We do attempt to use it in a few places but I'm sure we could do more with it: https://github.com/search?q=repo%3ARooVetGit%2FRoo-Code%20getdiagnostics&type=code Anything in particular that seems missing? Thank you! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response! I wanted to highlight a specific scenario that could really benefit from deeper integration of getDiagnostics(): When I’m using the AI agent in CODE mode, I often prompt it to generate code. It runs and then tells me “Task complete” — but when I check the Problems panel, there’s still a long list of warnings that haven’t been addressed. Right now, I have to go through those diagnostics manually, copy each message one by one, and then re-prompt the AI to fix them — which breaks the flow. 💡 Suggested Enhancement It would be incredibly helpful if the AI agent could: This way, the AI would feel more aware of what’s still broken or needs cleanup — and could even proactively fix the remaining issues without a second prompt. Happy to help test if this makes it into a future release! Thanks again 🙌 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Roo Code Team 👋,
First off, thanks for building such a powerful and developer-friendly AI assistant. Roo Code is shaping up to be a fantastic tool, and I’d like to suggest a feature that could make it even more intelligent and context-aware:
🧠 Proposed Feature
Leverage the built-in VS Code API method:
This provides an array of
Diagnostic
objects with error/warning messages, ranges, severity, and source (e.g.,typescript
,eslint
, etc.).💡 Why This Matters
With access to live diagnostics, Roo Code could:
✅ Benefits
🔧 Implementation Idea
The
getDiagnostics()
method is part of the stable VS Code Extension API, and can be safely used within any code that already has access tovscode.window
orvscode.languages
.A possible flow:
Would love to hear your thoughts — and happy to help test or iterate on this idea if it's of interest!
Cheers,
Beta Was this translation helpful? Give feedback.
All reactions