mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Respect http.proxyStrictSSL
This commit is contained in:
parent
9f447ad522
commit
2f5149886d
3 changed files with 33 additions and 9 deletions
|
@ -198,7 +198,7 @@ async function bootstrapExtension(config: Config, state: PersistentState): Promi
|
|||
}
|
||||
|
||||
const latestNightlyRelease = await downloadWithRetryDialog(state, async () => {
|
||||
return await fetchRelease("nightly", state.githubToken, config.httpProxy);
|
||||
return await fetchRelease("nightly", state.githubToken, config.httpProxy, config.proxyStrictSSL);
|
||||
}).catch(async (e) => {
|
||||
log.error(e);
|
||||
if (isInitialNightlyDownload) {
|
||||
|
@ -231,6 +231,7 @@ async function bootstrapExtension(config: Config, state: PersistentState): Promi
|
|||
dest,
|
||||
progressTitle: "Downloading rust-analyzer extension",
|
||||
httpProxy: config.httpProxy,
|
||||
proxyStrictSSL: config.proxyStrictSSL,
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -361,7 +362,7 @@ async function getServer(config: Config, state: PersistentState): Promise<string
|
|||
|
||||
const releaseTag = config.package.releaseTag;
|
||||
const release = await downloadWithRetryDialog(state, async () => {
|
||||
return await fetchRelease(releaseTag, state.githubToken, config.httpProxy);
|
||||
return await fetchRelease(releaseTag, state.githubToken, config.httpProxy, config.proxyStrictSSL);
|
||||
});
|
||||
const artifact = release.assets.find(artifact => artifact.name === `rust-analyzer-${platform}.gz`);
|
||||
assert(!!artifact, `Bad release: ${JSON.stringify(release)}`);
|
||||
|
@ -374,6 +375,7 @@ async function getServer(config: Config, state: PersistentState): Promise<string
|
|||
gunzip: true,
|
||||
mode: 0o755,
|
||||
httpProxy: config.httpProxy,
|
||||
proxyStrictSSL: config.proxyStrictSSL,
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue