mirror of
https://github.com/neovim/neovim.git
synced 2025-11-03 17:24:29 +00:00
LSP: Remove diagnostic message handling in locations_to_items
`locations_to_items` is for turning `Location[]` into items, not for `Diagnostic[]`
This commit is contained in:
@@ -797,7 +797,7 @@ function M.locations_to_items(locations)
|
||||
for _, d in ipairs(locations) do
|
||||
local start = d.range.start
|
||||
local fname = assert(vim.uri_to_fname(d.uri))
|
||||
table.insert(grouped[fname], {start = start, msg= d.message })
|
||||
table.insert(grouped[fname], {start = start})
|
||||
end
|
||||
|
||||
|
||||
@@ -824,7 +824,7 @@ function M.locations_to_items(locations)
|
||||
filename = fname,
|
||||
lnum = row + 1,
|
||||
col = col + 1;
|
||||
text = temp.msg or line;
|
||||
text = line;
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user