Skip to content

Commit 4e9f4ef

Browse files
committed
Update release notes for PR #5230
1 parent c875da4 commit 4e9f4ef

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.release-notes/lsp-folding-range.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.release-notes/next-release.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,11 @@ The Pony language server now supports Go to Type Definition. Placing the cursor
3333

3434
This works for explicitly annotated bindings (`let x: MyClass`) and for bindings whose type is inferred (`let x = MyClass.create()`).
3535

36+
## Add LSP `textDocument/foldingRange` support
37+
38+
The Pony language server now handles `textDocument/foldingRange` requests, enabling editors to show fold regions for Pony source files.
39+
40+
A fold range is emitted for each top-level type entity (class, actor, struct, primitive, trait, interface) and for each multi-line member (fun, be, new). Within method bodies, fold ranges are also emitted for compound expressions: if (including ifdef, resolved to if by the compiler), while (including for, desugared to while by the compiler), repeat, match, try, and recover blocks. Single-line nodes are excluded since there is nothing to fold.
41+
42+
The server also sends `workspace/foldingRange/refresh` after each compilation when the editor advertises support for it, so that fold regions update automatically when files change.
43+

0 commit comments

Comments
 (0)