Skip to content

Conversation

Fanominals
Copy link
Contributor

fixed bug: #39500

Screenshot 2025-07-14 155112

@Fanominals Fanominals requested a review from a team as a code owner July 14, 2025 22:51
@@ -208,6 +211,7 @@ public void MarkLineBreak()
else
{
_pendingLineBreak = true;

Copy link
Member

Choose a reason for hiding this comment

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

Remove unnecessary white space

@jaredpar
Copy link
Member

@JoeRobich, @akhera99 PTAL

New ClassifiedTextRun(ClassificationTypeNames.Text, "–"),
New ClassifiedTextRun(ClassificationTypeNames.Text, "Item 2")))))

ToolTipAssert.EqualContent(expected, intellisenseQuickInfo.Item)
Copy link
Member

Choose a reason for hiding this comment

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

why was this assert removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Was not intended, just fixed this in the new commit

@Fanominals Fanominals marked this pull request as draft July 16, 2025 17:47
@@ -333,8 +332,7 @@ strong text
italic text
underline text

• Item 1.
• Item 2.
• Item 1. • Item 2.
Copy link
Member

Choose a reason for hiding this comment

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

These test validate the comment markup generated for LSP requests. It looks like we need to update ProtocolConversions.GetDocumentationMarkupContent now that we are not always appending a NewLine.

Copy link
Member

Choose a reason for hiding this comment

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

Meaning there should be no change to this test if we are preserving the behavior in VS Code and other LSP editors.

Copy link
Member

Choose a reason for hiding this comment

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

@Fanominals how is this going? You figuring out how to update that doc to get these tests clean?

@Fanominals
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@Fanominals
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@Fanominals Fanominals changed the title WIP fixed irregular spacing between list items Fixed irregular spacing between list items Jul 30, 2025
@Fanominals Fanominals marked this pull request as ready for review July 30, 2025 17:44
// Documentation formatting may add an extra LineBreak after ContainerEnd to separate
// elements in LSP scenarios. During rendering, we consume this extra LineBreak to
// prevent double spacing, since each line is already rendered on its own line.
if (taggedTexts is [var head, .. var tail] && head.Tag == TextTags.LineBreak)
Copy link
Member

Choose a reason for hiding this comment

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

This will always allocate the tail collection, even if the head doesn't match the check. Please defer slicing the tail until inside the if.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, just fixed!

@Fanominals
Copy link
Contributor Author

@dotnet-policy-service agree

@Fanominals Fanominals merged commit f4c1858 into main Aug 4, 2025
25 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Aug 4, 2025
@RikkiGibson RikkiGibson modified the milestones: Next, 18.0 P1 Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants