Skip to content

[FEAT] S6: lsp_diagnostics tool -- errors/warnings via LSP #31

Description

@four-bytes-robby

Goal

Build the lsp_diagnostics tool for Wave S6.

Implementation

  • File: src/tools/lsp-diagnostics.ts
  • Uses getLspRegistry from ../lib/lsp-registry.js
  • Parameters: file_path (required), severity (optional, default error), max_results (default 100)
  • Returns structured diagnostics with counts by severity
  • Filters: 1=Error, 2=Warning, 3=Information, 4=Hint

Output shape

interface LspDiagnosticsOutput {
available: boolean
file: string
count: number
errors: number
warnings: number
infos: number
hints: number
diagnostics: { line: number; character: number; severity: string; message: string; source?: string; code?: string }[]
truncated: boolean
hint?: string
}

Steps

  1. Create src/tools/lsp-diagnostics.ts
  2. Register in main plugin entry
  3. Write tests
  4. PR for review

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions