[PR #8147] Raise warning on invalid color scheme in commands #27115

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

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

State: closed
Merged: Yes


Show a validation warning when someone sets a setColorScheme action
with an invalid scheme

In the setting validation phase, scan all commands for all the "set
color scheme" actions, and check each of them has a valid scheme. If any
of them has an invalid scheme name, raise a warning. Do not check
iterable commands that will be expanded to valid color schemes.

Validation Steps Performed

  • Added tests to LocalTests_SettingsModel
  • Manual tests, add commands to settings.json with invalid color scheme
    and check the warning pops up. Try simple and nested commands.

Closes #7221

**Original Pull Request:** https://github.com/microsoft/terminal/pull/8147 **State:** closed **Merged:** Yes --- Show a validation warning when someone sets a `setColorScheme` action with an invalid scheme In the setting validation phase, scan all commands for all the "set color scheme" actions, and check each of them has a valid scheme. If any of them has an invalid scheme name, raise a warning. Do not check iterable commands that will be expanded to valid color schemes. ## Validation Steps Performed - Added tests to LocalTests_SettingsModel - Manual tests, add commands to settings.json with invalid color scheme and check the warning pops up. Try simple and nested commands. Closes #7221
claunia added the pull-request label 2026-01-31 09:20:06 +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#27115