-
Notifications
You must be signed in to change notification settings - Fork 821
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 #1426
Comments
Having a collapsedText makes sense. To replace the full line, we could allow that the startCharacter can be set to 0, even when lineFoldingOnly === true. |
@aeschli it's a great idea to use |
Yes, a new capability is needed. It will be false by default. |
Ok. What's next? Should I make PR in https://github.com/microsoft/vscode-languageserver-node repository? |
Yes, first we need to have an implementation for this. |
The PR is ready microsoft/vscode-languageserver-node#910 |
@ris58h we would need a PR against the specification as well. Can you provide one so that this gets properly documented? |
@ris58h are you able to do a PR against the specification here? Definitely interested in this moving forward. |
@ryzngard I'm interested too but I'm on vacation right now, so not in the very near future. |
I went ahead and created a PR in the meantime, which I hope is correct. Please let me know if anything needs to change. @ris58h if you get back from vacation and want to take over by all means feel free. |
Added to 3.17. |
Other IDE's like
Visual Studio
orIntellij IDEA
allow to define custom text for folded regions.There are a lot of issues that could be solved with this feature: microsoft/vscode#70794 , microsoft/vscode#3352 , #827 and other.
The proposed change is to add
collapsedText
property to FoldingRange interface:The problem is: what should clients that don't support char-ranges folding (
lineFoldingOnly === true
) do? I've described the problem in microsoft/vscode#70794Possible options are:
collapsedText
at the end of the first line.FoldingRange
to specify the behavior.The text was updated successfully, but these errors were encountered: