mirror of
https://github.com/dense-analysis/ale.git
synced 2026-03-01 12:56:57 +08:00
#4442 Display error codes in Neovim diagnostics
This commit is contained in:
@@ -41,6 +41,8 @@ module.sendAleResultsToDiagnostics = function(buffer, loclist)
|
|||||||
end_col = location.end_col,
|
end_col = location.end_col,
|
||||||
-- Which severity: error, warning, or info?
|
-- Which severity: error, warning, or info?
|
||||||
severity = ale_type_to_diagnostic_severity[location.type] or "E",
|
severity = ale_type_to_diagnostic_severity[location.type] or "E",
|
||||||
|
-- An error code
|
||||||
|
code = location.code,
|
||||||
-- The error message
|
-- The error message
|
||||||
message = location.text,
|
message = location.text,
|
||||||
-- e.g. "rubocop"
|
-- e.g. "rubocop"
|
||||||
|
|||||||
Reference in New Issue
Block a user