Skip to content

Commit 10fcd5a

Browse files
authored
fix: $/progress messages are not displayed correctly (#15)
1 parent 00d015a commit 10fcd5a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lua/java-core/server.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,15 @@ function M.get_config(opts)
8686

8787
root_dir = M.get_root_finder(opts.root_markers),
8888
capabilities = vim.lsp.protocol.make_client_capabilities(),
89+
90+
handlers = {
91+
--@TODO
92+
--overriding '$/progress' is necessary because by default it's using the
93+
--lspconfig progress handler which prints the wrong value in the latest
94+
--jdtls version (tested on 1.29.0).
95+
--https://github.com/neovim/nvim-lspconfig/issues/2897
96+
['$/progress'] = vim.lsp.handlers['$/progress'],
97+
},
8998
}
9099

91100
log.debug('generated config: ', conf)

0 commit comments

Comments
 (0)