Mathias Fussenegger
72d2706c14
Split up test run methods a bit
2021-03-16 21:34:51 +01:00
Mathias Fussenegger
de1fbbb64f
Add reference to sample-configurations wiki to readme
2021-03-12 19:37:57 +01:00
Mathias Fussenegger
8ff60d5e91
Move dap related functions into a separate module
2021-03-05 15:50:03 +01:00
Mathias Fussenegger
58e7ee50b8
Adapt test triggers for vscode-java-test changes
...
`classFullName` got renamed to `fullName`:
https://github.com/microsoft/vscode-java-test/pull/1146
2021-03-02 12:52:09 +01:00
Mathias Fussenegger
fa2d4af612
Make organize imports use the extended version
...
`require('jdtls').organize_imports()` used the simple organize import
version which didn't prompt the user to select the exact import in case
of ambiguous choices.
This changes it so that it behaves the same as if the user selected the
`Organize import` option via code action.
2021-02-25 10:49:06 +01:00
Mathias Fussenegger
373fb660e5
Add workspace/configuration handler that recognizes insertSpaces/tabSize
...
If using a eclipse.jdt.ls version that includes
https://github.com/eclipse/eclipse.jdt.ls/pull/1657 this will finally
make code-actions respect the clients shiftwidth/expandtab options and
no longer include tabs when the user uses spaces.
The alternative to overriding the handler would have been to document
that users should include these options in their `config.settings`, but
given that there is no good reason that I can think of where you don't
want to respond with your local editor settings it seems justified to
include this out of the box instead of requiring every user to add this.
2021-02-24 17:38:20 +01:00
Mathias Fussenegger
df23263013
Report succesful tests and add failures to quickfix
2021-02-23 20:40:31 +01:00
Mathias Fussenegger
a35ce80f0e
Document per project data dir requirement in README
...
See https://github.com/mfussenegger/nvim-jdtls/issues/33
2021-01-30 13:29:49 +01:00
Mathias Fussenegger
357d0b4052
Adjust logpath from data to cache
...
To follow the change in neovim:
- ea8756f85d
2021-01-17 14:09:24 +01:00
Mathias Fussenegger
630fbae553
Fix find_root traversal condition
...
🤷
2021-01-13 23:41:19 +01:00
Mathias Fussenegger
750432ca50
Mention -configuration
option adjustment in readme
2021-01-06 10:47:23 +01:00
Mathias Fussenegger
021c439b21
Clarify root_dir example in readme
2021-01-06 10:44:34 +01:00
Mathias Fussenegger
8784c3611d
Avoid using is_fs_root in find_root
...
I think it didn't work correctly on Windows
2021-01-06 10:13:41 +01:00
Mathias Fussenegger
da0d007798
Fix extract variable / infer selection handling if there is only 1 option
...
The params send to the server were in an incorrect format, leading to an
error on the server side and on the client nothing happened.
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at path $
2020-12-08 21:11:18 +01:00
Mathias Fussenegger
519854bed8
Improve troubleshooting section in readme
...
- Mention `JdtCompile`
- Try to clarify why files my get out of sync and classes might not be
found.
2020-12-06 21:16:21 +01:00
Mathias Fussenegger
9de0f82c7a
Expose find_root and emphasize root_dir importance
2020-12-06 21:06:15 +01:00
Mathias Fussenegger
a09f7be487
Show diagnostic errors in quickfix list on jdtls.compile
...
If there are errors in `build.gradle` files or directories, only these
errors will be shown because they usually indicate project configuration
errors that may be the cause for other errors.
If there are no build or directory errors, the other errors are shown.
Requires f5e0f17968
2020-12-03 21:21:35 +01:00
Mathias Fussenegger
05bf6eae03
Mention UI extensions in README
2020-12-03 20:31:06 +01:00
Mathias Fussenegger
4532a0c6d9
Add infer selection support for extract_variable
...
Requires https://github.com/eclipse/eclipse.jdt.ls/pull/1619
2020-12-02 23:07:21 +01:00
Mathias Fussenegger
62d466b0cc
Add infer selection support for extractMethod
...
Requires https://github.com/eclipse/eclipse.jdt.ls/pull/1585
2020-11-20 13:57:38 +01:00
Mathias Fussenegger
65aa9309f7
Update callbacks → handlers usages
...
For the recent changes in https://github.com/neovim/neovim/pull/12655
2020-11-14 09:32:05 +01:00
Mathias Fussenegger
b639f0f89f
Increase timeout and improve error reporting in open_jdt_link
2020-10-25 22:20:16 +01:00
Mathias Fussenegger
a9ab0194ea
Improve compile error message
2020-10-25 11:50:37 +01:00
Mathias Fussenegger
c82e98b0f4
Add highlighting during import candidate selection
...
Makes it easier to spot the symbol for which you're about to choose the
right import during the "Organize Imports" code action.
2020-10-17 20:29:14 +02:00
Mathias Fussenegger
98b386f174
Fix test_nearest_method for junit5
...
For junit5 the start and end location is required in the junit arguments
request.
See
7cc1ead170/src/utils/launchUtils.ts (L94-L99)
2020-10-16 21:43:17 +02:00
Mathias Fussenegger
461bbfd468
Add "functions don't do anything" to troubleshooting section
2020-10-15 20:37:55 +02:00
Mathias Fussenegger
b02f52b56e
Add a note about not duplicating jdtls setup with nvim-lspconfig
2020-10-15 19:49:29 +02:00
Mathias Fussenegger
6eda5c2895
Add troubleshooting section to README
2020-10-15 19:40:53 +02:00
Mathias Fussenegger
c2bf184dfc
Add a callback based pick_one variant
...
This will allow users to replace the pick_one method with a popup based
one.
require('jdtls.ui').pick_one_async = your_implementation
2020-10-14 21:49:36 +02:00
Mathias Fussenegger
da4878cf3d
Ensure extendedClientCapabilities are set
...
If the user doesn't provide them they should implicitly be set to the
defaults that nvim-jdtls supports
2020-10-11 16:21:02 +02:00
Mathias Fussenegger
5bd14c01e8
Tweak debugger setup steps in README
2020-10-09 18:40:46 +02:00
Mathias Fussenegger
175ffc0602
Default to cwd if root dir cannot be found otherwise
2020-10-07 22:28:28 +02:00
Mathias Fussenegger
2d703d1cdc
Don't attempt to start/attach lsp client without root_dir
2020-10-07 22:23:49 +02:00
Mathias Fussenegger
e665b61571
Resolve dap configurations only once
2020-09-16 21:04:19 +02:00
Mathias Fussenegger
70a6cb1c35
Add license file
2020-09-16 20:39:19 +02:00
Mathias Fussenegger
bc1e54f819
Make setup easier and outline eclipse.jdt.ls installation
2020-09-16 20:29:30 +02:00
Mathias Fussenegger
7b524f8da7
Don't override already present config properties in enrich_dap_conig
2020-09-14 22:22:44 +02:00
Mathias Fussenegger
80e571ecb7
Add enrich_config for dap adapter
...
This will cause jdtls to enrich configurations with the modulePaths or
classPaths of a project
2020-09-11 21:50:27 +02:00
Mathias Fussenegger
ccb7ce2037
Make sure diagnostics in code action request is an array
...
To ensure the code action method can also be used with servers like
haskell-language-server which fail if diagnostics is a single object
instead of an array.
2020-09-10 19:39:28 +02:00
Mathias Fussenegger
795ad674d0
Show test results after debugging method or class
2020-08-20 22:20:29 +02:00
Mathias Fussenegger
234046eb85
Handle nil paramTypes when trying to run tests
2020-08-20 20:38:07 +02:00
Mathias Fussenegger
e0e14d7bd8
Add support for delegate methods generation
2020-07-11 11:58:36 +02:00
Mathias Fussenegger
7c24974d15
Use dap.run to trigger tests to be able to use run_last() of dap
2020-06-14 11:02:53 +02:00
Mathias Fussenegger
0e62675b3d
Update code action section in readme
2020-06-05 00:22:13 +02:00
Mathias Fussenegger
cebbe5249c
Add generate constructors support
2020-06-05 00:10:35 +02:00
Mathias Fussenegger
954126fd2d
Handle nil organize imports response
2020-06-04 21:09:46 +02:00
Mathias Fussenegger
600c5168ac
Add optional classname argument to M.jol
2020-05-24 15:53:16 +02:00
Mathias Fussenegger
44adb379cc
readme: Link to issue with screencasts for demo
2020-05-23 15:14:31 +02:00
Mathias Fussenegger
93e196b2d9
Try to improve range gen logic for v-mode code-actions/refactorings
2020-05-23 15:02:14 +02:00
Mathias Fussenegger
eb78a5c4f0
Prompt for code-action choice also if only 1 item is available
2020-05-23 14:26:52 +02:00