Rust: use cached release information

Change-Id: Ibc9b0921e02f4c190986bcf69f75a3347369c68d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
David Schulz
2024-06-06 10:43:05 +02:00
parent bb5b8b40ff
commit 64f9ff8963

View File

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