Skip to content

Commit

Permalink
implement Java folding using JDK scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur McGibbon authored and tgodzik committed Jun 29, 2023
1 parent ba7763e commit 5a8512d
Show file tree
Hide file tree
Showing 6 changed files with 445 additions and 205 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ final class FoldingRangeProvider(
code <- buffers.get(filePath)
if filePath.isJava
} yield {
val extractor =
new JavaFoldingRangeExtractor(code, foldOnlyLines)
extractor.extract().asJava
JavaFoldingRangeExtractor.extract(code, filePath, foldOnlyLines).asJava
}

result.getOrElse(util.Collections.emptyList())
Expand Down
Loading

0 comments on commit 5a8512d

Please sign in to comment.