#4442 Display error codes in Neovim diagnostics

This commit is contained in:
w0rp 2023-09-09 00:10:27 +01:00
parent e4411276a5
commit 79a2dc2d8a
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83

View File

@ -41,6 +41,8 @@ module.sendAleResultsToDiagnostics = function(buffer, loclist)
end_col = location.end_col,
-- Which severity: error, warning, or info?
severity = ale_type_to_diagnostic_severity[location.type] or "E",
-- An error code
code = location.code,
-- The error message
message = location.text,
-- e.g. "rubocop"