Skip to content

Commit 3fb8e8f

Browse files
authored
store manifest as is (microsoft#166260)
1 parent 7c39b50 commit 3fb8e8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ interface IStoredWebExtension {
5858
readonly identifier: IExtensionIdentifier;
5959
readonly version: string;
6060
readonly location: UriComponents;
61-
readonly manifest?: string;
61+
readonly manifest?: IExtensionManifest;
6262
readonly readmeUri?: UriComponents;
6363
readonly changelogUri?: UriComponents;
6464
// deprecated in favor of packageNLSUris & fallbackPackageNLSUri
@@ -806,7 +806,7 @@ export class WebExtensionsScannerService extends Disposable implements IWebExten
806806
identifier: e.identifier,
807807
version: e.version,
808808
location: URI.revive(e.location),
809-
manifest: e.manifest ? JSON.parse(e.manifest) : undefined,
809+
manifest: e.manifest,
810810
readmeUri: URI.revive(e.readmeUri),
811811
changelogUri: URI.revive(e.changelogUri),
812812
packageNLSUris,
@@ -869,7 +869,7 @@ export class WebExtensionsScannerService extends Disposable implements IWebExten
869869
const storedWebExtensions: IStoredWebExtension[] = webExtensions.map(e => ({
870870
identifier: e.identifier,
871871
version: e.version,
872-
manifest: e.manifest ? JSON.stringify(e.manifest) : undefined,
872+
manifest: e.manifest,
873873
location: e.location.toJSON(),
874874
readmeUri: e.readmeUri?.toJSON(),
875875
changelogUri: e.changelogUri?.toJSON(),

0 commit comments

Comments
 (0)