Features
@Mentions
Problem Mentions

Error Context Integration

Bwat's diagnostic reference feature provides instant access to all workspace errors and warnings through simple Workspace Problems (see below for diagnostics) mentions. This powerful capability surfaces your complete development issues directly within conversations.

Using Diagnostic References

To include workspace problems:

  1. Type @ in chat
  2. Select "Problems" or type Workspace Problems (see below for diagnostics) directly

Bwat immediately receives:

  • All error messages
  • Warning notifications
  • Exact file locations
  • Diagnostic severity levels

Practical Implementation

This feature shines when resolving complex issues:

Type System Troubleshooting:

These TypeScript errors appear after my update: Workspace Problems (see below for diagnostics)
Help me understand and resolve these type conflicts

Build Process Debugging:

Getting compilation failures: Workspace Problems (see below for diagnostics)
Why are these dependencies conflicting?

Enhanced Error Resolution

Combine with file references for comprehensive solutions:

Runtime errors occurring: Workspace Problems (see below for diagnostics)
Relevant module: 'src/utils/parser.ts' (see below for file content)
Interface definitions: 'src/types/core.d.ts' (see below for file content)
How should I fix these type mismatches?

Technical Implementation

When using Workspace Problems (see below for diagnostics):

  1. Bwat detects the diagnostic reference pattern
  2. Integrates with VS Code's diagnostic API via vscode.languages.getDiagnostics()
  3. Structures the complete problem set:
<workspace_issues>
/src/components/DataTable.tsx(42,15): error TS2322: Type 'string' not assignable to type 'number'
/src/api/client.ts(18,3): warning Unused variable 'config'
</workspace_issues>
  1. Processes messages with full diagnostic context
  2. Generates solutions informed by complete error analysis

This automated workflow ensures Bwat understands your development challenges in their full technical context, enabling precise, actionable solutions without manual error transcription.