forked from qt-creator/qt-creator
Rust: use cached release information
Change-Id: Ibc9b0921e02f4c190986bcf69f75a3347369c68d Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -27,12 +27,8 @@ end
|
||||
|
||||
local function installOrUpdateServer()
|
||||
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,
|
||||
headers = {
|
||||
Accept = "application/vnd.github.v3+json",
|
||||
["X-GitHub-Api-Version"] = "2022-11-28"
|
||||
}
|
||||
}))
|
||||
|
||||
if type(data) == "table" and #data > 1 then
|
||||
|
Reference in New Issue
Block a user