-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Enable nullability in ToolboxItemSnapLineBehavior #13058
Enable nullability in ToolboxItemSnapLineBehavior #13058
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13058 +/- ##
===================================================
- Coverage 61.78295% 61.77720% -0.00575%
===================================================
Files 1552 1552
Lines 158950 158947 -3
Branches 14803 14802 -1
===================================================
- Hits 98204 98193 -11
- Misses 60030 60038 +8
Partials 716 716
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
SelectionManager selMgr = (SelectionManager)_serviceProvider.GetService(typeof(SelectionManager)); | ||
if (selMgr is not null) | ||
Adorner? bodyAdorner = null; | ||
if (_serviceProvider.TryGetService(out SelectionManager? selMgr)) |
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.
Could you please use GetRequiredService
here? Previously we were throwing a null reference exception when the selection manager was not available.
@gpetrou - this PR is almost ready, is it OK with you if we take it over and finish up? |
9c9466c
to
3ec1dc8
Compare
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.
Thank you!
Proposed changes
Microsoft Reviewers: Open in CodeFlow