ProtectedadaptAdapt the given plugin's metadata for headless deployment, where it does not
already natively specify its headless deployment, such as is the case for plugins
declaring the "vscode" or "theiaPlugin" engine. This consists of cloning the
relevant properties of its deployment metadata and modifying them as required,
including but not limited to:
lifecycle start and stop functions as 'activate' and 'deactivate'
following the VS Code naming convention (in case the plugin is a Theia-style
plugin that uses 'start' and 'stop')The cloning is necessary to retain the original information for the non-headless deployments that the plugin also supports.
ProtectedadaptA mapping between a dependency as its defined in package.json
and its deployable form, e.g. publisher.name -> vscode:extension/publisher.name
ProtectedgetProtectedgetProtectedgetProtectedgetProtectedread
This scanner process package.json object and returns plugin metadata objects.