Skip to content

Commit 0d5616c

Browse files
committed
fix: enable supportsANSIStyling in DAP to reeanble colored output in debug console
1 parent 725c739 commit 0d5616c

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

packages/debugger/src/robotcode/debugger/dap_types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ class InitializeRequestArguments(Model):
303303
supports_memory_references: Optional[bool] = None
304304
supports_progress_reporting: Optional[bool] = None
305305
supports_invalidated_event: Optional[bool] = None
306+
supports_a_n_s_i_styling: Optional[bool] = None
306307

307308

308309
@dataclass
@@ -395,6 +396,7 @@ class Capabilities(Model):
395396
supports_stepping_granularity: Optional[bool] = None
396397
supports_instruction_breakpoints: Optional[bool] = None
397398
supports_exception_filter_options: Optional[bool] = None
399+
supports_a_n_s_i_styling: Optional[bool] = None
398400

399401

400402
@dataclass

packages/debugger/src/robotcode/debugger/launcher/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ async def _initialize(self, arguments: InitializeRequestArguments, *args: Any, *
132132
supports_exception_options=True,
133133
supports_exception_filter_options=True,
134134
supports_completions_request=True,
135+
supports_a_n_s_i_styling=True,
135136
)
136137

137138
@rpc_method(name="launch", param_type=LaunchRequestArguments)

packages/debugger/src/robotcode/debugger/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ async def _initialize(self, arguments: InitializeRequestArguments, *args: Any, *
185185
supports_exception_options=True,
186186
supports_exception_filter_options=True,
187187
supports_completions_request=True,
188+
supports_a_n_s_i_styling=True,
188189
)
189190

190191
@rpc_method(name="attach", param_type=AttachRequestArguments)

0 commit comments

Comments
 (0)