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

Preserve all new lines in MarkdownString appendText #105732

Merged
merged 2 commits into from Sep 1, 2020
Merged

Conversation

alexr00
Copy link
Member

@alexr00 alexr00 commented Aug 31, 2020

While using appendText, I noticed that only the first newline is getting preserved.

@alexr00 alexr00 requested a review from mjbvz August 31, 2020 13:24
@alexr00 alexr00 self-assigned this Aug 31, 2020
@alexr00 alexr00 added this to the August 2020 milestone Aug 31, 2020
@mjbvz mjbvz requested a review from jrieken August 31, 2020 21:45
@mjbvz
Copy link
Contributor

mjbvz commented Aug 31, 2020

Change looks good. Thanks for the making the fix!

If the fix is not urgent though, I suggest we push it to September though in case there are unforeseen consequences

@alexr00
Copy link
Member Author

alexr00 commented Sep 1, 2020

I discovered this bug when I was fixing another bug in custom tree hovers. This month, I switched all custom tree view hovers to use the new hover service which uses markdown instead of text like the old builtin tooltip does. This change is needed to not break multiline tooltips that extension authors have in their custom tree views. If we don't want to take this change, then I will need to revert the change to use the hover service or copy appendText elsewhere to use.

@jrieken
Copy link
Member

jrieken commented Sep 1, 2020

Lets take the risk

@alexr00 alexr00 merged commit 5f0a1f3 into master Sep 1, 2020
@alexr00 alexr00 deleted the alexr00/appendText branch September 1, 2020 08:53
@github-actions github-actions bot locked and limited conversation to collaborators Oct 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants