Mathias Fussenegger
a4d884a485
Add API reference docs for jdtls.dap
2022-06-17 19:00:10 +02:00
Mathias Fussenegger
e80d8104b9
Add API reference docs for main jdtls module
2022-06-17 19:00:10 +02:00
Abhishek Banerji
72a40cdcde
Add Override / Implement Methods ( #271 )
...
Co-authored-by: Abhishek Banerji <abhishek.banerji@kloudspot.com>
2022-06-02 10:49:47 +02:00
Abhishek Banerji
6af471afc7
Change pick_many to prompt for all choices at once ( #272 )
2022-06-02 10:40:59 +02:00
Mathias Fussenegger
c9d3306322
Remove detach logic from stop/restart again
...
lsp client should detach automatically once the server stops
2022-06-02 10:38:52 +02:00
Mathias Fussenegger
f582b5be2a
Extend debug configuration section in README
2022-05-06 16:56:05 +02:00
Mathias Fussenegger
9010412f7d
Improve JdtRestart/JdtWipeDataAndRestart a bit
2022-04-29 20:16:18 +02:00
Mathias Fussenegger
ffb08466d5
Add :JdtWipeDataAndRestart and :JdtShowLogs commands to simplify troubleshooting
2022-04-14 16:47:49 +02:00
Mathias Fussenegger
b5c07f498d
Add note about indentation settings to troubleshooting section
2022-04-14 15:19:47 +02:00
Mathias Fussenegger
dd1e8dc1da
Make it possible to provide dap config overrides
...
Closes https://github.com/mfussenegger/nvim-jdtls/issues/240
2022-03-25 16:22:06 +01:00
Mathias Fussenegger
e2a80d5f51
Handle class initialization failures in junit results
...
Closes https://github.com/mfussenegger/nvim-jdtls/issues/234
2022-01-27 19:50:17 +01:00
Mathias Fussenegger
76adad8229
Add initial test setup
2022-01-27 19:32:04 +01:00
Mathias Fussenegger
2cceff656f
Pass offset encoding to apply_workspace_edit
...
Required after https://github.com/neovim/neovim/pull/17049
eclipse.jdt.ls only supports utf-16, so this hardcodes the value instead
of using the `client.offset_encoding` property.
2022-01-13 11:46:05 +01:00
Mathias Fussenegger
3bc283b692
Extend troubleshooting section with some more common issues
2022-01-11 18:54:48 +01:00
Mathias Fussenegger
0e8c3f0d72
Fix nil bufnr in workspace/configuration handler
...
`workspace/configuration` is requested from the server and therefore
`ctx.bufnr` is `nil`. This breaks the `nvim_buf_get_option` call with
neovim master, because `nil` isn't a valid argument.
2022-01-11 18:39:42 +01:00
Mathias Fussenegger
eda96facfd
Fix troubleshooting link in readme
2022-01-06 15:20:53 +01:00
Mathias Fussenegger
55e1933195
Make some tweaks to troubleshooting section in readme
2022-01-06 15:14:54 +01:00
Mathias Fussenegger
e75a4be18a
Add a function & command to change the default runtime
2022-01-06 14:50:47 +01:00
Mathias Fussenegger
03c1cc61ce
Remove workspaceEdit.resourceOperations check
...
With neovim 0.6 as minimum requirement the
workspaceEdit.resourceOperations support is always there. No need to
protect against it missing anymore.
2022-01-06 14:05:19 +01:00
Mathias Fussenegger
50035380b9
Remove some codeAction extra capabilities
...
These are set by default in neovim since 0.6
2022-01-06 14:01:20 +01:00
Mathias Fussenegger
215f241fa6
Mention target audience and alternatives in README
2022-01-06 13:50:33 +01:00
Mathias Fussenegger
48e5f23da5
Update GHA linter to super-linter/slim@v4
2022-01-06 12:41:41 +01:00
eyesee101
d5c4431a70
Fix test nearest with testNG ( #208 )
...
Co-authored-by: Mathias Fußenegger <mfussenegger@users.noreply.github.com>
2022-01-06 12:26:58 +01:00
Mathias Fussenegger
47d7a9caec
readme: Add init_options
/ bundles
skeleton to config
example
2021-12-12 11:40:52 +01:00
Mathias Fussenegger
a35df7a7dc
Clarify where config
is coming from in debug setup part of readme
2021-12-11 11:30:33 +01:00
Mathias Fussenegger
97a781b5c5
Remove custom code_action & remove call to deprecated vim.lsp.diagnostic.get
2021-12-09 20:23:00 +01:00
Mathias Fussenegger
6011ecdb03
Replace deprecated lsp.diagnostic.get_all in compile
2021-12-09 20:16:27 +01:00
Mathias Fussenegger
8250cf5653
Bump required neovim version to 0.6.0
...
Users of neovim 0.5.0 or 0.5.1 can use the `nvim-05` branch.
2021-12-09 20:08:58 +01:00
Mathias Fussenegger
f9aeca2aca
Deprecate custom code_action method
...
With neovim 0.6 it is possible to use the built-in
vim.lsp.buf.code_action function and still have all extensions from
jdtls work.
2021-12-07 19:30:39 +01:00
Mathias Fussenegger
46809aaebf
Remove nvim 0.5 compatibility layer
...
0.5.1 is now the required minimum version
2021-12-01 23:35:03 +01:00
Mathias Fussenegger
3fa992f333
Clarify ftplugin/java.lua
location a bit more
2021-11-19 11:00:32 +01:00
Mathias Fussenegger
3c058742f6
Make configuration section in README more verbose
...
It assumed users are able to translate the CLI instructions into the
`cmd` definitions and some other knowledge - e.g. where to place the
`ftplugin/java.lua` file.
2021-11-18 15:19:05 +01:00
Mathias Fussenegger
aac715eedc
Fix vmArgs if use_preview is false for discovered debug configs
...
Follow up to https://github.com/mfussenegger/nvim-jdtls/pull/165
Fixes https://github.com/mfussenegger/nvim-jdtls/issues/166
2021-11-02 22:30:29 +01:00
Mathias Fussenegger
9719577c7b
Detect --enable-preview
requirement for discovered debug configs
...
Fixes https://github.com/mfussenegger/nvim-jdtls/issues/161
2021-10-29 16:11:06 +02:00
Mathias Fussenegger
188d68ad9a
Jump to new variable after extract variable/method/...
...
Makes it easier to rename the newly introduced variable or method.
2021-10-21 20:31:56 +02:00
Mathias Fussenegger
914530792c
Prevent "No LSP client found that supports" errors on buffer switch
...
Fixes a race where if you invoke an action like running a test class and
then switching to a non-java buffer could lead to a "No LSP client found
that supports" error.
2021-10-18 20:39:24 +02:00
Mathias Fussenegger
adeca37bd8
Use vim.ui.select in pick_one if available
2021-09-29 21:05:55 +02:00
Mathias Fussenegger
8f055ae6d7
Register client commands in vim.lsp.commands
...
Requires https://github.com/neovim/neovim/pull/14115
2021-09-29 21:05:33 +02:00
Mathias Fussenegger
f9fcc46771
Fix configuration link in readme
2021-09-26 16:28:52 +02:00
Mathias Fussenegger
4bdfaf52d7
Readme: Extend data directory configuration example
2021-09-26 16:23:20 +02:00
Mathias Fussenegger
b07dd81fbe
Readme: Refer to upstream install instructions and overhaul some parts
...
- Removes the Installation parts and instead delegates to the upstream
instructions.
- Removes the `java-lsp.sh` script and just pass the options directly to
`config.cmd`. Users could still create a script if they want to.
- Introcues a `local config` in the `Usage` section early on so that
later parts which refer to `config` are less confusing.
- Explains the differences between nvim-lspconfig and nvim-jdtls a bit
more
2021-09-26 16:15:43 +02:00
Mathias Fussenegger
8353cc24f7
Group clients by normalized root dir
2021-09-25 12:25:59 +02:00
Mathias Fussenegger
afe619ec05
Fix util.lua:35: attempt to concatenate field
error
...
Code action results may not have a `command`.
This also changes the command execution to avoid re-resolving the
client, and instead uses the client that triggered the code action
handler.
Fixes https://github.com/mfussenegger/nvim-jdtls/issues/142
2021-09-22 17:27:58 +02:00
Mathias Fussenegger
b59c519053
Don't abort generate constructor if no fields are selected
...
It should be possible to create an empty constructor
2021-09-22 17:24:47 +02:00
Mathias Fussenegger
2aae87e2f5
Remove arg count check in lsp-handler compat shim
...
`language/status` is called via the notification dispatch mechanism,
which is also called with 4 arguments in nvim 0.5.
Fixes https://github.com/mfussenegger/nvim-jdtls/issues/134
2021-09-21 17:20:34 +02:00
Mathias Fussenegger
ad3d05fce9
Check client capabilities before executing commands
...
Should fix https://github.com/mfussenegger/nvim-jdtls/discussions/137
2021-09-20 23:31:37 +02:00
Mathias Fussenegger
b7eaeb4fa8
Remove vim.schedule_wrap from status_callback
...
Not required
2021-09-20 23:14:34 +02:00
Mathias Fussenegger
3792030b52
Fix progress reports using neovim master
...
Another follow up to https://github.com/mfussenegger/nvim-jdtls/pull/129
2021-09-06 17:39:39 +02:00
Mathias Fussenegger
ba0f798939
Fix organize imports when using neovim master
...
Follow up to https://github.com/mfussenegger/nvim-jdtls/pull/129
2021-09-06 17:00:40 +02:00
Mathias Fussenegger
6566daf66f
Adapt buf_request/request calls for upcoming signature change
...
See https://github.com/neovim/neovim/pull/15504
2021-08-31 16:45:33 +02:00