-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
[folding] custom folding text for folded ranges #70794
Comments
(Experimental duplicate detection)
|
Is there any scope for community contributions to this feature request? |
PRs are always welcome, but I think this is not an easy fix. |
Being able to remove the fold indicator would also be really nice. Emacs org mode does this for links and it is pretty slick. |
Hey, wanted to take a stab at this issue since it would be really helpful for the extension we are working on, but I don't see a |
@mtbaqer Yes, PR's are welcome |
Great. Thanks for the clarification. One more question, I assume |
VS Code only supports full lines to be folded. So startCharacter is ignored. |
It should always show the first line. I'm folding tests and this:
Folds to this:
which isn't very useful. |
@phazei looks like you have issue with some extension and should report it in extension's repo, because that not how VS Code folding works. VS Code folds test function (not call of |
@IllusionMH ah, yeah, my bad, that does work proper without the extensions. I had an extension that would provide more context but apparently doesn't in some cases. |
Currently when you create custom folds using a FoldingRangeProvider, there is no option to edit the text that is displayed when the text is folded. The editor just displays the first line of the fold with a three dots symbol after it.
#region Some region description...
It would be helpful if it was possible for
FoldingRangeProvider
instances to return ranges with a RangeDisplayName property that would be displayed when the folding range wass collapsed. I'd suggest that the display text would replace the ... symbol and the first line would no longer be displayed as per the behaviour in Visual Studio.The text was updated successfully, but these errors were encountered: