Skip to content

Add Span overloads in TextRenderer - #3711

Merged
JeremyKuhne merged 4 commits into
dotnet:masterfrom
JeremyKuhne:spantextrenderer
Aug 11, 2020
Merged

JeremyKuhne merged 4 commits into
dotnet:masterfrom
JeremyKuhne:spantextrenderer

Conversation

@JeremyKuhne

@JeremyKuhne JeremyKuhne commented Aug 10, 2020 •

Copy link
Copy Markdown
Member

This adds the span overloads per #3651. It also obsoletes TextFormatFlags.ModifyString and fully blocks it in the span overloads. We'll add a safe API for getting output strings in a future version.

Resolves #3651

Microsoft Reviewers: Open in CodeFlow

This adds the span overloads per dotnet#3651. It also obsoletes `TextFormatFlags.ModifyString` and fully blocks it in the span overloads. We'll add a safe API for getting output strings in a future version.
@JeremyKuhne
JeremyKuhne requested a review from a team as a code owner August 10, 2020 02:37
@ghost ghost assigned JeremyKuhne Aug 10, 2020

@RussKie RussKie left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@RussKie

RussKie commented Aug 10, 2020

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@weltkante

Copy link
Copy Markdown
Contributor

I think you mixed up the issue IDs, this does not resolve #3710 since no output-overloads are provided

@JeremyKuhne

Copy link
Copy Markdown
Member Author

I think you mixed up the issue IDs, this does not resolve #3710 since no output-overloads are provided

Hmm, I don't recall adding that. Interesting.

@codecov

codecov Bot commented Aug 10, 2020

Copy link
Copy Markdown

Codecov Report

Merging #3711 into master will decrease coverage by 31.45067%.
The diff coverage is 100.00000%.

@@                 Coverage Diff                  @@
##              master       #3711          +/-   ##
====================================================
- Coverage   67.16215%   35.71148%   -31.45067%     
====================================================
  Files           1381         910         -471     
  Lines         503148      249774      -253374     
  Branches       40768       36557        -4211     
====================================================
- Hits          337925       89198      -248727     
+ Misses        159504      155576        -3928     
+ Partials        5719        5000         -719     
Flag Coverage Δ
#Debug 35.71148% <100.00000%> (-31.45067%) ⬇️
#production 35.71148% <100.00000%> (-0.02022%) ⬇️
#test ?

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

@RussKie

RussKie commented Aug 11, 2020

Copy link
Copy Markdown
Contributor

I think you mixed up the issue IDs, this does not resolve #3710 since no output-overloads are provided

Hmm, I don't recall adding that. Interesting.

Sorry, that'd be me... 🤦‍♂️ I thought it was related

@RussKie RussKie left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍
Please annotate all new public API with xml-docs.

@RussKie RussKie added the waiting-author-feedback The team requires more information from the author label Aug 11, 2020
@JeremyKuhne

Copy link
Copy Markdown
Member Author

Please annotate all new public API with xml-docs.

How precisely do you want to do that? These are identical to the existing APIs with an additional caveat that they block the setting. And do we need to block this for docs or can I follow up in a separate PR?

@ghost ghost removed the waiting-author-feedback The team requires more information from the author label Aug 11, 2020
@RussKie

RussKie commented Aug 11, 2020

Copy link
Copy Markdown
Contributor

These are identical to the existing APIs with an additional caveat that they block the setting.

We still need to add /// comments, as these get imported into the docs repo (via a complicated pipeline). AFAIK if we don't have these from the get go we'll have to add them manually to xml files over in the docs repo, which is a much-much harder job to do.
@carlossanlop is this right?

@DustinCampbell DustinCampbell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks good!

@JeremyKuhne
JeremyKuhne merged commit 77cb1d2 into dotnet:master Aug 11, 2020
@ghost ghost added this to the 5.0 RC1 milestone Aug 11, 2020
@JeremyKuhne
JeremyKuhne deleted the spantextrenderer branch August 11, 2020 22:51
@RussKie RussKie added the 📖 documentation: breaking please open a breaking change issue https://github.com/dotnet/docs/issues/new?assignees=gewarren label Sep 21, 2020
@RussKie

RussKie commented Sep 28, 2020

Copy link
Copy Markdown
Contributor

Docs: dotnet/docs#20804

@ghost ghost locked as resolved and limited conversation to collaborators Jan 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

📖 documentation: breaking please open a breaking change issue https://github.com/dotnet/docs/issues/new?assignees=gewarren

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API Proposal: Add span overloads to TextRenderer

4 participants