diff options
Diffstat (limited to 'lua/mason-core/clients/eclipse.lua')
| -rw-r--r-- | lua/mason-core/clients/eclipse.lua | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lua/mason-core/clients/eclipse.lua b/lua/mason-core/clients/eclipse.lua deleted file mode 100644 index bca31648..00000000 --- a/lua/mason-core/clients/eclipse.lua +++ /dev/null @@ -1,15 +0,0 @@ -local fetch = require "mason-core.fetch" -local M = {} - ----@param version string The version string as found in the latest.txt endpoint. ----@return string The parsed version number. -function M._parse_jdtls_version_string(version) - return vim.trim(version):gsub("^jdt%-language%-server%-", ""):gsub("%.tar%.gz$", "") -end - ----@async -function M.fetch_latest_jdtls_version() - return fetch("https://download.eclipse.org/jdtls/snapshots/latest.txt"):map(M._parse_jdtls_version_string) -end - -return M |
