Skip to content

Commit

Permalink
Clamp VSCode download to stable release until NLS issue on Insiders i…
Browse files Browse the repository at this point in the history
…s fixed.

see microsoft/vscode#220171
  • Loading branch information
mihailik committed Jul 7, 2024
1 parent 3c19e4b commit cfb9342
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ interface DownloadInfo {
}

async function getLatestVersion(quality: 'stable' | 'insider'): Promise<DownloadInfo> {
const update: DownloadInfo = await fetchJSON(`https://update.code.visualstudio.com/api/update/web-standalone/${quality}/latest`);
// TODO: Remove this once NLS is fixed
const qualityOverrideToStable = quality === 'insider' ? 'stable' : quality;
const update: DownloadInfo = await fetchJSON(`https://update.code.visualstudio.com/api/update/web-standalone/${qualityOverrideToStable}/latest`);
return update;
}

Expand Down

0 comments on commit cfb9342

Please sign in to comment.