You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
License header is not the first thing one wants to check when opening java file.
JDT-LS returns a list of folding ranges that can have a kind of "comment" or "imports" or "region" so folding "comments" when this comment range starts on first line should do the trick.
Community
I understand suggesting an enhancement doesn't mandate anyone to implement it. Other contributors may consider this suggestion, or not, at their own convenience. The most efficient way to get it fixed is that I implement it myself and contribute it back as a good quality patch to the project.
The text was updated successfully, but these errors were encountered:
As we wouldn't want to collapse all comments block by default, we'll need the LS to inform about the block being legal. I suggested microsoft/language-server-protocol#1819 to add such possibility in the spec.
As discussed on microsoft/language-server-protocol#1819 , this would better be implemented on cliend side (LSP4E) here, processing comments block and deciding whether to collapse them or not according to content.
Suggestion
License header is not the first thing one wants to check when opening java file.
JDT-LS returns a list of folding ranges that can have a kind of "comment" or "imports" or "region" so folding "comments" when this comment range starts on first line should do the trick.
Community
The text was updated successfully, but these errors were encountered: