Skip to content

Commit 0351fe4

Browse files
authored
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.
1 parent d529402 commit 0351fe4

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lsp/jdtls.lua

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,6 @@ local function on_workspace_applyedit(err, workspace_edit, ctx)
101101
handlers[ctx.method](err, fix_zero_version(workspace_edit), ctx)
102102
end
103103

104-
-- Non-standard notification that can be used to display progress
105-
local function on_language_status(_, result)
106-
local command = vim.api.nvim_command
107-
command 'echohl ModeMsg'
108-
command(string.format('echo "%s"', result.message))
109-
command 'echohl None'
110-
end
111-
112104
---@type vim.lsp.Config
113105
return {
114106
cmd = {
@@ -142,6 +134,5 @@ return {
142134
['textDocument/codeAction'] = on_textdocument_codeaction,
143135
['textDocument/rename'] = on_textdocument_rename,
144136
['workspace/applyEdit'] = on_workspace_applyedit,
145-
['language/status'] = vim.schedule_wrap(on_language_status),
146137
},
147138
}

0 commit comments

Comments
 (0)