diff options
Diffstat (limited to 'editors/code/src/main.ts')
-rw-r--r-- | editors/code/src/main.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index f1a2020aa..925103f56 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts | |||
@@ -184,7 +184,7 @@ async function bootstrapExtension(config: Config, state: PersistentState): Promi | |||
184 | } | 184 | } |
185 | 185 | ||
186 | const release = await downloadWithRetryDialog(state, async () => { | 186 | const release = await downloadWithRetryDialog(state, async () => { |
187 | return await fetchRelease("nightly", state.githubToken); | 187 | return await fetchRelease("nightly", state.githubToken, config.httpProxy); |
188 | }).catch(async (e) => { | 188 | }).catch(async (e) => { |
189 | log.error(e); | 189 | log.error(e); |
190 | if (state.releaseId === undefined) { // Show error only for the initial download | 190 | if (state.releaseId === undefined) { // Show error only for the initial download |
@@ -210,6 +210,7 @@ async function bootstrapExtension(config: Config, state: PersistentState): Promi | |||
210 | url: artifact.browser_download_url, | 210 | url: artifact.browser_download_url, |
211 | dest, | 211 | dest, |
212 | progressTitle: "Downloading rust-analyzer extension", | 212 | progressTitle: "Downloading rust-analyzer extension", |
213 | httpProxy: config.httpProxy, | ||
213 | }); | 214 | }); |
214 | }); | 215 | }); |
215 | 216 | ||
@@ -332,7 +333,7 @@ async function getServer(config: Config, state: PersistentState): Promise<string | |||
332 | 333 | ||
333 | const releaseTag = config.package.releaseTag; | 334 | const releaseTag = config.package.releaseTag; |
334 | const release = await downloadWithRetryDialog(state, async () => { | 335 | const release = await downloadWithRetryDialog(state, async () => { |
335 | return await fetchRelease(releaseTag, state.githubToken); | 336 | return await fetchRelease(releaseTag, state.githubToken, config.httpProxy); |
336 | }); | 337 | }); |
337 | const artifact = release.assets.find(artifact => artifact.name === `rust-analyzer-${platform}.gz`); | 338 | const artifact = release.assets.find(artifact => artifact.name === `rust-analyzer-${platform}.gz`); |
338 | assert(!!artifact, `Bad release: ${JSON.stringify(release)}`); | 339 | assert(!!artifact, `Bad release: ${JSON.stringify(release)}`); |
@@ -344,6 +345,7 @@ async function getServer(config: Config, state: PersistentState): Promise<string | |||
344 | progressTitle: "Downloading rust-analyzer server", | 345 | progressTitle: "Downloading rust-analyzer server", |
345 | gunzip: true, | 346 | gunzip: true, |
346 | mode: 0o755, | 347 | mode: 0o755, |
348 | httpProxy: config.httpProxy, | ||
347 | }); | 349 | }); |
348 | }); | 350 | }); |
349 | 351 | ||