gpduck / MSTerminalSettings

MIT License
118 stars 15 forks source link

Bugfix: Strip JSON Comments for WinPS #44

Closed JustinGrote closed 4 years ago

JustinGrote commented 4 years ago

Moves the JSON parsing to a dedicated private function, and strips comments if run in Windows Powershell as it cannot handle single-line comments.

This is required because the new 0.5 default profile inserts single line "//" comments, and it causes get-msterminalprofile to error out if run on Windows Powershell 5.1

JustinGrote commented 4 years ago

@gpduck got any time to review? :)