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

Enable nullability in ToolboxItemSnapLineBehavior #13058

Merged
merged 1 commit into from
Apr 7, 2025

Conversation

gpetrou
Copy link
Contributor

@gpetrou gpetrou commented Mar 3, 2025

Proposed changes

  • Enable nullability in ToolboxItemSnapLineBehavior.
Microsoft Reviewers: Open in CodeFlow

Copy link

codecov bot commented Mar 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.77720%. Comparing base (bab45fd) to head (3ec1dc8).
Report is 4 commits behind head on main.

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                 
Flag Coverage Δ
Debug 61.77720% <100.00000%> (-0.00575%) ⬇️
integration 10.72343% <100.00000%> (-0.00385%) ⬇️
production 39.78881% <100.00000%> (-0.01018%) ⬇️
test 95.67018% <ø> (ø)
unit 37.23289% <0.00000%> (-0.00714%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

LeafShi1
LeafShi1 previously approved these changes Mar 3, 2025
@LeafShi1 LeafShi1 requested a review from Tanya-Solyanik March 3, 2025 09:31
SelectionManager selMgr = (SelectionManager)_serviceProvider.GetService(typeof(SelectionManager));
if (selMgr is not null)
Adorner? bodyAdorner = null;
if (_serviceProvider.TryGetService(out SelectionManager? selMgr))
Copy link
Member

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.

@Tanya-Solyanik Tanya-Solyanik added the waiting-author-feedback The team requires more information from the author label Mar 6, 2025
@Tanya-Solyanik
Copy link
Member

@gpetrou - this PR is almost ready, is it OK with you if we take it over and finish up?

Copy link
Member

@Tanya-Solyanik Tanya-Solyanik left a comment

Choose a reason for hiding this comment

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

Thank you!

@Tanya-Solyanik Tanya-Solyanik merged commit c0ab77c into dotnet:main Apr 7, 2025
8 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0 Preview4 milestone Apr 7, 2025
@gpetrou gpetrou deleted the ToolboxItemSnapLineBehavior branch April 8, 2025 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: NRT waiting-author-feedback The team requires more information from the author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants