-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathwebKitAdapterInterfaces.d.ts
119 lines (100 loc) · 4.85 KB
/
webKitAdapterInterfaces.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
import {DebugProtocol} from 'vscode-debugprotocol';
export interface ILaunchRequestArgs extends DebugProtocol.LaunchRequestArguments {
platform: string;
appRoot?: string;
runtimeArgs?: string[];
runtimeExecutable?: string;
stopOnEntry?: boolean;
sourceMaps?: boolean;
diagnosticLogging?: boolean;
emulator?:boolean;
request: string;
tnsArgs?: string[];
tnsOutput?: string;
}
export interface IAttachRequestArgs extends DebugProtocol.AttachRequestArguments {
platform: string;
appRoot?: string;
sourceMaps?: boolean;
diagnosticLogging?: boolean;
emulator?:boolean;
request: string;
tnsArgs?: string[];
tnsOutput?: string;
}
export interface ISetBreakpointsArgs extends DebugProtocol.SetBreakpointsArguments {
/** DebugProtocol does not send cols, maybe it will someday, but this is used internally when a location is sourcemapped */
cols?: number[];
authoredPath?: string;
}
export interface IBreakpoint extends DebugProtocol.Breakpoint {
column?: number;
}
/*
* The ResponseBody interfaces are copied from debugProtocol.d.ts which defines these inline in the Response interfaces.
* They should always match those interfaces, see the original for comments.
*/
export interface ISetBreakpointsResponseBody {
breakpoints: IBreakpoint[];
}
export interface ISourceResponseBody {
content: string;
}
export interface IThreadsResponseBody {
threads: DebugProtocol.Thread[];
}
export interface IStackTraceResponseBody {
stackFrames: DebugProtocol.StackFrame[];
}
export interface IScopesResponseBody {
scopes: DebugProtocol.Scope[];
}
export interface IVariablesResponseBody {
variables: DebugProtocol.Variable[];
}
export interface IEvaluateResponseBody {
result: string;
variablesReference: number;
}
export declare type PromiseOrNot<T> = T | Promise<T>;
export interface IDebugAdapter {
registerEventHandler(eventHandler: (event: DebugProtocol.Event) => void): void;
initialize(args: DebugProtocol.InitializeRequestArguments): PromiseOrNot<DebugProtocol.Capabilites>;
launch(args: ILaunchRequestArgs): PromiseOrNot<void>;
configurationDone(args: DebugProtocol.ConfigurationDoneArguments): void;
disconnect(): PromiseOrNot<void>;
attach(args: IAttachRequestArgs): PromiseOrNot<void>;
setBreakpoints(args: DebugProtocol.SetBreakpointsArguments): PromiseOrNot<ISetBreakpointsResponseBody>;
setExceptionBreakpoints(args: DebugProtocol.SetExceptionBreakpointsArguments): PromiseOrNot<void>;
continue(): PromiseOrNot<void>;
next(): PromiseOrNot<void>;
stepIn(): PromiseOrNot<void>;
stepOut(): PromiseOrNot<void>;
pause(): PromiseOrNot<void>;
stackTrace(args: DebugProtocol.StackTraceArguments): PromiseOrNot<IStackTraceResponseBody>;
scopes(args: DebugProtocol.ScopesArguments): PromiseOrNot<IScopesResponseBody>;
variables(args: DebugProtocol.VariablesArguments): PromiseOrNot<IVariablesResponseBody>;
source(args: DebugProtocol.SourceArguments): PromiseOrNot<ISourceResponseBody>;
threads(): PromiseOrNot<IThreadsResponseBody>;
evaluate(args: DebugProtocol.EvaluateArguments): PromiseOrNot<IEvaluateResponseBody>;
}
export interface IDebugTransformer {
initialize?(args: DebugProtocol.InitializeRequestArguments, requestSeq?: number): PromiseOrNot<void>;
launch?(args: ILaunchRequestArgs, requestSeq?: number): PromiseOrNot<void>;
attach?(args: IAttachRequestArgs, requestSeq?: number): PromiseOrNot<void>;
setBreakpoints?(args: DebugProtocol.SetBreakpointsArguments, requestSeq?: number): PromiseOrNot<void>;
setExceptionBreakpoints?(args: DebugProtocol.SetExceptionBreakpointsArguments, requestSeq?: number): PromiseOrNot<void>;
stackTrace?(args: DebugProtocol.StackTraceArguments, requestSeq?: number): PromiseOrNot<void>;
scopes?(args: DebugProtocol.ScopesArguments, requestSeq?: number): PromiseOrNot<void>;
variables?(args: DebugProtocol.VariablesArguments, requestSeq?: number): PromiseOrNot<void>;
source?(args: DebugProtocol.SourceArguments, requestSeq?: number): PromiseOrNot<void>;
evaluate?(args: DebugProtocol.EvaluateArguments, requestSeq?: number): PromiseOrNot<void>;
setBreakpointsResponse?(response: ISetBreakpointsResponseBody, requestSeq?: number): PromiseOrNot<void>;
stackTraceResponse?(response: IStackTraceResponseBody, requestSeq?: number): PromiseOrNot<void>;
scopesResponse?(response: IScopesResponseBody, requestSeq?: number): PromiseOrNot<void>;
variablesResponse?(response: IVariablesResponseBody, requestSeq?: number): PromiseOrNot<void>;
sourceResponse?(response: ISourceResponseBody, requestSeq?: number): PromiseOrNot<void>;
threadsResponse?(response: IThreadsResponseBody, requestSeq?: number): PromiseOrNot<void>;
evaluateResponse?(response: IEvaluateResponseBody, requestSeq?: number): PromiseOrNot<void>;
scriptParsed?(event: DebugProtocol.Event);
}