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

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/378
Author: @devhawk
Created: 2/27/2019
Status: Merged
Merged: 2/27/2019
Merged by: @miniksa

Base: masterHead: devhawk/errorsArg


📝 Commits (3)

  • 4a30b18 change ISchemeParser ParseScheme reportErrors param default to false
  • ae5be18 add --errors cmd line arg to enable scheme parsing error reporting
  • f3e53f1 updated resources file

📊 Changes

6 files changed (+38 additions, -31 deletions)

View changed files

📝 tools/ColorTool/ColorTool/ISchemeParser.cs (+1 -1)
📝 tools/ColorTool/ColorTool/IniSchemeParser.cs (+1 -1)
📝 tools/ColorTool/ColorTool/JsonParser.cs (+1 -1)
📝 tools/ColorTool/ColorTool/Program.cs (+7 -2)
📝 tools/ColorTool/ColorTool/Resources.resx (+27 -25)
📝 tools/ColorTool/ColorTool/XmlSchemeParser.cs (+1 -1)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/378 **Author:** [@devhawk](https://github.com/devhawk) **Created:** 2/27/2019 **Status:** ✅ Merged **Merged:** 2/27/2019 **Merged by:** [@miniksa](https://github.com/miniksa) **Base:** `master` ← **Head:** `devhawk/errorsArg` --- ### 📝 Commits (3) - [`4a30b18`](https://github.com/microsoft/terminal/commit/4a30b1868b9852e07b42e0e3c6dd99df31c942a0) change ISchemeParser ParseScheme reportErrors param default to false - [`ae5be18`](https://github.com/microsoft/terminal/commit/ae5be18556c8403d2a0200d51ee2c93ae0cb74aa) add --errors cmd line arg to enable scheme parsing error reporting - [`f3e53f1`](https://github.com/microsoft/terminal/commit/f3e53f1dac511f42982c793cddea5b937144f8e6) updated resources file ### 📊 Changes **6 files changed** (+38 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `tools/ColorTool/ColorTool/ISchemeParser.cs` (+1 -1) 📝 `tools/ColorTool/ColorTool/IniSchemeParser.cs` (+1 -1) 📝 `tools/ColorTool/ColorTool/JsonParser.cs` (+1 -1) 📝 `tools/ColorTool/ColorTool/Program.cs` (+7 -2) 📝 `tools/ColorTool/ColorTool/Resources.resx` (+27 -25) 📝 `tools/ColorTool/ColorTool/XmlSchemeParser.cs` (+1 -1) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:01:27 +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#24110