WIP monitor gradle projects with kotlin build scripts
lsp-java wasn't importing gradle projects initialized to use kotlin build scripts.
As a result, lsp was indicating valid code as wrong, and it wasn't locating the project root/workspace.
This pull request fixes those issues for me.
I also exposed the list of possible project configuration files as a custom variable, since it might save users inconvenience when trying out new/experimental build tools.
Despite adding tests to cover these cases, however, the project's tests don't seem work at all, even on the continuous integration platform.
I'd recommend someone who's ever gotten ecukes to work (never has for me), to fix the tests.
Does this need further work?
I guess this change is fixing your issue because you are not adding the proper project roots. Normally this method should not be used and it is leftover from the time jdt-ls was supporting only one root. You may verify that by doing lsp-describe-session - one of the roots should be the folder containing your build file.
Thanks.
Removing old workspace folders also seems to work.
Not sure what the issue was: switching back and forth between script languages deterministically broke and restored language validation, even though lsp-describe-session was listing the correct project root.
Since I can't reproduce the issue anymore, and this code shouldn't be relevant, I think we should close this request without merging.
We might still want to monitor the build file for changes, e. g. when you edit pom.xml file it notifies the server and the server refreshes the workspace.
Sure. Anything I should change or add?
eclipse/eclipse.jdt.ls#449 seems relevant