Skip to content

chore(deps): update VS Code extensions across devcontainers - #1464

Open
philips-software-forest-releaser[bot] wants to merge 2 commits into
mainfrom
feature/amp-devcontainer/update-vscode-extensions
Open

philips-software-forest-releaser[bot] wants to merge 2 commits into
mainfrom
feature/amp-devcontainer/update-vscode-extensions

Conversation

@philips-software-forest-releaser

@philips-software-forest-releaser philips-software-forest-releaser Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Note

Before merging this PR, please conduct a manual test checking basic functionality of the updated plug-ins. There are limited automated tests for the VS Code Extension updates.

🍨 base — devcontainer.json

Updates github.vscode-pull-request-github from 0.162.0 to 0.166.0

Release notes

0.162.0

Changes

  • Confirm before discarding pull request creation with unsaved changes. This can be disabled with the "githubPullRequests.showCreatePullRequestCancelConfirmation" setting.

Thank You

Changes

  • Added a "githubIssues.issueCompletionFormatEditor" setting to control the format of issue completions in the editor, mirroring the existing "githubIssues.issueCompletionFormatScm" setting. It defaults to ${issueNumberLabel}, which inserts only the issue number (e.g. #421) so that GitHub's auto-close references keep working.

Fixes

### 🍨 cpp — devcontainer.json

Updates ms-vscode.cpptools from 1.33.8 to 1.34.4

Release notes

Updates ms-vscode.cmake-tools from 1.23.52 to 1.24.42

Release notes

Features:

  • Add support for the FASTBuild generator (CMake 4.2+). #4690
  • Add support for ${workspaceFolder}, ${workspaceFolder:name} variables and relative paths in cmake.exclude setting for multi-root workspaces. #4689
  • Add onConfigureResult event to the CMake Tools API that fires after every configure attempt (success or failure), allowing dependent extensions to detect and react to configure failures. #4021
  • Add cmake.preConfigureTask setting to execute a named VS Code task before every CMake configure. #2449 #4960 @erdemiru

Improvements:

  • Add ${testName} variable support for cmake.ctestArgs and cmake.ctestDefaultArgs, enabling per-test argument expansion (e.g., unique log file paths per test). #4416
  • Stop the CMake output channel from taking over the panel (hiding the terminal you're working in) during automatic configures (e.g. configure-on-open and automatic reconfigure) and programmatic builds or tests invoked through the CMake Tools API (e.g. by Copilot via the C/C++ DevTools companion). Failures are still always shown, explicit user-initiated builds/configures are unchanged, and cmake.revealLogOnAutomaticTrigger restores the old behavior. #4988
  • Add cmake.showTimestampsInOutput setting to display timestamps and log levels in the CMake output channel, useful for tracking build durations. #4057
  • When CMake is invoked prior to running tests, build targets required for the test rather than everything. #4515 @epistax
  • Allow building object library targets from the project outline. #4797
  • Add inline "Run" and "Debug" CodeLens buttons in source editors for tests discovered by CTest, allowing tests to be executed directly from their source locations. #4451
  • Improve responsiveness to CMake path changes made by vendor extensions during configure-on-open retry. #4908 Contributed by STMicroelectronics
  • Improve ergonomics of the test explorer UI by removing the project source directory, improving horizontal scrolling experience. #4562 @miss-programgamer
  • Pass mandatory compiler arguments from CMAKE_<LANG>_COMPILER to cpptools so it can properly determine system include paths and built-in preprocessor macro definitions. Requires CMake 4.3 or newer. #4627 @cwalther
  • Add support for a vsInstanceVersion vendor field in CMakePresets.json so Ninja configure presets can target a specific installed Visual Studio instance (by version) when bootstrapping the developer environment, instead of always using the latest. #4698
  • Use the CMake bundled with the Visual Studio instance selected by the vsInstanceVersion vendor field when resolving cmake.exe, instead of always falling back to the latest installed Visual Studio's CMake. Only applies on Windows for presets that pin an instance and when no explicit cmake.cmakePath or preset cmakeExecutable is set; otherwise CMake resolution is unchanged. #5052
  • Make the CMake Cache Editor ("Edit Cache (UI)") aware of cache variables defined by the active CMake configure preset: a new "Source" column shows where each variable comes from (project/user preset vs. the CMake cache) and whether it still matches the preset, and edits to preset-backed variables are now persisted as an override in CMakeUserPresets.json (and reconfigured with it) instead of being silently reverted by the preset on the next configure. #4884 @BilboBeutlin89
  • Load the bundled language-service data (command, variable, module, and policy descriptions) on first hover/completion instead of during activation, so activation no longer blocks on reading those assets. #5035
  • Replace the datalist/input control with a select control for enum-valued cache entries in the CMake Cache Editor, so allowed values are chosen from a proper dropdown instead of a free-text field. #4973

Bug Fixes:

  • Fix "Scan recursively for kits in specific directories" aborting with an unhandled EACCES/EPERM error (and adding no kits) when the chosen folder contains a subdirectory the current user cannot read (for example a root-only /opt/rh/.../root/root on a WSL/Linux host). Unreadable directories and un-stat-able entries are now skipped so the rest of the scan still completes. #5020
  • Fix the last compiler diagnostic of an IAR build being dropped from the Problems panel. The IAR output parser only emitted a diagnostic once a following line arrived, so the final one of each build (with no trailing line) was never flushed; parsers are now flushed when the build output ends. #5030
  • Fix a cmake build/configure task (a tasks.json entry with "type": "cmake") always operating on the first CMake project in a workspace folder that hosts several projects (for example multiple cmake.sourceDirectory entries) instead of the selected active folder. Such a task now honors the active project when it belongs to the task's workspace folder, and only falls back to the folder's project otherwise. #4512
  • Fix launch configurations that use ${cmake.testProgram} (and the related ${cmake.testArgs}, ${cmake.testWorkingDirectory} and ${cmake.testEnvironment} placeholders) failing with program '${cmake.testProgram}' does not exist when started from the Run and Debug view (F5) instead of the Test Explorer. Such a launch now prompts you to pick one of the discovered CTest tests and resolves the placeholders for it, so the same configuration works from both entry points. #4574
  • Fix disabled tests (for example GoogleTest DISABLED_ tests, which CTest reports as "Not Run (Disabled)") being shown in the Test Explorer as failed ("failed with completion status 'Disabled'") and dragging their group's status down. Such tests are intentionally not executed, so they are now reported as skipped and no longer taint the run result. #4267
  • Fix CMake syntax highlighting treating escaped $< sequences in quoted regex strings as generator expressions. #5028
  • Fix the Test Explorer reporting a test that crashed or timed out (for example one killed by a segmentation fault) as "failed with exit code 0". CTest records the cause in its Exit Code measurement (such as SEGFAULT or Timeout) while Exit Value stays 0, so the failure message now names that status instead of the misleading exit value. #5043
  • Fix the cmake version/capabilities probe, configure, build, and CMake script debugger intermittently failing (for example No version is set for shim: cmake) for users whose cmake comes from a directory-based version manager (mise, asdf, vfox, …). These CMake subprocesses now run in the project directory instead of inheriting the extension host's working directory, so the version-manager shim on PATH resolves the correct cmake for the project regardless of how the editor was launched. #5005 @danieleformichelli
  • Fix the auto-detected source directory notification showing a literal Change\u2026 on its button instead of Change... in packaged (Marketplace) builds. The label used a \u2026 JavaScript unicode escape, which vscode-nls-dev extracted verbatim into the localization bundle; it now uses plain .... #5003
  • Fix a test run that matched no tests being reported as success. When specific tests are requested (e.g. programmatically via the API/Copilot) but none match a discovered test — for example an agent passing a partial or non-existent test name — CTest exits 0 ("No tests were found!!!"), which callers could misread as "all tests passed". Such runs now return a failure with a clear message when tests exist but the requested ones weren't found. #4915
  • Stop showing "Adding a file without a valid code model" / "Deleting a file without a valid code model" warning notifications when a source file is automatically added or deleted and there is no valid CMake code model (for example when using clangd with the C/C++ IntelliSense engine disabled, or before the project has been configured). The automatic list-file update now stays silent in this case; the warning is only shown when the update is explicitly invoked via the "CMake: Add new source file" / "CMake: Remove deleted source file" commands. #5009
  • Fix running a single test from the inline Test CodeLens or the project outline building the default (or all) target instead of the test's own executable; single-test runs now build only that test's target.
  • Fix a single test's "Run" action in a multi-project workspace running all tests for that project instead of just the selected test, caused by test information from the most recently refreshed project overwriting the shared state used to compute the test filter. #4911
  • Fix test results showing a bare "The test case did not report any output." when a test did not actually run (for example when its executable was not built, so CTest reported it as "Not Run" or matched nothing). The test is now marked with an actionable message explaining that the executable may not have been built. CTest result parsing was also hardened so that compressed test output is decoded and a single test with missing or empty measurements no longer discards the results of the whole run. #4451
  • Fix test runs launched from the Test Explorer or the inline Test CodeLens appearing to run forever (the progress spinner never cleared) when a step in the run failed. The test run is now always finalized, even when building or running the tests throws, so the spinner stops and the failure is reported. Also, a single-test run no longer accidentally executes the entire suite when the full list of tests is not yet known. #4451
  • Fix a regression (since 1.23) where configure could appear to never finish — the progress indicator kept spinning and a second configure was rejected with "Configuration is already in progress" — after CMake had actually completed. Configure-time compiler version telemetry now reads the compiler id/version from the CMake File-API toolchains data instead of launching the compiler, so configure no longer depends on an extra compiler subprocess that could leave a descendant (e.g. mspdbsrv.exe/VCTIP.exe on Windows) holding its output pipes open. #4647
  • Fix CMake Tools not activating for projects whose CMakeLists.txt lives in a subdirectory (e.g. source/CMakeLists.txt) rather than the workspace root. Such projects now activate on open: a single nested CMakeLists.txt is detected and adopted automatically (with a notification to change the choice or opt out), and a picker is offered when there are multiple candidates. The new cmake.autoDetectSourceDirectory setting (default true) controls this behavior.
  • Fix switching the active editor to a file in a different root in a multi-root workspace clearing all C/C++ IntelliSense translation units (including for files still open in other panes). Changing the active project no longer tells cpptools that every file's configuration changed, so it no longer discards and rebuilds translation units for unrelated files. #4964
  • Fix the automatic "Select a Kit" prompt in a multi-root workspace being titled for, and applied to, the folder of the active editor instead of the folder whose configure-on-open actually triggered it. The kit is now selected for the correct project, so the intended folder gets configured and the prompt stops re-appearing on every window reload. #5011
  • Fix cmake.configureOnOpen performing a clean reconfigure (deleting CMakeCache.txt) instead of an incremental configure when using __unspec__ kit with CMake >= 3.15 and no explicit generator setting. #4956
  • Fix ${command:cmake.launchTargetPath} and related substitution commands (cmake.launchTargetDirectory, cmake.launchTargetFilename, cmake.launchTargetName, cmake.getLaunchTargetPath, etc.) showing an error instead of prompting kit or preset selection when none is active. These commands now behave consistently with the build/configure commands by displaying the quick pick dialog.
  • Fix intermittent Failed to parse cmake-tools-kits.json error caused by reading the kits file during a non-atomic write. readKitsFile now returns undefined when the file is empty or unparseable, and callers retain the previous kits in memory instead of clearing them. The file watcher will re-read once the write completes. #4833
  • Fix CMake: Compile Active File by unescaping compile_commands.json command strings into raw argv before spawning the compiler, so defines such as -DCMAKE_INTDIR=\"RelWithDebInfo\" are passed correctly. Originally surfaced on Ninja Multi-Config (Windows); also covers shell-escaped databases from bear, intercept-build, etc. #4935
  • Fix mirrored cursor in CMake control structure snippets. Completing a scoped command (e.g., function, if, foreach) no longer duplicates typed text into the end-statement. #4480
  • Fix CPack package preset inheritance so child variables maps now keep parent-defined -D values when the child adds its own package variables. #4924
  • Fix Windows presets auto-detection so Ninja configure presets without explicit compiler cache variables can still bootstrap the Visual Studio developer environment when appropriate.
  • Fix cmake-kits.json cmakeSettings rejecting boolean values. The JSON schema and the Kit.cmakeSettings TypeScript type now accept boolean (and number) again, so "BUILD_TESTING": true produces -DBUILD_TESTING:BOOL=TRUE and is shown as a checkbox in the CMake Cache Editor. #4927
  • Fix cmakeSettings (in cmake-kits.json) and cmake.configureSettings (workspace settings, including the settings block in CMake variants files) injecting \; into string values such as CMAKE_PREFIX_PATH. String values are now passed through verbatim so ; keeps its natural CMake list-separator semantics — matching how CMake Presets cacheVariables already behaves — completing the fix originally requested in #4503. #4934
  • Fix CMAKE_MAKE_PROGRAM and other cache variables using stale values when presets are edited without restarting VS Code. The onCodeModelChanged subscription is now established in startNewCMakeDriver so it applies to both initial creation and driver reloads. #4864
  • Fix Windows backslash handling in token splitting to preserve trailing backslashes before whitespace. This caused "Compile Active File" with MSVC + Ninja Multi-Config to merge adjacent flags (e.g., /Fd<dir>\ /FS) into a single malformed argument. #4902
  • Skip the automatic post-build CTest discovery when cmake.ctest.testExplorerIntegrationEnabled is false. #4909
  • Fix kit detection returning "unknown vendor" when using clang-cl compiler. #4638
  • Fix CMakeToolsApi.getProject() treating file URIs as source directories, which could log "sourceDirectory" is not a directory during normal API usage from dependent extensions. #4951
  • Fix CMake command-name completion no longer auto-triggering while typing, a regression since 1.23.51. A command word is tokenized as a string until () is added, and the completion provider relies on editor.quickSuggestions (which is off in strings by default), so suggestions stopped appearing. The extension now enables quick suggestions in strings for CMake files via configurationDefaults, restoring the previous behavior (overridable per user). #4959
  • Fix the Problems panel failing to open a file ("file was not found") for GCC C++ template errors. The GNU ld output parser no longer mis-captures a compiler file:line:column: required from here backtrace line as a diagnostic whose resource was file:line (with the source line appended to the path). #4954
  • Fix GNU LD diagnostic regex incorrectly matching CMake status lines (e.g., Zephyr build output) as linker errors in the Problems panel. #4910
  • Fix CTest discovery in the Test Explorer not applying environment variables from the selected test preset. #4313
  • Show the CMake Tools activity-bar view immediately with an "initializing" placeholder instead of hiding the entire sidebar until CMake, kit, preset, and Visual Studio developer-environment probing completes. On machines where those probes are intermittently slow (e.g. aggressive antivirus scanning of spawned processes, or extension-host file-handle exhaustion), the sidebar no longer disappears for minutes during activation. Project commands, menus, and status items remain gated on full readiness, so nothing runs against a partially-initialized project. #5027
  • Refresh the open CMake Cache Editor when configuration changes cache values externally. #3635
  • Avoid building the project multiple times when a single launch.json configuration uses several ${command:cmake.launchTargetPath}-style substitutions (e.g. cmake.launchTargetDirectory plus cmake.launchTargetPath). All such substitutions in one launch now share a single build; a later launch still rebuilds as needed. #5051
  • Preserve CMakeCache.txt on folder open with CMake Presets when the active configure preset specifies no generator, so cmake.configureOnOpen performs an incremental configure instead of deleting the cache and reconfiguring from scratch. #5049
  • Stop checking user kits for missing compilers on every activation, and no longer treat transient filesystem errors (such as file-handle exhaustion) as a missing compiler, which could prompt to remove valid kits. Stale kits are still detected during a kit/compiler scan. #5035
  • Avoid configuring a project twice during configure-on-open when a configure preset (or kit) has to be selected first. The selection no longer performs its own automatic reconfigure when the configure that requested the selection is about to run. #5050
  • Fix clicking "Run Test" (or build/launch) with an unsaved CMakeLists.txt failing with "Configuration is already in progress" and requiring a second click. The automatic reconfigure triggered by saving the file no longer races the command's own configure. #4794
  • Stop passing CMake configure diagnostic flags that CMake 4.4 deprecated (--no-warn-unused-cli, --warn-uninitialized, -Wdev/-Wno-dev, -Werror=dev/-Wno-error=dev), which caused a deprecation warning on every configure. On CMake 4.4 and newer these are emitted using the modern category-based spellings (-Wno-unused-cli, -Wuninitialized, -Wauthor/-Wno-author, -Werror=author/-Wno-error=author); older CMake versions continue to receive the legacy flags. #4999
  • Fix cmake.copyCompileCommands failing with "EISDIR: illegal operation on a directory" when set to a directory path, and emptying compile_commands.json when set to the source file itself. A directory destination now receives the file copied into it, and a destination that resolves to the source file is skipped. #4062

Updates github.vscode-pull-request-github from 0.162.0 to 0.166.0

Release notes

0.162.0

Changes

  • Confirm before discarding pull request creation with unsaved changes. This can be disabled with the "githubPullRequests.showCreatePullRequestCancelConfirmation" setting.

Thank You

Changes

  • Added a "githubIssues.issueCompletionFormatEditor" setting to control the format of issue completions in the editor, mirroring the existing "githubIssues.issueCompletionFormatScm" setting. It defaults to ${issueNumberLabel}, which inserts only the issue number (e.g. #421) so that GitHub's auto-close references keep working.

Fixes

Updates alexkrechik.cucumberautocomplete from 3.1.0 to 3.1.1

Release notes
### 🍨 cpp — devcontainer-metadata.json

Updates ms-vscode.cpptools from 1.33.8 to 1.34.4

Release notes

Updates ms-vscode.cmake-tools from 1.23.52 to 1.24.42

Release notes

Features:

  • Add support for the FASTBuild generator (CMake 4.2+). #4690
  • Add support for ${workspaceFolder}, ${workspaceFolder:name} variables and relative paths in cmake.exclude setting for multi-root workspaces. #4689
  • Add onConfigureResult event to the CMake Tools API that fires after every configure attempt (success or failure), allowing dependent extensions to detect and react to configure failures. #4021
  • Add cmake.preConfigureTask setting to execute a named VS Code task before every CMake configure. #2449 #4960 @erdemiru

Improvements:

  • Add ${testName} variable support for cmake.ctestArgs and cmake.ctestDefaultArgs, enabling per-test argument expansion (e.g., unique log file paths per test). #4416
  • Stop the CMake output channel from taking over the panel (hiding the terminal you're working in) during automatic configures (e.g. configure-on-open and automatic reconfigure) and programmatic builds or tests invoked through the CMake Tools API (e.g. by Copilot via the C/C++ DevTools companion). Failures are still always shown, explicit user-initiated builds/configures are unchanged, and cmake.revealLogOnAutomaticTrigger restores the old behavior. #4988
  • Add cmake.showTimestampsInOutput setting to display timestamps and log levels in the CMake output channel, useful for tracking build durations. #4057
  • When CMake is invoked prior to running tests, build targets required for the test rather than everything. #4515 @epistax
  • Allow building object library targets from the project outline. #4797
  • Add inline "Run" and "Debug" CodeLens buttons in source editors for tests discovered by CTest, allowing tests to be executed directly from their source locations. #4451
  • Improve responsiveness to CMake path changes made by vendor extensions during configure-on-open retry. #4908 Contributed by STMicroelectronics
  • Improve ergonomics of the test explorer UI by removing the project source directory, improving horizontal scrolling experience. #4562 @miss-programgamer
  • Pass mandatory compiler arguments from CMAKE_<LANG>_COMPILER to cpptools so it can properly determine system include paths and built-in preprocessor macro definitions. Requires CMake 4.3 or newer. #4627 @cwalther
  • Add support for a vsInstanceVersion vendor field in CMakePresets.json so Ninja configure presets can target a specific installed Visual Studio instance (by version) when bootstrapping the developer environment, instead of always using the latest. #4698
  • Use the CMake bundled with the Visual Studio instance selected by the vsInstanceVersion vendor field when resolving cmake.exe, instead of always falling back to the latest installed Visual Studio's CMake. Only applies on Windows for presets that pin an instance and when no explicit cmake.cmakePath or preset cmakeExecutable is set; otherwise CMake resolution is unchanged. #5052
  • Make the CMake Cache Editor ("Edit Cache (UI)") aware of cache variables defined by the active CMake configure preset: a new "Source" column shows where each variable comes from (project/user preset vs. the CMake cache) and whether it still matches the preset, and edits to preset-backed variables are now persisted as an override in CMakeUserPresets.json (and reconfigured with it) instead of being silently reverted by the preset on the next configure. #4884 @BilboBeutlin89
  • Load the bundled language-service data (command, variable, module, and policy descriptions) on first hover/completion instead of during activation, so activation no longer blocks on reading those assets. #5035
  • Replace the datalist/input control with a select control for enum-valued cache entries in the CMake Cache Editor, so allowed values are chosen from a proper dropdown instead of a free-text field. #4973

Bug Fixes:

  • Fix "Scan recursively for kits in specific directories" aborting with an unhandled EACCES/EPERM error (and adding no kits) when the chosen folder contains a subdirectory the current user cannot read (for example a root-only /opt/rh/.../root/root on a WSL/Linux host). Unreadable directories and un-stat-able entries are now skipped so the rest of the scan still completes. #5020
  • Fix the last compiler diagnostic of an IAR build being dropped from the Problems panel. The IAR output parser only emitted a diagnostic once a following line arrived, so the final one of each build (with no trailing line) was never flushed; parsers are now flushed when the build output ends. #5030
  • Fix a cmake build/configure task (a tasks.json entry with "type": "cmake") always operating on the first CMake project in a workspace folder that hosts several projects (for example multiple cmake.sourceDirectory entries) instead of the selected active folder. Such a task now honors the active project when it belongs to the task's workspace folder, and only falls back to the folder's project otherwise. #4512
  • Fix launch configurations that use ${cmake.testProgram} (and the related ${cmake.testArgs}, ${cmake.testWorkingDirectory} and ${cmake.testEnvironment} placeholders) failing with program '${cmake.testProgram}' does not exist when started from the Run and Debug view (F5) instead of the Test Explorer. Such a launch now prompts you to pick one of the discovered CTest tests and resolves the placeholders for it, so the same configuration works from both entry points. #4574
  • Fix disabled tests (for example GoogleTest DISABLED_ tests, which CTest reports as "Not Run (Disabled)") being shown in the Test Explorer as failed ("failed with completion status 'Disabled'") and dragging their group's status down. Such tests are intentionally not executed, so they are now reported as skipped and no longer taint the run result. #4267
  • Fix CMake syntax highlighting treating escaped $< sequences in quoted regex strings as generator expressions. #5028
  • Fix the Test Explorer reporting a test that crashed or timed out (for example one killed by a segmentation fault) as "failed with exit code 0". CTest records the cause in its Exit Code measurement (such as SEGFAULT or Timeout) while Exit Value stays 0, so the failure message now names that status instead of the misleading exit value. #5043
  • Fix the cmake version/capabilities probe, configure, build, and CMake script debugger intermittently failing (for example No version is set for shim: cmake) for users whose cmake comes from a directory-based version manager (mise, asdf, vfox, …). These CMake subprocesses now run in the project directory instead of inheriting the extension host's working directory, so the version-manager shim on PATH resolves the correct cmake for the project regardless of how the editor was launched. #5005 @danieleformichelli
  • Fix the auto-detected source directory notification showing a literal Change\u2026 on its button instead of Change... in packaged (Marketplace) builds. The label used a \u2026 JavaScript unicode escape, which vscode-nls-dev extracted verbatim into the localization bundle; it now uses plain .... #5003
  • Fix a test run that matched no tests being reported as success. When specific tests are requested (e.g. programmatically via the API/Copilot) but none match a discovered test — for example an agent passing a partial or non-existent test name — CTest exits 0 ("No tests were found!!!"), which callers could misread as "all tests passed". Such runs now return a failure with a clear message when tests exist but the requested ones weren't found. #4915
  • Stop showing "Adding a file without a valid code model" / "Deleting a file without a valid code model" warning notifications when a source file is automatically added or deleted and there is no valid CMake code model (for example when using clangd with the C/C++ IntelliSense engine disabled, or before the project has been configured). The automatic list-file update now stays silent in this case; the warning is only shown when the update is explicitly invoked via the "CMake: Add new source file" / "CMake: Remove deleted source file" commands. #5009
  • Fix running a single test from the inline Test CodeLens or the project outline building the default (or all) target instead of the test's own executable; single-test runs now build only that test's target.
  • Fix a single test's "Run" action in a multi-project workspace running all tests for that project instead of just the selected test, caused by test information from the most recently refreshed project overwriting the shared state used to compute the test filter. #4911
  • Fix test results showing a bare "The test case did not report any output." when a test did not actually run (for example when its executable was not built, so CTest reported it as "Not Run" or matched nothing). The test is now marked with an actionable message explaining that the executable may not have been built. CTest result parsing was also hardened so that compressed test output is decoded and a single test with missing or empty measurements no longer discards the results of the whole run. #4451
  • Fix test runs launched from the Test Explorer or the inline Test CodeLens appearing to run forever (the progress spinner never cleared) when a step in the run failed. The test run is now always finalized, even when building or running the tests throws, so the spinner stops and the failure is reported. Also, a single-test run no longer accidentally executes the entire suite when the full list of tests is not yet known. #4451
  • Fix a regression (since 1.23) where configure could appear to never finish — the progress indicator kept spinning and a second configure was rejected with "Configuration is already in progress" — after CMake had actually completed. Configure-time compiler version telemetry now reads the compiler id/version from the CMake File-API toolchains data instead of launching the compiler, so configure no longer depends on an extra compiler subprocess that could leave a descendant (e.g. mspdbsrv.exe/VCTIP.exe on Windows) holding its output pipes open. #4647
  • Fix CMake Tools not activating for projects whose CMakeLists.txt lives in a subdirectory (e.g. source/CMakeLists.txt) rather than the workspace root. Such projects now activate on open: a single nested CMakeLists.txt is detected and adopted automatically (with a notification to change the choice or opt out), and a picker is offered when there are multiple candidates. The new cmake.autoDetectSourceDirectory setting (default true) controls this behavior.
  • Fix switching the active editor to a file in a different root in a multi-root workspace clearing all C/C++ IntelliSense translation units (including for files still open in other panes). Changing the active project no longer tells cpptools that every file's configuration changed, so it no longer discards and rebuilds translation units for unrelated files. #4964
  • Fix the automatic "Select a Kit" prompt in a multi-root workspace being titled for, and applied to, the folder of the active editor instead of the folder whose configure-on-open actually triggered it. The kit is now selected for the correct project, so the intended folder gets configured and the prompt stops re-appearing on every window reload. #5011
  • Fix cmake.configureOnOpen performing a clean reconfigure (deleting CMakeCache.txt) instead of an incremental configure when using __unspec__ kit with CMake >= 3.15 and no explicit generator setting. #4956
  • Fix ${command:cmake.launchTargetPath} and related substitution commands (cmake.launchTargetDirectory, cmake.launchTargetFilename, cmake.launchTargetName, cmake.getLaunchTargetPath, etc.) showing an error instead of prompting kit or preset selection when none is active. These commands now behave consistently with the build/configure commands by displaying the quick pick dialog.
  • Fix intermittent Failed to parse cmake-tools-kits.json error caused by reading the kits file during a non-atomic write. readKitsFile now returns undefined when the file is empty or unparseable, and callers retain the previous kits in memory instead of clearing them. The file watcher will re-read once the write completes. #4833
  • Fix CMake: Compile Active File by unescaping compile_commands.json command strings into raw argv before spawning the compiler, so defines such as -DCMAKE_INTDIR=\"RelWithDebInfo\" are passed correctly. Originally surfaced on Ninja Multi-Config (Windows); also covers shell-escaped databases from bear, intercept-build, etc. #4935
  • Fix mirrored cursor in CMake control structure snippets. Completing a scoped command (e.g., function, if, foreach) no longer duplicates typed text into the end-statement. #4480
  • Fix CPack package preset inheritance so child variables maps now keep parent-defined -D values when the child adds its own package variables. #4924
  • Fix Windows presets auto-detection so Ninja configure presets without explicit compiler cache variables can still bootstrap the Visual Studio developer environment when appropriate.
  • Fix cmake-kits.json cmakeSettings rejecting boolean values. The JSON schema and the Kit.cmakeSettings TypeScript type now accept boolean (and number) again, so "BUILD_TESTING": true produces -DBUILD_TESTING:BOOL=TRUE and is shown as a checkbox in the CMake Cache Editor. #4927
  • Fix cmakeSettings (in cmake-kits.json) and cmake.configureSettings (workspace settings, including the settings block in CMake variants files) injecting \; into string values such as CMAKE_PREFIX_PATH. String values are now passed through verbatim so ; keeps its natural CMake list-separator semantics — matching how CMake Presets cacheVariables already behaves — completing the fix originally requested in #4503. #4934
  • Fix CMAKE_MAKE_PROGRAM and other cache variables using stale values when presets are edited without restarting VS Code. The onCodeModelChanged subscription is now established in startNewCMakeDriver so it applies to both initial creation and driver reloads. #4864
  • Fix Windows backslash handling in token splitting to preserve trailing backslashes before whitespace. This caused "Compile Active File" with MSVC + Ninja Multi-Config to merge adjacent flags (e.g., /Fd<dir>\ /FS) into a single malformed argument. #4902
  • Skip the automatic post-build CTest discovery when cmake.ctest.testExplorerIntegrationEnabled is false. #4909
  • Fix kit detection returning "unknown vendor" when using clang-cl compiler. #4638
  • Fix CMakeToolsApi.getProject() treating file URIs as source directories, which could log "sourceDirectory" is not a directory during normal API usage from dependent extensions. #4951
  • Fix CMake command-name completion no longer auto-triggering while typing, a regression since 1.23.51. A command word is tokenized as a string until () is added, and the completion provider relies on editor.quickSuggestions (which is off in strings by default), so suggestions stopped appearing. The extension now enables quick suggestions in strings for CMake files via configurationDefaults, restoring the previous behavior (overridable per user). #4959
  • Fix the Problems panel failing to open a file ("file was not found") for GCC C++ template errors. The GNU ld output parser no longer mis-captures a compiler file:line:column: required from here backtrace line as a diagnostic whose resource was file:line (with the source line appended to the path). #4954
  • Fix GNU LD diagnostic regex incorrectly matching CMake status lines (e.g., Zephyr build output) as linker errors in the Problems panel. #4910
  • Fix CTest discovery in the Test Explorer not applying environment variables from the selected test preset. #4313
  • Show the CMake Tools activity-bar view immediately with an "initializing" placeholder instead of hiding the entire sidebar until CMake, kit, preset, and Visual Studio developer-environment probing completes. On machines where those probes are intermittently slow (e.g. aggressive antivirus scanning of spawned processes, or extension-host file-handle exhaustion), the sidebar no longer disappears for minutes during activation. Project commands, menus, and status items remain gated on full readiness, so nothing runs against a partially-initialized project. #5027
  • Refresh the open CMake Cache Editor when configuration changes cache values externally. #3635
  • Avoid building the project multiple times when a single launch.json configuration uses several ${command:cmake.launchTargetPath}-style substitutions (e.g. cmake.launchTargetDirectory plus cmake.launchTargetPath). All such substitutions in one launch now share a single build; a later launch still rebuilds as needed. #5051
  • Preserve CMakeCache.txt on folder open with CMake Presets when the active configure preset specifies no generator, so cmake.configureOnOpen performs an incremental configure instead of deleting the cache and reconfiguring from scratch. #5049
  • Stop checking user kits for missing compilers on every activation, and no longer treat transient filesystem errors (such as file-handle exhaustion) as a missing compiler, which could prompt to remove valid kits. Stale kits are still detected during a kit/compiler scan. #5035
  • Avoid configuring a project twice during configure-on-open when a configure preset (or kit) has to be selected first. The selection no longer performs its own automatic reconfigure when the configure that requested the selection is about to run. #5050
  • Fix clicking "Run Test" (or build/launch) with an unsaved CMakeLists.txt failing with "Configuration is already in progress" and requiring a second click. The automatic reconfigure triggered by saving the file no longer races the command's own configure. #4794
  • Stop passing CMake configure diagnostic flags that CMake 4.4 deprecated (--no-warn-unused-cli, --warn-uninitialized, -Wdev/-Wno-dev, -Werror=dev/-Wno-error=dev), which caused a deprecation warning on every configure. On CMake 4.4 and newer these are emitted using the modern category-based spellings (-Wno-unused-cli, -Wuninitialized, -Wauthor/-Wno-author, -Werror=author/-Wno-error=author); older CMake versions continue to receive the legacy flags. #4999
  • Fix cmake.copyCompileCommands failing with "EISDIR: illegal operation on a directory" when set to a directory path, and emptying compile_commands.json when set to the source file itself. A directory destination now receives the file copied into it, and a destination that resolves to the source file is skipped. #4062
### 🍨 docs — devcontainer.json

Updates github.vscode-pull-request-github from 0.162.0 to 0.166.0

Release notes

0.162.0

Changes

  • Confirm before discarding pull request creation with unsaved changes. This can be disabled with the "githubPullRequests.showCreatePullRequestCancelConfirmation" setting.

Thank You

Changes

  • Added a "githubIssues.issueCompletionFormatEditor" setting to control the format of issue completions in the editor, mirroring the existing "githubIssues.issueCompletionFormatScm" setting. It defaults to ${issueNumberLabel}, which inserts only the issue number (e.g. #421) so that GitHub's auto-close references keep working.

Fixes

### 🍨 embedded-cpp — devcontainer.json

Updates ms-vscode.cpptools from 1.33.8 to 1.34.4

Release notes

Updates ms-vscode.cmake-tools from 1.23.52 to 1.24.42

Release notes

Features:

  • Add support for the FASTBuild generator (CMake 4.2+). #4690
  • Add support for ${workspaceFolder}, ${workspaceFolder:name} variables and relative paths in cmake.exclude setting for multi-root workspaces. #4689
  • Add onConfigureResult event to the CMake Tools API that fires after every configure attempt (success or failure), allowing dependent extensions to detect and react to configure failures. #4021
  • Add cmake.preConfigureTask setting to execute a named VS Code task before every CMake configure. #2449 #4960 @erdemiru

Improvements:

  • Add ${testName} variable support for cmake.ctestArgs and cmake.ctestDefaultArgs, enabling per-test argument expansion (e.g., unique log file paths per test). #4416
  • Stop the CMake output channel from taking over the panel (hiding the terminal you're working in) during automatic configures (e.g. configure-on-open and automatic reconfigure) and programmatic builds or tests invoked through the CMake Tools API (e.g. by Copilot via the C/C++ DevTools companion). Failures are still always shown, explicit user-initiated builds/configures are unchanged, and cmake.revealLogOnAutomaticTrigger restores the old behavior. #4988
  • Add cmake.showTimestampsInOutput setting to display timestamps and log levels in the CMake output channel, useful for tracking build durations. #4057
  • When CMake is invoked prior to running tests, build targets required for the test rather than everything. #4515 @epistax
  • Allow building object library targets from the project outline. #4797
  • Add inline "Run" and "Debug" CodeLens buttons in source editors for tests discovered by CTest, allowing tests to be executed directly from their source locations. #4451
  • Improve responsiveness to CMake path changes made by vendor extensions during configure-on-open retry. #4908 Contributed by STMicroelectronics
  • Improve ergonomics of the test explorer UI by removing the project source directory, improving horizontal scrolling experience. #4562 @miss-programgamer
  • Pass mandatory compiler arguments from CMAKE_<LANG>_COMPILER to cpptools so it can properly determine system include paths and built-in preprocessor macro definitions. Requires CMake 4.3 or newer. #4627 @cwalther
  • Add support for a vsInstanceVersion vendor field in CMakePresets.json so Ninja configure presets can target a specific installed Visual Studio instance (by version) when bootstrapping the developer environment, instead of always using the latest. #4698
  • Use the CMake bundled with the Visual Studio instance selected by the vsInstanceVersion vendor field when resolving cmake.exe, instead of always falling back to the latest installed Visual Studio's CMake. Only applies on Windows for presets that pin an instance and when no explicit cmake.cmakePath or preset cmakeExecutable is set; otherwise CMake resolution is unchanged. #5052
  • Make the CMake Cache Editor ("Edit Cache (UI)") aware of cache variables defined by the active CMake configure preset: a new "Source" column shows where each variable comes from (project/user preset vs. the CMake cache) and whether it still matches the preset, and edits to preset-backed variables are now persisted as an override in CMakeUserPresets.json (and reconfigured with it) instead of being silently reverted by the preset on the next configure. #4884 @BilboBeutlin89
  • Load the bundled language-service data (command, variable, module, and policy descriptions) on first hover/completion instead of during activation, so activation no longer blocks on reading those assets. #5035
  • Replace the datalist/input control with a select control for enum-valued cache entries in the CMake Cache Editor, so allowed values are chosen from a proper dropdown instead of a free-text field. #4973

Bug Fixes:

  • Fix "Scan recursively for kits in specific directories" aborting with an unhandled EACCES/EPERM error (and adding no kits) when the chosen folder contains a subdirectory the current user cannot read (for example a root-only /opt/rh/.../root/root on a WSL/Linux host). Unreadable directories and un-stat-able entries are now skipped so the rest of the scan still completes. #5020
  • Fix the last compiler diagnostic of an IAR build being dropped from the Problems panel. The IAR output parser only emitted a diagnostic once a following line arrived, so the final one of each build (with no trailing line) was never flushed; parsers are now flushed when the build output ends. #5030
  • Fix a cmake build/configure task (a tasks.json entry with "type": "cmake") always operating on the first CMake project in a workspace folder that hosts several projects (for example multiple cmake.sourceDirectory entries) instead of the selected active folder. Such a task now honors the active project when it belongs to the task's workspace folder, and only falls back to the folder's project otherwise. #4512
  • Fix launch configurations that use ${cmake.testProgram} (and the related ${cmake.testArgs}, ${cmake.testWorkingDirectory} and ${cmake.testEnvironment} placeholders) failing with program '${cmake.testProgram}' does not exist when started from the Run and Debug view (F5) instead of the Test Explorer. Such a launch now prompts you to pick one of the discovered CTest tests and resolves the placeholders for it, so the same configuration works from both entry points. #4574
  • Fix disabled tests (for example GoogleTest DISABLED_ tests, which CTest reports as "Not Run (Disabled)") being shown in the Test Explorer as failed ("failed with completion status 'Disabled'") and dragging their group's status down. Such tests are intentionally not executed, so they are now reported as skipped and no longer taint the run result. #4267
  • Fix CMake syntax highlighting treating escaped $< sequences in quoted regex strings as generator expressions. #5028
  • Fix the Test Explorer reporting a test that crashed or timed out (for example one killed by a segmentation fault) as "failed with exit code 0". CTest records the cause in its Exit Code measurement (such as SEGFAULT or Timeout) while Exit Value stays 0, so the failure message now names that status instead of the misleading exit value. #5043
  • Fix the cmake version/capabilities probe, configure, build, and CMake script debugger intermittently failing (for example No version is set for shim: cmake) for users whose cmake comes from a directory-based version manager (mise, asdf, vfox, …). These CMake subprocesses now run in the project directory instead of inheriting the extension host's working directory, so the version-manager shim on PATH resolves the correct cmake for the project regardless of how the editor was launched. #5005 @danieleformichelli
  • Fix the auto-detected source directory notification showing a literal Change\u2026 on its button instead of Change... in packaged (Marketplace) builds. The label used a \u2026 JavaScript unicode escape, which vscode-nls-dev extracted verbatim into the localization bundle; it now uses plain .... #5003
  • Fix a test run that matched no tests being reported as success. When specific tests are requested (e.g. programmatically via the API/Copilot) but none match a discovered test — for example an agent passing a partial or non-existent test name — CTest exits 0 ("No tests were found!!!"), which callers could misread as "all tests passed". Such runs now return a failure with a clear message when tests exist but the requested ones weren't found. #4915
  • Stop showing "Adding a file without a valid code model" / "Deleting a file without a valid code model" warning notifications when a source file is automatically added or deleted and there is no valid CMake code model (for example when using clangd with the C/C++ IntelliSense engine disabled, or before the project has been configured). The automatic list-file update now stays silent in this case; the warning is only shown when the update is explicitly invoked via the "CMake: Add new source file" / "CMake: Remove deleted source file" commands. #5009
  • Fix running a single test from the inline Test CodeLens or the project outline building the default (or all) target instead of the test's own executable; single-test runs now build only that test's target.
  • Fix a single test's "Run" action in a multi-project workspace running all tests for that project instead of just the selected test, caused by test information from the most recently refreshed project overwriting the shared state used to compute the test filter. #4911
  • Fix test results showing a bare "The test case did not report any output." when a test did not actually run (for example when its executable was not built, so CTest reported it as "Not Run" or matched nothing). The test is now marked with an actionable message explaining that the executable may not have been built. CTest result parsing was also hardened so that compressed test output is decoded and a single test with missing or empty measurements no longer discards the results of the whole run. #4451
  • Fix test runs launched from the Test Explorer or the inline Test CodeLens appearing to run forever (the progress spinner never cleared) when a step in the run failed. The test run is now always finalized, even when building or running the tests throws, so the spinner stops and the failure is reported. Also, a single-test run no longer accidentally executes the entire suite when the full list of tests is not yet known. #4451
  • Fix a regression (since 1.23) where configure could appear to never finish — the progress indicator kept spinning and a second configure was rejected with "Configuration is already in progress" — after CMake had actually completed. Configure-time compiler version telemetry now reads the compiler id/version from the CMake File-API toolchains data instead of launching the compiler, so configure no longer depends on an extra compiler subprocess that could leave a descendant (e.g. mspdbsrv.exe/VCTIP.exe on Windows) holding its output pipes open. #4647
  • Fix CMake Tools not activating for projects whose CMakeLists.txt lives in a subdirectory (e.g. source/CMakeLists.txt) rather than the workspace root. Such projects now activate on open: a single nested CMakeLists.txt is detected and adopted automatically (with a notification to change the choice or opt out), and a picker is offered when there are multiple candidates. The new cmake.autoDetectSourceDirectory setting (default true) controls this behavior.
  • Fix switching the active editor to a file in a different root in a multi-root workspace clearing all C/C++ IntelliSense translation units (including for files still open in other panes). Changing the active project no longer tells cpptools that every file's configuration changed, so it no longer discards and rebuilds translation units for unrelated files. #4964
  • Fix the automatic "Select a Kit" prompt in a multi-root workspace being titled for, and applied to, the folder of the active editor instead of the folder whose configure-on-open actually triggered it. The kit is now selected for the correct project, so the intended folder gets configured and the prompt stops re-appearing on every window reload. #5011
  • Fix cmake.configureOnOpen performing a clean reconfigure (deleting CMakeCache.txt) instead of an incremental configure when using __unspec__ kit with CMake >= 3.15 and no explicit generator setting. #4956
  • Fix ${command:cmake.launchTargetPath} and related substitution commands (cmake.launchTargetDirectory, cmake.launchTargetFilename, cmake.launchTargetName, cmake.getLaunchTargetPath, etc.) showing an error instead of prompting kit or preset selection when none is active. These commands now behave consistently with the build/configure commands by displaying the quick pick dialog.
  • Fix intermittent Failed to parse cmake-tools-kits.json error caused by reading the kits file during a non-atomic write. readKitsFile now returns undefined when the file is empty or unparseable, and callers retain the previous kits in memory instead of clearing them. The file watcher will re-read once the write completes. [#4833](https://www.github.com/microsoft/vsc

@philips-software-forest-releaser
philips-software-forest-releaser Bot requested a review from a team as a code owner September 13, 2026 02:43
@philips-software-forest-releaser philips-software-forest-releaser Bot added dependencies Pull requests that update a dependency file vscode-extensions labels Sep 13, 2026
@github-actions

github-actions Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

📦 Container Size Analysis

Note

Comparing ghcr.io/philips-software/amp-devcontainer-base:edgeghcr.io/philips-software/amp-devcontainer-base:pr-1464

📈 Size Comparison Table

OS/Platform Previous Current Change Trend
linux/amd64 80.88 MB 80.88 MB 58 B (0%) 🔽
linux/arm64 79.18 MB 79.18 MB +165 B (+0%) 🔼

@github-actions

github-actions Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

⚠️MegaLinter analysis: Success with warnings

Descriptor Linter Files Fixed Errors Max errors Warnings Elapsed time
✅ ACTION actionlint 23 0 0 0.22s
✅ DOCKERFILE hadolint 4 0 0 0.3s
✅ JSON npm-package-json-lint yes no no 0.52s
✅ JSON prettier 46 8 0 0 0.67s
✅ JSON v8r 46 0 0 15.77s
✅ MARKDOWN markdownlint 13 0 0 0 0.99s
✅ MARKDOWN markdown-table-formatter 13 0 0 0 0.24s
✅ REPOSITORY betterleaks yes no no 1.18s
✅ REPOSITORY checkov yes no no 27.48s
✅ REPOSITORY git_diff yes no no 0.01s
✅ REPOSITORY grype yes no no 75.77s
⚠️ REPOSITORY osv-scanner yes 1 4 2.16s
✅ REPOSITORY secretlint yes no no 1.14s
✅ REPOSITORY syft yes no no 3.49s
✅ REPOSITORY trivy yes no no 15.22s
✅ REPOSITORY trivy-sbom yes no no 0.33s
✅ REPOSITORY trufflehog yes no no 4.22s
⚠️ SPELL lychee 119 1 0 11.16s
✅ YAML prettier 36 0 0 0 1.14s
✅ YAML v8r 36 0 0 12.69s
✅ YAML yamllint 36 0 0 0.99s

Detailed Issues

⚠️ SPELL / lychee - 1 error
📝 Summary
---------------------
🔍 Total..........154
🔗 Unique.........126
✅ Successful.....148
⏳ Timeouts.........0
🔀 Redirected......19
👻 Excluded.........0
❓ Unknown..........0
🚫 Errors...........1
⛔ Unsupported......1

Errors in .github/TOOL_VERSION_ISSUE_TEMPLATE.md
[403] https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads (at 38:7) | Rejected status code: 403 Forbidden

Hint: Followed 19 redirects. You might want to consider replacing redirecting URLs with the resolved URLs. Use verbose mode (`-v`/`-vv`) to see redirection details.
Hint: You can configure accepted/rejected response codes with `-a` or `--accept`
⚠️ REPOSITORY / osv-scanner - 1 error
warning: Package 'brace-expansion@5.0.7' is vulnerable to 'CVE-2026-14257' (also known as 'GHSA-mh99-v99m-4gvg').
 = CVE-2026-14257: brace-expansion: DoS via unbounded expansion length causing an out-of-memory process crash
 = ### Summary
   
   `expand()` bounds the *number* of results it produces (the `max` option,
   `100_000` by default) but not their *length*. By chaining many brace groups,
   an attacker keeps the result count under `max` while making every result grow
   with the number of groups. Building `max` long results — plus the intermediate
   arrays combined at each brace group — exhausts memory and crashes the Node
   process with an **uncatchable** out-of-memory error. `try/catch` around
   `expand()` does not help: the fatal error terminates the process.
   
   A ~7.5 KB input (`'{a,b}'.repeat(1500)`) is enough to crash a default Node
   process.
   
   ### Details
   
   For `N` chained brace groups such as `'{a,b}'.repeat(N)`:
   
   - the result count is `2^N`, immediately capped at `max` (`100_000`), so the
     `max` protection appears to hold, but
   - each result is `N` characters long, so the total output size is
     `max × N` characters, which grows without bound in `N`.
   
   `expand_` combines each brace set with the fully-expanded tail:
   
   ```js
   const post = m.post.length ? expand_(m.post, max, false) : ['']
   ...
   for (let j = 0; j < N.length; j++) {
     for (let k = 0; k < post.length && expansions.length < max; k++) {
       const expansion = pre + N[j] + post[k]   // grows one group longer per level
       ...
       expansions.push(expansion)
     }
   }

The loop guard expansions.length < max limits how many strings are built, but
nothing limits how long they get. Each recursion level materializes another
array of up to max strings, one character longer than the level below, and —
because V8 represents pre + N[j] + post[k] as a cons-string (rope) that
references post[k] — those intermediate strings stay reachable through the
whole chain. Memory therefore scales with max × N.

Measured on 5.0.7 ('{a,b}'.repeat(N), default max):

groups (N) input bytes result count peak RSS
20 100 100,000 ~80 MB
50 250 100,000 ~214 MB
100 500 100,000 ~409 MB
300 1,500 100,000 ~1,148 MB
1500 7,500 OOM crash

Proof of concept

const { expand } = require('brace-expansion')

// ~7.5 KB input — crashes the process with a fatal, uncatchable OOM:
//   FATAL ERROR: ... JavaScript heap out of memory
try {
  expand('{a,b}'.repeat(1500))
} catch (e) {
  // never reached — the process is already dead
}

Impact

Any application that passes attacker-influenced strings to
brace-expansion.expand() — directly, or transitively via minimatch / glob
brace patterns — can be crashed by a small request. Because the failure is a
fatal V8 out-of-memory error rather than a thrown exception, it cannot be caught
and it takes down the whole worker/process, denying service.

Remediation

Upgrade to a patched release. The fix bounds the total number of characters a
single expand() call may accumulate (EXPANSION_MAX_LENGTH, default
4_000_000, configurable via a new maxLength option), applied inside the
output-building loops so intermediate arrays are bounded too. Once the limit is
reached, output is truncated — consistent with how max already truncates —
instead of growing without bound. The limit sits well above any realistic
expansion (100,000 results hitting max measure ~1M characters), so legitimate
input is unaffected.

After the fix, '{a,b}'.repeat(1500) returns a bounded, truncated result in
~0.7 s using ~340 MB and never crashes, including under a constrained 512 MB
heap.

The fix bounds memory but the algorithm still rebuilds intermediate arrays at
each level (roughly O(N × maxLength) work on this input class). A streaming
rewrite that produces output in O(total output size) can be a non-urgent
follow-up.

If immediate upgrade isn't possible, avoid passing untrusted input to
expand() / glob brace patterns, or pass a small explicit max and
maxLength.

warning: Package 'brace-expansion@5.0.7' is vulnerable to 'CVE-2026-69152' (also known as 'GHSA-rgw5-rvv9-x895').
= CVE-2026-69152: brace-expansion: DoS via unbounded intermediate arrays, bypassing the CVE-2026-14257 mitigation
= ### Summary

The maxLength mitigation added in 5.0.8 for GHSA-mh99-v99m-4gvg / CVE-2026-14257 is incomplete. It bounds the accumulator where results are combined, but not the intermediate arrays that feed it. A ~25 KB input still crashes the Node process with an uncatchable out-of-memory error, so try/catch around expand() does not help.

A second, related path in the same function lets a ~400 KB input block the event loop for over two minutes without ever exceeding the memory bound.

Details

maxLength was enforced in combine(), the single place output grows. Two arrays are built before combine() runs, and neither was bounded.

1. Comma alternatives accumulate without a running total (memory exhaustion)

Each alternative in {a,b,c,...} is expanded by its own recursive expand_() call, so each receives a full, independent maxLength allowance. The results were then concatenated into a single values array with no cumulative limit:

values = []
for (let j = 0; j < n.length; j++) {
  values.push.apply(values, expand_(n[j], max, maxLength, false))
}

acc = combine(acc, pre, values, max, maxLength, ...)

With A alternatives, values can reach A * maxLength characters before combine() gets a chance to truncate it. At the default maxLength of 4,000,000 and 400 alternatives, that is well past any default heap.

2. Padded sequences ignore maxLength while generating (CPU exhaustion)

expandSequence() was bounded by max (the result count) but never consulted maxLength. A padded sequence's element width follows the input, so {0...01..100000} with a wide pad generates max elements, each as wide as the input, only for combine() to discard all but a handful.

Memory stays flat here, because V8 represents the padded strings as cons-strings, which is likely why this path was not caught alongside the original issue. The cost is time: work proportional to max * width.

pad width input bytes results kept time (5.0.8) time (patched)
20,000 20 KB 199 ~7.3 s ~20 ms
100,000 100 KB 39 ~32 s ~20 ms
400,000 400 KB 9 ~124 s ~18 ms

Output is byte-identical before and after the fix; only the wasted work is removed.

Proof of concept

Memory exhaustion, against 5.0.8:

import { expand } from 'brace-expansion'

const part = '{' + '0'.repeat(50) + '1..100000}'
const input = '{' + Array(400).fill(part).join(',') + '}'  // ~25 KB

try {
  expand(input)
} catch (e) {
  // never reached - the process is already dead
}
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Aborted

Event-loop stall, against 5.0.8:

import { expand } from 'brace-expansion'

// ~400 KB input, returns 9 results after roughly two minutes of blocking CPU
expand('{' + '0'.repeat(400_000) + '1..100000}')

Impact

Denial of service. Any application that passes attacker-controlled input to expand(), directly or transitively through a glob or pattern-matching library, can be remotely crashed or stalled. The out-of-memory variant terminates the process and cannot be handled with try/catch.

Applications already on 5.0.8 are affected: the 5.0.8 mitigation does not cover these paths.

Patches

Both intermediate arrays are now bounded as they are built, using the same max and maxLength limits already applied in combine():

  • values tracks a running result count and character length while alternatives are appended, and stops once either bound is reached.
  • expandSequence() accepts maxLength and stops generating once the sequence's own characters reach it.

As with the existing limits, output is truncated rather than allowed to grow without bound, which matches how max already behaves. The defaults sit well above any realistic expansion, so legitimate input is unaffected.

Workarounds

If upgrading is not immediately possible, avoid passing untrusted input to expand() or to glob brace patterns, or pass an explicitly small max and maxLength.

Note that a small maxLength alone was not sufficient on affected versions: it was applied per alternative rather than cumulatively, which is the root of the first issue above.

Credits

The memory-exhaustion bypass was reported by Alessio Della Libera, CEO & Co-founder at Numyra.

The sequence-generation issue was found while verifying that report.

warning: Package 'bare-metal@0.2.5' is vulnerable to 'RUSTSEC-2026-0110'.
= RUSTSEC-2026-0110: bare-metal is deprecated
= The bare-metal crate has been deprecated and archived.

For Mutex and CriticalSection, see the critical-section crate instead.

warning: Package 'bare-metal@0.2.5' is vulnerable to 'RUSTSEC-2026-0110'.
= RUSTSEC-2026-0110: bare-metal is deprecated
= The bare-metal crate has been deprecated and archived.

For Mutex and CriticalSection, see the critical-section crate instead.

warning: 4 warnings emitted


</details>

See detailed reports in [MegaLinter artifacts](https://github.com/philips-software/amp-devcontainer/actions/runs/35594213533)

You could have the same capabilities but better runtime performances if you use a MegaLinter flavor:
- [oxsecurity/megalinter/flavors/salesforce@v10.1.0](https://megalinter.io/10.1.0/flavors/salesforce/) (58 linters)


Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining `FLAVOR_SUGGESTIONS: false`)

  - Documentation: [Custom Flavors](https://megalinter.io/10.1.0/custom-flavors/)
  - Command: `npx mega-linter-runner@10.1.0 --custom-flavor-setup --custom-flavor-linters ACTION_ACTIONLINT,DOCKERFILE_HADOLINT,JSON_V8R,JSON_PRETTIER,JSON_NPM_PACKAGE_JSON_LINT,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,REPOSITORY_CHECKOV,REPOSITORY_GIT_DIFF,REPOSITORY_BETTERLEAKS,REPOSITORY_GRYPE,REPOSITORY_OSV_SCANNER,REPOSITORY_SECRETLINT,REPOSITORY_SYFT,REPOSITORY_TRIVY,REPOSITORY_TRIVY_SBOM,REPOSITORY_TRUFFLEHOG,SPELL_LYCHEE,YAML_PRETTIER,YAML_YAMLLINT,YAML_V8R`

[![MegaLinter is provided by OX Security](https://raw.githubusercontent.com/oxsecurity/megalinter/main/docs/assets/images/ox-banner.png)](https://www.ox.security/?ref=megalinter)
Show us your support by [**starring ⭐ the repository**](https://github.com/oxsecurity/megalinter)

<!-- megalinter: github-comment-reporter workflow='Linting & Formatting' jobid='linter' -->

@github-actions

github-actions Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

📦 Container Size Analysis

Note

Comparing ghcr.io/philips-software/amp-devcontainer-docs:edgeghcr.io/philips-software/amp-devcontainer-docs:pr-1464

📈 Size Comparison Table

OS/Platform Previous Current Change Trend
linux/amd64 212.34 MB 212.34 MB 795 B (0%) 🔽
linux/arm64 208.87 MB 208.87 MB +414 B (+0%) 🔼

@github-actions

github-actions Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

📦 Container Size Analysis

Note

Comparing ghcr.io/philips-software/amp-devcontainer-rust:edgeghcr.io/philips-software/amp-devcontainer-rust:pr-1464

📈 Size Comparison Table

OS/Platform Previous Current Change Trend
linux/amd64 436.79 MB 436.79 MB +5 B (+0%) 🔼
linux/arm64 387.07 MB 387.07 MB +1.03 kB (+0%) 🔼

@github-actions

github-actions Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

📦 Container Size Analysis

Note

Comparing ghcr.io/philips-software/amp-devcontainer-embedded-rust:edgeghcr.io/philips-software/amp-devcontainer-embedded-rust:pr-1464

📈 Size Comparison Table

OS/Platform Previous Current Change Trend
linux/amd64 503.54 MB 503.54 MB 200 B (0%) 🔽
linux/arm64 453.48 MB 453.48 MB +296 B (+0%) 🔼

@github-actions

github-actions Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

📦 Container Size Analysis

Note

Comparing ghcr.io/philips-software/amp-devcontainer-cpp:edgeghcr.io/philips-software/amp-devcontainer-cpp:pr-1464

📈 Size Comparison Table

OS/Platform Previous Current Change Trend
linux/amd64 404.95 MB 404.95 MB 2.2 kB (0%) 🔽
linux/arm64 385.72 MB 385.72 MB 724 B (0%) 🔽

@github-actions

github-actions Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

📦 Container Size Analysis

Note

Comparing ghcr.io/philips-software/amp-devcontainer-embedded-cpp:edgeghcr.io/philips-software/amp-devcontainer-embedded-cpp:pr-1464

📈 Size Comparison Table

OS/Platform Previous Current Change Trend
linux/amd64 607.11 MB 607.1 MB 1.27 kB (0%) 🔽
linux/arm64 587.16 MB 587.16 MB +483 B (+0%) 🔼

@github-actions

github-actions Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Test Results

 25 files  ±0   25 suites  ±0   14m 39s ⏱️ + 5m 20s
 53 tests ±0   52 ✅  - 1  0 💤 ±0  0 ❌ ±0  1 🔥 +1 
229 runs  ±0  228 ✅  - 1  0 💤 ±0  0 ❌ ±0  1 🔥 +1 

For more details on these errors, see this check.

Results for commit 25cf285. ± Comparison against base commit 5dc99d6.

♻️ This comment has been updated with latest results.

@philips-software-forest-releaser
philips-software-forest-releaser Bot force-pushed the feature/amp-devcontainer/update-vscode-extensions branch from 9fb21af to e5c650f Compare September 20, 2026 02:44
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file vscode-extensions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant