A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/b515160cef5c160c271dc11649094803625123dc below:

assert that diagnostics have line number and column … · neovim/neovim@b515160 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+2

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+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