+2
-0
lines changedFilter options
+2
-0
lines changed Original file line number Diff line number Diff line change
@@ -272,6 +272,8 @@ end
272
272
---@private
273
273
local function set_diagnostic_cache(namespace, bufnr, diagnostics)
274
274
for _, diagnostic in ipairs(diagnostics) do
275
+
assert(diagnostic.lnum, "Diagnostic line number is required")
276
+
assert(diagnostic.col, "Diagnostic column is required")
275
277
diagnostic.severity = diagnostic.severity and to_severity(diagnostic.severity) or M.severity.ERROR
276
278
diagnostic.end_lnum = diagnostic.end_lnum or diagnostic.lnum
277
279
diagnostic.end_col = diagnostic.end_col or diagnostic.col
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4