[PR #11343] Fix fragments that update other profiles #28509

Open
opened 2026-01-31 09:28:59 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/11343

State: closed
Merged: Yes


SettingsLoader::_parse used to skip profiles which didn't have either a "guid"
or "name" field, due to #9962. This is however wrong for fragment loading, as
fragments can alternatively use an "updates" field instead of guid/name.

SettingsLoader::_parse was updated to allow profiles with this alternative
field during fragment loading.

PR Checklist

Validation Steps Performed

  • Wrote the following to
    %LOCALAPPDATA%\Microsoft\Windows Terminal\Fragments\test\test.json:
    {
      "profiles": [
        {
          "updates": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
          "background": "#FFD700"
        }
      ]
    }
    
**Original Pull Request:** https://github.com/microsoft/terminal/pull/11343 **State:** closed **Merged:** Yes --- `SettingsLoader::_parse` used to skip profiles which didn't have either a "guid" or "name" field, due to #9962. This is however wrong for fragment loading, as fragments can alternatively use an "updates" field instead of guid/name. `SettingsLoader::_parse` was updated to allow profiles with this alternative field during fragment loading. ## PR Checklist * [x] Closes #11331 * [x] I work here * [x] Tests added/passed ## Validation Steps Performed * Wrote the following to `%LOCALAPPDATA%\Microsoft\Windows Terminal\Fragments\test\test.json`: ```json { "profiles": [ { "updates": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", "background": "#FFD700" } ] } ```
claunia added the pull-request label 2026-01-31 09:28:59 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#28509