Closed jnk22 closed 1 year ago
Implement an additional field like runtime.details, that can show custom infos if present (could be the path, own notes, or whatever - fields would differ from RuntimeOption then though)
Given that these are settings sent to the server, adding additional fields is not an option.
I added the path with https://github.com/mfussenegger/nvim-jdtls/pull/465
Problem Statement
Hi @mfussenegger, first of all, thank you for this plugin!
I have multiple Java SDKs setup in the
settings.java.configurations.runtime
, some with the same major version (19, 18, 1.8, etc.), but different minor versions, or system-wide/custom paths.Due to the the shown
runtime.name
in the selection being based on theenum ExecutionEnvironment
as defined in eclipse.jdt.ls, multiple Java runtimes with the same major versions are not differentiable:(My runtimes are generated dynamically based on input paths, but this can also affect manual configuration setups where people use the same major versions multiple times.)
Ideas or possible solutions
I suggest to add additional output to the runtime selection.
A simple method would be to just show the path after the name. This attribute is required and always present as stated in the configuration guide, and also defined as required in the respective interface
RuntimeOption
on the eclipse.jdt.ls side.Possible solution with always showing the path
Runtime selection with Telescope UI:
Runtime selection with default view:
A few more ideas for possible output:
runtime.name
is ambigousruntime.details
, that can show custom infos if present (could be the path, own notes, or whatever - fields would differ fromRuntimeOption
then though)JavaSE-19: /path/to/java/sdk
I have pushed the above solution to my fork: https://github.com/jnk22/nvim-jdtls
Is this something you think would be beneficial and could be added?