Skip to content

Commit

Permalink
Merge pull request #11910 from mfussenegger/references-ctx
Browse files Browse the repository at this point in the history
LSP/references: Add context to locations returned by server
  • Loading branch information
teto committed Feb 27, 2020
2 parents 52124f2 + 3820165 commit 49cd750
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion runtime/lua/vim/lsp/callbacks.lua
Expand Up @@ -33,7 +33,6 @@ M['textDocument/publishDiagnostics'] = function(_, _, result)
util.buf_diagnostics_underline(bufnr, result.diagnostics)
util.buf_diagnostics_virtual_text(bufnr, result.diagnostics)
util.buf_diagnostics_signs(bufnr, result.diagnostics)
-- util.set_loclist(result.diagnostics)
vim.api.nvim_command("doautocmd User LspDiagnosticsChanged")
end

Expand Down
4 changes: 2 additions & 2 deletions runtime/lua/vim/lsp/util.lua
Expand Up @@ -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


Expand All @@ -824,7 +824,7 @@ function M.locations_to_items(locations)
filename = fname,
lnum = row + 1,
col = col + 1;
text = temp.msg;
text = line;
})
end
end
Expand Down

0 comments on commit 49cd750

Please sign in to comment.