diff options
| author | Robert Muir <rmuir@apache.org> | 2025-09-10 23:32:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-10 20:32:29 -0700 |
| commit | 0351fe4da38634e806ba597ccea89fddc549bee4 (patch) | |
| tree | 2cd6341d7cdcc415cb7be935f05d66ea6e6fb840 /lsp/jdtls.lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-0351fe4da38634e806ba597ccea89fddc549bee4.tar nvim-lspconfig-0351fe4da38634e806ba597ccea89fddc549bee4.tar.gz nvim-lspconfig-0351fe4da38634e806ba597ccea89fddc549bee4.tar.bz2 nvim-lspconfig-0351fe4da38634e806ba597ccea89fddc549bee4.tar.lz nvim-lspconfig-0351fe4da38634e806ba597ccea89fddc549bee4.tar.xz nvim-lspconfig-0351fe4da38634e806ba597ccea89fddc549bee4.tar.zst nvim-lspconfig-0351fe4da38634e806ba597ccea89fddc549bee4.zip | |
fix(jdtls): remove nonstandard progress handler #4068
Problem:
The nonstandard progress handler was added in #2153 but it can cause
some undesirable side-effects out of box ("press enter").
The original bug (mfussenegger/nvim-jdtls#327) was fixed upstream in the
language server three years ago (eclipse-jdtls/eclipse.jdt.ls#2258).
Solution:
Remove the workaround. Standard progress works.
Diffstat (limited to 'lsp/jdtls.lua')
| -rw-r--r-- | lsp/jdtls.lua | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lsp/jdtls.lua b/lsp/jdtls.lua index 4a57aa67..5b640a91 100644 --- a/lsp/jdtls.lua +++ b/lsp/jdtls.lua @@ -101,14 +101,6 @@ local function on_workspace_applyedit(err, workspace_edit, ctx) handlers[ctx.method](err, fix_zero_version(workspace_edit), ctx) end --- Non-standard notification that can be used to display progress -local function on_language_status(_, result) - local command = vim.api.nvim_command - command 'echohl ModeMsg' - command(string.format('echo "%s"', result.message)) - command 'echohl None' -end - ---@type vim.lsp.Config return { cmd = { @@ -142,6 +134,5 @@ return { ['textDocument/codeAction'] = on_textdocument_codeaction, ['textDocument/rename'] = on_textdocument_rename, ['workspace/applyEdit'] = on_workspace_applyedit, - ['language/status'] = vim.schedule_wrap(on_language_status), }, } |
