Skip to content
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

Replace result codes with exceptions in JumpList #13688

Merged
1 commit merged into from
Aug 8, 2022
Merged

Conversation

lhecker
Copy link
Member

@lhecker lhecker commented Aug 5, 2022

This commit simplifies Jumplist::UpdateJumplist by using exceptions
instead of returning error codes. Otherwise the code is identical to before.

@lhecker lhecker added the Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc. label Aug 5, 2022
@lhecker lhecker force-pushed the dev/lhecker/5907-jumplist branch from 7b46c7b to f9dd951 Compare August 5, 2022 16:52
Comment on lines +117 to +119
// It's easier to clear the list and re-add everything. The settings aren't
// updated often, and there likely isn't a huge amount of items to add.
THROW_IF_FAILED(jumplistItems->Clear());
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is much easier to review by suppressing whitespace changes. 🙂

@DHowett
Copy link
Member

DHowett commented Aug 5, 2022

nit: reword PR name/commit to be in imperative style. Imagine that it'll complete the sentence, "This commit will..." :)

@lhecker lhecker changed the title JumpList code cleanup Replace result codes with exceptions in JumpList Aug 5, 2022
@lhecker lhecker added the AutoMerge Marked for automatic merge by the bot when requirements are met label Aug 8, 2022
@ghost
Copy link

ghost commented Aug 8, 2022

Hello @lhecker!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 768d4b5 into main Aug 8, 2022
@ghost ghost deleted the dev/lhecker/5907-jumplist branch August 8, 2022 13:11
DHowett pushed a commit that referenced this pull request Aug 8, 2022
This commit simplifies `Jumplist::UpdateJumplist` by using exceptions
instead of returning error codes. Otherwise the code is identical to before.

(cherry picked from commit 768d4b5)
Service-Card-Id: 84836267
Service-Version: 1.15
@ghost
Copy link

ghost commented Aug 17, 2022

🎉Windows Terminal Preview v1.15.228 has been released which incorporates this pull request.:tada:

Handy links:

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc. AutoMerge Marked for automatic merge by the bot when requirements are met
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants