diff options
| author | sigmaSd <bedisnbiba@gmail.com> | 2022-07-22 15:25:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-22 07:25:15 -0700 |
| commit | 474fe8a783b18570f9e0043538240b6bf1f3890c (patch) | |
| tree | 837b9a5e30f2b474df0766f838636f23ab03dbb5 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-474fe8a783b18570f9e0043538240b6bf1f3890c.tar nvim-lspconfig-474fe8a783b18570f9e0043538240b6bf1f3890c.tar.gz nvim-lspconfig-474fe8a783b18570f9e0043538240b6bf1f3890c.tar.bz2 nvim-lspconfig-474fe8a783b18570f9e0043538240b6bf1f3890c.tar.lz nvim-lspconfig-474fe8a783b18570f9e0043538240b6bf1f3890c.tar.xz nvim-lspconfig-474fe8a783b18570f9e0043538240b6bf1f3890c.tar.zst nvim-lspconfig-474fe8a783b18570f9e0043538240b6bf1f3890c.zip | |
fix(denols): handle deno.cache from codeaction #2016
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/denols.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/denols.lua b/lua/lspconfig/server_configurations/denols.lua index 8e503e45..16b69eb6 100644 --- a/lua/lspconfig/server_configurations/denols.lua +++ b/lua/lspconfig/server_configurations/denols.lua @@ -84,6 +84,13 @@ return { handlers = { ['textDocument/definition'] = denols_handler, ['textDocument/references'] = denols_handler, + ['workspace/executeCommand'] = function(err, result, context) + if context.params.command == 'deno.cache' then + buf_cache(context.bufnr) + else + lsp.handlers[context.method](err, result, context) + end + end, }, }, commands = { |
