Skip to content

Commit

Permalink
fix(denolos): ignore caching error #2009
Browse files Browse the repository at this point in the history
Caching actually works but it throws an error, vscode-deno also doesn't seem to care about errors 
https://github.com/denoland/vscode_deno/blob/196a11cead2d95c324cb772dd568ba7c2801b68a/client/src/commands.ts#L60
  • Loading branch information
sigmaSd authored Jul 17, 2022
1 parent 6b3f239 commit 026389c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lua/lspconfig/server_configurations/denols.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ local function buf_cache(bufnr)
local params = {}
params['referrer'] = { uri = vim.uri_from_bufnr(bufnr) }
params['uris'] = {}
lsp.buf_request(bufnr, 'deno/cache', params, function(err)
if err then
error(tostring(err))
end
end)
lsp.buf_request(bufnr, 'deno/cache', params, function(_) end)
end

local function virtual_text_document_handler(uri, result)
Expand Down

0 comments on commit 026389c

Please sign in to comment.