LuaLSP: Use cached release url

Change-Id: If099374736912361f898c956e571fb52dbd1fa06
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-05-31 07:56:54 +02:00
parent a273990819
commit 3e7f6237b0

View File

@@ -35,12 +35,8 @@ end
local function installOrUpdateServer() local function installOrUpdateServer()
local data = a.wait(fetch({ local data = a.wait(fetch({
url = "https://api.github.com/repos/LuaLS/lua-language-server/releases?per_page=1", url = "https://qtccache.qt.io/LuaLanguageServer/LatestRelease",
convertToTable = true, convertToTable = true
headers = {
Accept = "application/vnd.github.v3+json",
["X-GitHub-Api-Version"] = "2022-11-28"
}
})) }))
if type(data) == "table" and #data > 0 then if type(data) == "table" and #data > 0 then