Skip to content

Commit

Permalink
store manifest as is (#166260)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Nov 14, 2022
1 parent 7c39b50 commit 3fb8e8f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ interface IStoredWebExtension {
readonly identifier: IExtensionIdentifier;
readonly version: string;
readonly location: UriComponents;
readonly manifest?: string;
readonly manifest?: IExtensionManifest;
readonly readmeUri?: UriComponents;
readonly changelogUri?: UriComponents;
// deprecated in favor of packageNLSUris & fallbackPackageNLSUri
Expand Down Expand Up @@ -806,7 +806,7 @@ export class WebExtensionsScannerService extends Disposable implements IWebExten
identifier: e.identifier,
version: e.version,
location: URI.revive(e.location),
manifest: e.manifest ? JSON.parse(e.manifest) : undefined,
manifest: e.manifest,
readmeUri: URI.revive(e.readmeUri),
changelogUri: URI.revive(e.changelogUri),
packageNLSUris,
Expand Down Expand Up @@ -869,7 +869,7 @@ export class WebExtensionsScannerService extends Disposable implements IWebExten
const storedWebExtensions: IStoredWebExtension[] = webExtensions.map(e => ({
identifier: e.identifier,
version: e.version,
manifest: e.manifest ? JSON.stringify(e.manifest) : undefined,
manifest: e.manifest,
location: e.location.toJSON(),
readmeUri: e.readmeUri?.toJSON(),
changelogUri: e.changelogUri?.toJSON(),
Expand Down

0 comments on commit 3fb8e8f

Please sign in to comment.