Skip to content

Commit 01cdca7

Browse files
authored
Merge pull request #18 from haskell-debugger/wip/romes/T17
Make InitializeRequestArguments follow the protocol
2 parents 41558e8 + de2ff05 commit 01cdca7

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
### Main library changes
66

77
* Adds support for sending a `runInTerminal` reverse request using
8-
`sendRunInTerminalReverseRequest`.
8+
`sendRunInTerminalReverseRequest`. (#15)
99
* And adds support for receiving responses to reverse requests via the new
1010
argument to `runDAPServerWithLogger` -- a function which receives a
1111
`ReverseRequestResponse`.
12+
* Make `InitializeRequestArguments` comply to the protocol (#17)
1213

1314
## 0.2.0.0 -- 2025-05-05
1415

src/DAP/Types.hs

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2844,11 +2844,11 @@ data InitializeRequestArguments
28442844
-- ^
28452845
-- The ISO-639 locale of the client using this adapter, e.g. en-US or de-CH.
28462846
--
2847-
, linesStartAt1 :: Bool
2847+
, linesStartAt1 :: Maybe Bool
28482848
-- ^
28492849
-- If true all line numbers are 1-based (default).
28502850
--
2851-
, columnsStartAt1 :: Bool
2851+
, columnsStartAt1 :: Maybe Bool
28522852
-- ^
28532853
-- If true all column numbers are 1-based (default).
28542854
--
@@ -2858,43 +2858,49 @@ data InitializeRequestArguments
28582858
-- is the native format.
28592859
-- Values: 'path', 'uri', etc.
28602860
--
2861-
, supportsVariableType :: Bool
2861+
, supportsVariableType :: Maybe Bool
28622862
-- ^
28632863
-- Client supports the `type` attribute for variables.
28642864
--
2865-
, supportsVariablePaging :: Bool
2865+
, supportsVariablePaging :: Maybe Bool
28662866
-- ^
28672867
-- Client supports the paging of variables.
28682868
--
2869-
, supportsRunInTerminalRequest :: Bool
2869+
, supportsRunInTerminalRequest :: Maybe Bool
28702870
-- ^
28712871
-- Client supports the `runInTerminal` request.
28722872
--
2873-
, supportsMemoryReferences :: Bool
2873+
, supportsMemoryReferences :: Maybe Bool
28742874
-- ^
28752875
-- Client supports memory references.
28762876
--
2877-
, supportsProgressReporting :: Bool
2877+
, supportsProgressReporting :: Maybe Bool
28782878
-- ^
28792879
-- Client supports progress reporting.
28802880
--
2881-
, supportsInvalidatedEvent :: Bool
2881+
, supportsInvalidatedEvent :: Maybe Bool
28822882
-- ^
28832883
-- Client supports the `invalidated` event.
28842884
--
2885-
, supportsMemoryEvent :: Bool
2885+
, supportsMemoryEvent :: Maybe Bool
28862886
-- ^
28872887
-- Client supports the `memory` event.
28882888
--
2889-
, supportsArgsCanBeInterpretedByShell :: Bool
2889+
, supportsArgsCanBeInterpretedByShell :: Maybe Bool
28902890
-- ^
28912891
-- Client supports the `argsCanBeInterpretedByShell` attribute on the
28922892
-- `runInTerminal` request.
28932893
--
2894-
, supportsStartDebuggingRequest :: Bool
2894+
, supportsStartDebuggingRequest :: Maybe Bool
28952895
-- ^
28962896
-- Client supports the `startDebugging` request.
28972897
--
2898+
, supportsANSIStyling :: Maybe Bool
2899+
-- ^
2900+
-- The client will interpret ANSI escape sequences in the display of
2901+
-- `OutputEvent.output` and `Variable.value` fields when
2902+
-- `Capabilities.supportsANSIStyling` is also enabled.
2903+
--
28982904
} deriving stock (Show, Eq, Generic)
28992905
----------------------------------------------------------------------------
29002906
instance FromJSON InitializeRequestArguments where

0 commit comments

Comments
 (0)