diff --git a/services/open-vsx/open-vsx-base.js b/services/open-vsx/open-vsx-base.js index b7a79656604bb..3f4d43d5ce785 100644 --- a/services/open-vsx/open-vsx-base.js +++ b/services/open-vsx/open-vsx-base.js @@ -31,8 +31,8 @@ export default class OpenVSXBase extends BaseJsonService { async fetch({ namespace, extension, version }) { return this._requestJson({ schema: extensionQuerySchema, - url: `https://open-vsx.org/api/${namespace}/${extension}/${ - version || '' + url: `https://open-vsx.org/api/${namespace}/${extension}${ + version ? `/${version}` : '' }`, httpErrors: { 400: 'invalid extension id',