Skip to content

feature: Add BracePairFoldingRegionProvider and tests (#3795) - #3807

Open
ArneDeutsch wants to merge 1 commit into
eclipse-xtext:mainfrom
ArneDeutsch:ad-folding-region-nested-braces
Open

ArneDeutsch wants to merge 1 commit into
eclipse-xtext:mainfrom
ArneDeutsch:ad-folding-region-nested-braces

Conversation

@ArneDeutsch

Copy link
Copy Markdown
Contributor

Implemented an alternative folding provider that works on the base of IBracePairProvider. It does NOT fold the EObjects but instead folds the regions based on the brace pairs (default are the pairs {}, () and [] ). Users have to use BracePairFoldingRegionProvider instead of DefaultFoldingRegionProvider and can adapt behaviour by using different implementation of IBracePairProvider.

@ArneDeutsch

Copy link
Copy Markdown
Contributor Author

The failure looks like an unstable test to me (unrelated):

Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.336 s <<< FAILURE! -- in org.eclipse.xtext.ui.tests.editor.hover.AbstractProblemHoverTest
org.eclipse.xtext.ui.tests.editor.hover.AbstractProblemHoverTest.testAnnotations -- Time elapsed: 0.192 s <<< FAILURE!
java.lang.AssertionError: expected:<1> but was:<0>

@github-actions

github-actions Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Test Results

  6 449 files  + 4    6 449 suites  +4   3h 7m 21s ⏱️ + 12m 12s
 43 182 tests +15   42 598 ✅ +15    584 💤 ±0  0 ❌ ±0 
170 024 runs  +60  167 687 ✅ +60  2 337 💤 ±0  0 ❌ ±0 

Results for commit 564104b. ± Comparison against base commit 99768bd.

♻️ This comment has been updated with latest results.

@ArneDeutsch
ArneDeutsch force-pushed the ad-folding-region-nested-braces branch 2 times, most recently from 093c7b1 to 5d70f37 Compare September 22, 2026 09:30
…3795).

Signed-off-by: Arne Deutsch <adeutsch@itemis.de>
@ArneDeutsch
ArneDeutsch force-pushed the ad-folding-region-nested-braces branch from 5d70f37 to 564104b Compare September 23, 2026 05:40
@tamasmiklossy

Copy link
Copy Markdown

Thank you @ArneDeutsch : LGTM, approved from my side :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants