Skip to content

Commit

Permalink
fixes #12985
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Sep 29, 2016
1 parent fe99e44 commit adb9c23
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,10 @@ export class ExtensionGalleryService implements IExtensionGalleryService {
return this._getAsset({ url, headers })
.then(context => asJson<IExtensionManifest>(context))
.then(manifest => {
if (!isVersionValid(pkg.version, manifest.engines.vscode)) {
const engine = manifest.engines.vscode;

// TODO@joao: discuss with alex '*' doesn't seem to be a valid engine version
if (engine !== '*' && !isVersionValid(pkg.version, engine)) {
return this.getLastValidExtensionVersionReccursively(extension, versions.slice(1));
}

Expand Down

0 comments on commit adb9c23

Please sign in to comment.