eclipse.jdt.ls icon indicating copy to clipboard operation
eclipse.jdt.ls copied to clipboard

Add workspace folder variable resolution for settings url

Open 04kash opened this issue 9 months ago • 0 comments

This PR adds support for resolving ${workspaceFolder} in the following settings:

  • java.format.settings.url
  • java.settings.url

If ${workspaceFolder} is present in the provided path, it will be replaced with the absolute path of the workspace folder (retrieved from getRootPaths()). The resolution logic checks all available workspace folders and uses the first matching path that exists.

Fixes: https://github.com/eclipse-jdtls/eclipse.jdt.ls/issues/2529

04kash avatar May 07 '25 15:05 04kash