Skip to content

Commit 6cbefe2

Browse files
committed
fix(langserver): default to folding ranges to character-based
Use character-based folding ranges by default when client capabilities are unknown.
1 parent 82012e8 commit 6cbefe2

File tree

1 file changed

+1
-1
lines changed
  • packages/language_server/src/robotcode/language_server/robotframework/parts

1 file changed

+1
-1
lines changed

packages/language_server/src/robotcode/language_server/robotframework/parts/folding_range.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class _Visitor(Visitor):
2626
def __init__(self, parent: RobotFoldingRangeProtocolPart) -> None:
2727
super().__init__()
2828
self.parent = parent
29-
self.line_folding_only = True
29+
self.line_folding_only = False
3030
if (
3131
self.parent.parent.client_capabilities
3232
and self.parent.parent.client_capabilities.text_document

0 commit comments

Comments
 (0)