sid-srini opened a new pull request, #7750:
URL: https://github.com/apache/netbeans/pull/7750

   1. Added `TextDocumentServiceImpl.convertToLineOnlyFolds` which:
       - accepts code-folds specified as fine-grained Position-based (line, 
column) ranges, and,
       - changes them to coarse-grained line-only ranges. 
       - The line-only ranges computed uphold the code-folding invariant that: 
*a fold **does not end** at the same point **where** another fold **starts**. *
   
   2. This is used in `TextDocumentServiceImpl.foldingRange()` when the client 
capabilities have `FoldingRangeClientCapabilities.lineFoldingOnly = true`.
   
   Symptoms of this issue maybe seen in oracle/javavscode#249.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to