question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[folding] custom folding text for folded ranges

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:21
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
aeschlicommented, Nov 11, 2022

@mtbaqer Yes, PR’s are welcome

1reaction
mtbaqercommented, Nov 11, 2022

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 help wanted label. So wanted to clarify the https://github.com/microsoft/vscode/issues/70794#issuecomment-513154063 above, can we provide a community PR for this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom folding in text mode (addFold, session,unfold)
Now I'm trying to implement a feature that fold part of the log depending the section a user wants to look into. I...
Read more >
Fold code elements | JetBrains Rider Documentation
A custom folding region for a selection is created and removed by means of the Code | Folding | Fold Selection/ Remove Region...
Read more >
Folding selected text - atom editor - Stack Overflow
Finally, you can fold arbitrary sections of your code or text by making a selection and then typing Alt+Ctrl+F or choosing "Fold Selection"...
Read more >
Fold - EditPad Pro
If you did not select part of the text, and the text cursor is inside a foldable range that is unfolded, then the...
Read more >
Fold | Learn Vim
Fold is an operator, so it follows the grammar rule ( verb + noun ). You can pass the fold operator with a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found