Skip to content

Commit

Permalink
Merge pull request #5466 from microsoft/bobbrow/downgradeFix
Browse files Browse the repository at this point in the history
Fix a bug with downgrading
  • Loading branch information
bobbrow authored May 12, 2020
2 parents 7b2eb67 + a4535a9 commit 17ddec4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Extension/src/githubAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ export async function getTargetBuildInfo(updateChannel: string): Promise<BuildIn
// If the user version is greater than or incomparable to the latest available verion then there is no need to update
const userVersion: PackageVersion = new PackageVersion(util.packageJson.version);
const latestVersion: PackageVersion = new PackageVersion(builds[0].name);
if (!testingInsidersVsixInstall && ((userVersion.suffix && userVersion.suffix !== 'insiders') || (userVersion.isEqual(latestVersion)))) {
const latestIsCorrect: boolean = latestVersion.suffix !== 'insiders' || updateChannel === 'insiders';
if (!testingInsidersVsixInstall && ((userVersion.suffix && userVersion.suffix !== 'insiders') || (userVersion.isEqual(latestVersion) && latestIsCorrect))) {
return undefined;
}

Expand Down

0 comments on commit 17ddec4

Please sign in to comment.