From 5100880aefb7a8da7efb59ee32b181b18de4b705 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 16 Mar 2026 04:03:31 +0200 Subject: Replace interface{} with any in LSP types Co-Authored-By: Claude Opus 4.6 --- internal/lsp/types.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'internal/lsp') diff --git a/internal/lsp/types.go b/internal/lsp/types.go index 24be2fe..68101f6 100644 --- a/internal/lsp/types.go +++ b/internal/lsp/types.go @@ -186,11 +186,11 @@ type ExecuteCommandParams struct { // Diagnostic represents a compiler diagnostic such as an error or warning. type Diagnostic struct { - Range Range `json:"range"` - Message string `json:"message"` - Severity int `json:"severity,omitempty"` - Code interface{} `json:"code,omitempty"` - Source string `json:"source,omitempty"` + Range Range `json:"range"` + Message string `json:"message"` + Severity int `json:"severity,omitempty"` + Code any `json:"code,omitempty"` + Source string `json:"source,omitempty"` } // CodeActionContext carries diagnostics associated with a code action request. -- cgit v1.2.3