Skip to content

Commit 8ff8af5

Browse files
authored
fix setting prerelease flag in metadata and typo (microsoft#183398)
1 parent 7c5b8cc commit 8ff8af5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ interface HostedExtensionInfo {
5050
readonly preRelease?: boolean;
5151
readonly packageJSON?: IExtensionManifest;
5252
readonly defaultPackageTranslations?: ITranslations | null;
53-
readonly packagetNLSUris?: Map<string, UriComponents>;
53+
readonly packageNLSUris?: Map<string, UriComponents>;
5454
readonly readmeUri?: UriComponents;
5555
readonly changelogUri?: UriComponents;
5656
}
@@ -243,15 +243,15 @@ export class WebExtensionsScannerService extends Disposable implements IWebExten
243243
return [];
244244
}
245245
const result: IScannedExtension[] = [];
246-
await Promise.allSettled(extensionLocations.map(async ({ location, preRelease, packagetNLSUris, packageJSON, defaultPackageTranslations, readmeUri, changelogUri }) => {
246+
await Promise.allSettled(extensionLocations.map(async ({ location, preRelease, packageNLSUris, packageJSON, defaultPackageTranslations, readmeUri, changelogUri }) => {
247247
try {
248248
const webExtension = await this.toWebExtension(URI.revive(location), undefined,
249249
packageJSON,
250-
packagetNLSUris ? [...packagetNLSUris.entries()].reduce((result, [key, value]) => { result.set(key, URI.revive(value)); return result; }, new Map<string, URI>()) : undefined,
250+
packageNLSUris ? [...packageNLSUris.entries()].reduce((result, [key, value]) => { result.set(key, URI.revive(value)); return result; }, new Map<string, URI>()) : undefined,
251251
defaultPackageTranslations,
252252
URI.revive(readmeUri),
253253
URI.revive(changelogUri),
254-
{ preRelease });
254+
{ isPreReleaseVersion: preRelease });
255255
const extension = await this.toScannedExtension(webExtension, true);
256256
if (extension.isValid || !scanOptions?.skipInvalidExtensions) {
257257
result.push(extension);

0 commit comments

Comments
 (0)