[PR #378] Don't report scheme parse errors by default #24115

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

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

State: closed
Merged: Yes


ColorTool now has three different color scheme parsers (.ini files, concfg JSON files and itermcolors XML files). Because each scheme parser is tried in turn until one succeeds, any scheme parser that fails dumps useless error information to the console.

This change flips the reportErrors parameter of ISchemeParser.ParseScheme from true to false so these failed parse error messages are not printed by default. This PR also adds a new --errors or -e command line argument to enable error reporting for usage scenarios that need it.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/378 **State:** closed **Merged:** Yes --- ColorTool now has three different color scheme parsers (.ini files, [concfg](https://github.com/lukesampson/concfg/tree/master/presets) JSON files and [itermcolors](https://iterm2colorschemes.com/) XML files). Because each scheme parser is tried in turn until one succeeds, any scheme parser that fails dumps useless error information to the console. This change flips the `reportErrors` parameter of `ISchemeParser.ParseScheme` from true to false so these failed parse error messages are not printed by default. This PR also adds a new `--errors` or `-e` command line argument to enable error reporting for usage scenarios that need it.
claunia added the pull-request label 2026-01-31 09:01:28 +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#24115