提交 7af28da1 编写于 作者: A Andre Weinand

add cancel request to DAP

上级 3aa0fc0b
......@@ -10,7 +10,7 @@ declare module DebugProtocol {
/** Base class of requests, responses, and events. */
export interface ProtocolMessage {
/** 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.
*/
export interface CancelRequest extends Request {
// command: 'cancel';
arguments?: CancelArguments;
}
/** Arguments for 'cancel' request. */
export interface CancelArguments {
/** 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. */
export interface CancelResponse extends Response {
}
/** 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).
......@@ -1330,6 +1349,8 @@ declare module DebugProtocol {
supportsReadMemoryRequest?: boolean;
/** The debug adapter supports the 'disassemble' request. */
supportsDisassembleRequest?: boolean;
/** The debug adapter supports the 'cancel' request. */
supportsCancelRequest?: boolean;
}
/** An ExceptionBreakpointsFilter is shown in the UI as an option for configuring how exceptions are dealt with. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册