diff options
Diffstat (limited to 'lsp/ts_ls.lua')
| -rw-r--r-- | lsp/ts_ls.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lsp/ts_ls.lua b/lsp/ts_ls.lua index a47039e6..8b77c6a5 100644 --- a/lsp/ts_ls.lua +++ b/lsp/ts_ls.lua @@ -93,7 +93,7 @@ return { local client = assert(vim.lsp.get_client_by_id(ctx.client_id)) local file_uri, position, references = unpack(command.arguments) - local quickfix_items = vim.lsp.util.locations_to_items(references, client.offset_encoding) + local quickfix_items = vim.lsp.util.locations_to_items(references --[[@as any]], client.offset_encoding) vim.fn.setqflist({}, ' ', { title = command.title, items = quickfix_items, @@ -104,12 +104,13 @@ return { }) vim.lsp.util.show_document({ - uri = file_uri, + uri = file_uri --[[@as string]], range = { - start = position, - ['end'] = position, + start = position --[[@as lsp.Position]], + ['end'] = position --[[@as lsp.Position]], }, }, client.offset_encoding) + ---@diagnostic enable: assign-type-mismatch vim.cmd('botright copen') end, @@ -125,6 +126,7 @@ return { vim.lsp.buf.code_action({ context = { only = source_actions, + diagnostics = {}, }, }) end, {}) |
