Problem Mentions
The problems mention gives Cline instant access to all the errors and warnings in your workspace. Just type @problems
and Cline can see every diagnostic issue VSCode has detected.
When you type @
in chat, select “Problems” from the menu or just type @problems
directly. Cline will immediately see all the errors and warnings from your workspace, complete with file locations and error messages.
I use the problems mention constantly when I’m stuck on build errors or TypeScript issues. Instead of trying to describe the errors or copy them one by one, I just ask:
This gives Cline the complete list of errors with their exact locations and messages. Cline can then analyze the patterns across multiple errors and suggest comprehensive solutions.
The problems mention is especially powerful when combined with file mentions. When I’m dealing with complex type errors, I’ll reference both:
This approach gives Cline everything it needs - the exact errors, the component code, and the type definitions - all without me having to copy anything manually.
Next time you’re stuck on errors, try using @problems
instead of copying error messages. You’ll get more accurate help because Cline can see the complete error context and locations.
How It Works Under the Hood
When you use the problems mention in your message, here’s what happens behind the scenes:
- When you send your message, Cline detects the
@problems
pattern in your text - The extension calls VSCode’s built-in
vscode.languages.getDiagnostics()
API to get all errors and warnings - It formats these diagnostics into a structured text representation with file paths, line numbers, and error messages
- The formatted problems list is appended to your message in a structured format:
- This enhanced message with the embedded diagnostics is sent to the AI
- The AI can now “see” all the errors and warnings in your workspace, complete with their locations and messages
This process happens automatically whenever you use the problems mention, giving the AI a comprehensive view of all the issues in your workspace without you having to copy them manually.