Skip to content

Commit

Permalink
fix code conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Feb 20, 2024
1 parent 6854092 commit 48c387a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion languageserver/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3296,11 +3296,14 @@ func convertDiagnostic(
Severity: severity,
Range: protocolRange,
Tags: tags,
Code: linterDiagnostic.Code,
CodeDescription: &protocol.CodeDescription{
Href: linterDiagnostic.URL,
},
}

if linterDiagnostic.Code != "" {
protocolDiagnostic.Code = linterDiagnostic.Code
}

return protocolDiagnostic, codeActionsResolver
}

0 comments on commit 48c387a

Please sign in to comment.