Extension
(entrypoint: src/extension.ts
): This is the main part of the application, which also consumes the Integrates API and interfaces with the vscode
library to mark vulnerabilities and populate the sidebar. Webpack bundles this section.Webview
(entrypoint: src/webview/App.tsx
): This uses React and hosts the webviews (Finding description
, Suggested autofix
, ToE Lines
, etc…). These webviews and the extension communicate through message handlers. For more information, refer to this the webview API page. Webpack also bundles this section.dev
, and when prompted for a Development Environment, pick any option or None
. You will need to have Node v21 installed beforehand./universe/retrieves
and from a terminal in the same folder run:npm install
extension
: Launch the Extension Development Host by pressing F5
; this will bundle the code and launch Webpack in watch mode. Despite Webpack’s hot reloading, some changes may require a manual reload of the Extension Host to be reflected.webview
: Follow the steps above, and the new changes to the code will be immediately reflected thanks to Webpack dev server’s hot reloading.package.json
file located in the Retrieves base folder. Otherwise, the change will be merged to trunk, but the publication/deployment process will be skipped.npm run lint
retrieves lint
npm run test
retrieves test