/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/
exportfunctiongetManifest(vsix:string):Promise<IExtensionManifest>{returnbuffer(vsix,'extension/package.json').then(buffer=>{try{returnJSON.parse(buffer.toString('utf8'));}catch(err){thrownewError(localize('invalidManifest',"VSIX invalid: package.json is not a JSON file."));}});