terminal/src/tools/ColorTool/ColorTool
John Azariah 436fac6afa
fix scheme name resolution, and schema load on WSL (#5327)
This PR fixes the scheme resolution bug outlined in #5326

The approach is as follows:

* In [SchemeManager.cs], find the first scheme parser that actually
  successfully parses the scheme, as opposed to the existing code, which
  finds the first scheme parser which _says it can parse the scheme_, as
  that logic spuriously returns `true` currently. 
* In [XmlSchemeParser.cs] and [JsonParser.cs], ensure that the contents
  of the file are read and the contents passed to XmlDocument.LoadXXX,
  as this fails with an UriException on WSL otherwise.
* Remove `CanParse` as it is superfluous. The check for a valid scheme
  parser should not just check an extension but also if the file exists
  - this is best done by the `ParseScheme` function as it already
  returns null on failure.
* Add `FileExtension` to the interface because we need it lifted now.

Closes #5326
2020-07-01 20:15:09 +00:00
..
ConsoleTargets Remove last lingering references to profiles.json (#5534) 2020-04-24 21:29:33 +00:00
Properties Move ColorTool to src/ (#422) 2019-04-30 12:27:06 -07:00
SchemeParsers fix scheme name resolution, and schema load on WSL (#5327) 2020-07-01 20:15:09 +00:00
SchemeWriters Fix a bunch of spelling errors across the project (#4295) 2020-02-10 20:40:01 +00:00
App.config Move ColorTool to src/ (#422) 2019-04-30 12:27:06 -07:00
ColorScheme.cs Add feature to ColorTool to write color scheme as JSON for Windows Terminal (issue #986) (#1052) 2019-06-25 13:36:00 -07:00
ColorTable.cs "Color scheme" is two words (#1054) 2019-05-30 13:32:05 -05:00
ColorTool.csproj Move ColorTool to src/ (#422) 2019-04-30 12:27:06 -07:00
ConsoleAPI.cs Move ColorTool to src/ (#422) 2019-04-30 12:27:06 -07:00
ConsoleAttributes.cs "Color scheme" is two words (#1054) 2019-05-30 13:32:05 -05:00
Program.cs ColorTool: Proofread the helper text, update Build.bat (#2644) 2019-12-03 12:44:23 -08:00
Resources.Designer.cs Move ColorTool to src/ (#422) 2019-04-30 12:27:06 -07:00
Resources.resx ColorTool: Proofread the helper text, update Build.bat (#2644) 2019-12-03 12:44:23 -08:00
SchemeManager.cs fix scheme name resolution, and schema load on WSL (#5327) 2020-07-01 20:15:09 +00:00