-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove trailing commas that break the json schema #12644
Conversation
…Ran the file through a linter to check validity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this!
It looks like this change reformats the entire file, which makes it rather difficult to review and breaks the JSON style we've been using across the repository. Would you mind scoping this change down to only the appropriate lines?
There's also a new file added to the root of the repo that we haven't figured out the purpose of.
Thank you for pointing it out, I wasn't aware! I'll go over the file and try to match the style according to styling used in the repository, then. Yes, I'll try to narrow the change down to those lines. I'm also not sure where the new file came from, I'll do some more research on that and get back to you. |
@sowmya-hub FYI: I believe most maintainers of this project use Visual Studio Code's built-in formatter to format non-C++ files. |
@lhecker thanks so much for the heads-up! 🙌 It's helpful to know the built-in formatted is to be used! I realise that the styling change came from the third-party linter I used. Since I copied the contents into the file, it got changed. I've changed it and committed to my branch. Hopefully, it works now! |
@sowmya-hub If you check the top line of this PR, you'll see it still says git restore -s origin/main doc/cascadia/profiles.schema.json You'll also have to remove the extra file you added: git rm rectify-trailing-commas If you're using Visual Studio Code as well, I can only suggest to open the command palette with Ctrl+Shift+P and search for an entry called "File: Save without Formatting", which will save the file without running your linters. If you use a different editor it will probably have a similar option somewhere. |
Oh, just saw. There was an extra line at the bottom that had surfaced thanks to the lint checks, must've been the cause. I've run this command, neat since I didn't have to copy-paste from the original json file again! Oh no, hadn't realised that it had shown up there(my bad, DHowett did mention it was the root of repo.) as I was searching folder-wise. Yes, I've saved the file without formatting this time. I'm using Visual Studio Code, via Gitpod. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for fixing this! I appreciate you responding to our review feedback as well 😄
Thank you both so much for reviewing the changes and giving me pointers as well! 😊 |
Hello @DHowett I am using Windows Terminal Version: 1.12.10393.0 and I still have the problem (Trailing commas in profiles schema - Issue #12639 - microsoft/terminal - https://github.com/microsoft/terminal/issues/12639) that originated this fix. Can you please let me know if the new schema is supposed to be deployed already or how I have to do to avoid the mentioned problem? Best regards, |
My bad! I didn't mark this for servicing into the current active branch for the schema. That is now done. If you can get VSCode to refresh the schema, the copy linked from |
Thanks for taking care of it. The previous error message disappeared. For editing I am using VSCode Version: 1.63.2 Greetings, |
🎉 Handy links: |
Summary of the Pull Request
Fixed #12639
PR Checklist
Validation Steps Performed
Ran the file through a linter to check validity.