Skip to content

VS Code Extension 1.11.0

Choose a tag to compare

@github-actions github-actions released this 17 Nov 14:45
· 10 commits to main since this release
4034e6a

B2C DX VS Code Extension v1.11.0

Download the .vsix file below and install via:

code --install-extension b2c-vs-extension-1.11.0.vsix

Or in VS Code: Extensions → ⋯ → Install from VSIX...


Changelog

Minor Changes

  • #865 2149bff - When no cartridges value is configured, b2c project, b2c security, the MCP project_inspect and security_scan tools, and the VS Code Cartridges view now order cartridges by a site's cartridge path from a sites/<site-id>/site.xml in the project (the latest migration or import set by timestamp prefix), so overlays compose the way the site runs them. Set siteId to choose the site. (Thanks @clavery!)

  • #865 2149bff - The Cartridges view now orders cartridges by your instance's site cartridge path when no cartridges configuration is set, and you can reorder it with drag and drop or Move Up/Down (saved per workspace). The view shows where its order comes from. Go-to-definition for */cartridge/... requires follows this order. (Thanks @clavery!)

  • #865 2149bff - Added the Endpoints view: controller endpoints (SFRA and SiteGenesis) with the middleware and route event listeners that run for each across the cartridge path, Custom APIs with their schema operations and implementations, and hooks in cartridge path order, with warnings for missing CSRF checks, server.replace() overrides that drop security middleware, and system hooks that can skip later registrations. The Cartridges view now shows each cartridge's controllers and route statements, hooks with their place in the run order, and Custom APIs, and combines Job Steps and Custom Step Types into Custom Job Steps. Job steps open the function that runs, custom hooks list the functions the project calls with their call sites, and Open Registration jumps to their hooks.json or steptypes.json entry. Controller files show each endpoint's summary above its route statement, with a link to it in the Endpoints view. Custom APIs can be opened in the API Browser. (Thanks @clavery!)

Patch Changes

  • #865 2149bff - Go-to-definition for */cartridge/... requires now searches the cartridge path from left to right, as the platform does. Before, it checked the calling file's own cartridge first and could open the wrong file. (Thanks @clavery!)

  • #866 14a31b0 - The project index (b2c project, the MCP project_inspect tool, and the VS Code Endpoints and Cartridges views) no longer loses a controller's endpoints when the leftmost cartridge's controller hands module to a helper (for example require('*/cartridge/scripts/helpers/headlessHelpers').redirectHeadless(module, 'Show')). The endpoints keep the routes from cartridges further right, and the delegating controller is shown as a step that may change them. (Thanks @clavery!)

  • Updated dependencies [2149bff, 2149bff, 2149bff, 84956d1, 14a31b0, 2149bff, 2149bff, 2149bff]:

    • @salesforce/b2c-tooling-sdk@2.16.0
    • @salesforce/b2c-script-types@26.9.0