Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
emilienlemaire committed Jul 3, 2023
1 parent 8b49de1 commit 0946a2d
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 124 deletions.
8 changes: 4 additions & 4 deletions src/vscode-debugadapter/messages.ml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module Message = struct

include
[%js:
val seq: t -> int [@@js.get]
val seq: t -> int [@@js.get]
val type_: t -> string [@@js.get "type"]]
end

Expand All @@ -27,8 +27,8 @@ module Response = struct
include
[%js:
val request_seq: t -> int [@@js.get]
val success: t -> bool [@@js.get]
val command: t -> string [@@js.get]
val success: t -> bool [@@js.get]
val command: t -> string [@@js.get]
val create:
request: DebugProtocol.Request.t
-> ?message: string
Expand All @@ -43,6 +43,6 @@ module Event = struct

include
[%js:
val event: t -> string [@@js.get]
val event: t -> string [@@js.get]
val create: event: string -> ?body: 'a -> unit -> t [@@js.new "debugadapter.Event"]]
end
18 changes: 9 additions & 9 deletions src/vscode-debugadapter/protocol.ml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ module Emitter = struct

include
[%js:
val event: t -> Event.t [@@js.get]
val fire: t -> event:T.t -> t [@@js.call]
val event: t -> Event.t [@@js.get]
val fire: t -> event:T.t -> t [@@js.call]
val hasListener: t -> bool [@@js.call]
val dispose: t -> unit [@@js.call]]
val dispose: t -> unit [@@js.call]]
end
end

Expand All @@ -72,7 +72,7 @@ module VSCodeDebugAdapter = struct
include
[%js:
val onDidSendMessage: t -> DebugProtocalMessage.t Event0.t [@@js.get]
val handleMessage: t -> message: DebugProtocol.ProtocolMessage.t -> unit [@@js.call]]
val handleMessage: t -> message: DebugProtocol.ProtocolMessage.t -> unit [@@js.call]]
end

module ProtocolServer = struct
Expand All @@ -81,17 +81,17 @@ module ProtocolServer = struct

include
[%js:
val dispose: t -> Js.Any.t [@@js.call]
val dispose: t -> Js.Any.t [@@js.call]
val onDidSendMessage: t -> DebugProtocalMessage.t Event0.t [@@js.get]
val handleMessage: t -> msg: DebugProtocol.ProtocolMessage.t -> unit [@@js.call]
val handleMessage: t -> msg: DebugProtocol.ProtocolMessage.t -> unit [@@js.call]
val start:
t
-> inStream: Node.Stream.Readable.t
-> outStream: Node.Stream.Writable.t
-> unit [@@js.call]
val stop: t -> unit [@@js.call]
val sendEvent: t -> event: DebugProtocol.Event.t -> unit [@@js.call]
val sendResponse: t -> response: DebugProtocol.Response.t -> unit [@@js.call]
val stop: t -> unit [@@js.call]
val sendEvent: t -> event: DebugProtocol.Event.t -> unit [@@js.call]
val sendResponse: t -> response: DebugProtocol.Response.t -> unit [@@js.call]
val sendRequest:
t
-> command: string
Expand Down
Loading

0 comments on commit 0946a2d

Please sign in to comment.