Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/src/main.ts')
| -rw-r--r-- | editors/code/src/main.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index 726620578c..734f224503 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts @@ -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.proxySettings); }).catch(async (e) => { log.error(e); if (isInitialNightlyDownload) { @@ -230,7 +230,7 @@ async function bootstrapExtension(config: Config, state: PersistentState): Promi url: artifact.browser_download_url, dest, progressTitle: "Downloading rust-analyzer extension", - httpProxy: config.httpProxy, + proxySettings: config.proxySettings, }); }); @@ -361,7 +361,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.proxySettings); }); const artifact = release.assets.find(artifact => artifact.name === `rust-analyzer-${platform}.gz`); assert(!!artifact, `Bad release: ${JSON.stringify(release)}`); @@ -373,7 +373,7 @@ async function getServer(config: Config, state: PersistentState): Promise<string progressTitle: "Downloading rust-analyzer server", gunzip: true, mode: 0o755, - httpProxy: config.httpProxy, + proxySettings: config.proxySettings, }); }); |