Skip to content

Commit 8e86a56

Browse files
committed
Mention code folding on language server feature page
I think it's a little tricky to show a meaningful screenshot for this, so I left it out. We could do a video, but nothing else on this page uses a video so I opted not to do it.
1 parent ca49bf9 commit 8e86a56

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/features/language-server.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ ty surfaces useful contextual information as you code:
9090
symbol in the current file.
9191
- **Semantic highlighting**: Syntax highlighting based on the underlying semantics and types.
9292

93+
## Code folding
94+
95+
ty provides Python specific code folding ranges to LSP clients upon request. This includes tagging
96+
docstrings as comments, which supports editor actions like "fold all comment blocks."
97+
9398
## Notebook support
9499

95100
ty supports Jupyter notebooks (`.ipynb` files) with language server features. Each cell is
@@ -126,7 +131,7 @@ within a few milliseconds, even on large projects.
126131
| [`textDocument/documentHighlight`][documenthighlight] | ✅ Supported | |
127132
| [`textDocument/documentLink`][documentlink] | ❌ Not supported | |
128133
| [`textDocument/documentSymbol`][documentsymbol] | ✅ Supported | |
129-
| [`textDocument/foldingRange`][foldingrange] | ❌ Not supported | |
134+
| [`textDocument/foldingRange`][foldingrange] | ✅ Supported | |
130135
| [`textDocument/formatting`][formatting] || Use [Ruff] for formatting |
131136
| [`textDocument/hover`][hover] | ✅ Supported | |
132137
| [`textDocument/implementation`][implementation] | ❌ Not supported | |

0 commit comments

Comments
 (0)