-
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13058 +/- ##
====================================================
- Coverage 96.95044% 76.10157% -20.84888%
====================================================
Files 1225 3275 +2050
Lines 357134 643808 +286674
Branches 5537 47446 +41909
====================================================
+ Hits 346243 489948 +143705
- Misses 10049 150296 +140247
- Partials 842 3564 +2722
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.
Proposed changes
Microsoft Reviewers: Open in CodeFlow