From 0351fe4da38634e806ba597ccea89fddc549bee4 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Wed, 10 Sep 2025 23:32:29 -0400 Subject: 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. --- lsp/jdtls.lua | 9 --------- 1 file changed, 9 deletions(-) (limited to 'lsp/jdtls.lua') 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), }, } -- cgit v1.2.3-70-g09d2