/** Base class of requests, responses, and events. */
exportinterfaceProtocolMessage{
/** Sequence number. */
/** Sequence number. For protocol messages of type 'request' this number can be used to cancel the request. */
seq:number;
/** Message type.
Values: 'request', 'response', 'event', etc.
...
...
@@ -59,6 +59,25 @@ declare module DebugProtocol {
};
}
/** Cancel request; value of command field is 'cancel'.
This request can be used to cancel another request. Clients should only call this request if the capability 'supportsCancelRequest' is true.
A request that got canceled still needs to send a response back. This can either be a partial result or an error response.
*/
exportinterfaceCancelRequestextendsRequest{
// command: 'cancel';
arguments?:CancelArguments;
}
/** Arguments for 'cancel' request. */
exportinterfaceCancelArguments{
/** The ID (attribute 'seq') of the request to cancel. */
requestId?:number;
}
/** Response to 'cancel' request. This is just an acknowledgement, so no body field is required. */
exportinterfaceCancelResponseextendsResponse{
}
/** Event message for 'initialized' event type.
This event indicates that the debug adapter is ready to accept configuration requests (e.g. SetBreakpointsRequest, SetExceptionBreakpointsRequest).
A debug adapter is expected to send this event when it is ready to accept configuration requests (but not before the 'initialize' request has finished).