ide на основе vs code · VibeGit
ide на основе vs code Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
krutaya-ide-na-osnove-vs-code / src / vs / workbench / contrib / debug / test / common / mockDebug.ts 698 строк · изменён 14 нояб., 04:52
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
import { DeferredPromise } from '../../../../../base/common/async.js' ;
import { CancellationToken } from '../../../../../base/common/cancellation.js' ;
import { Event } from '../../../../../base/common/event.js' ;
import { URI as uri } from '../../../../../base/common/uri.js' ;
import { IPosition, Position } from '../../../../../editor/common/core/position.js' ;
import { ITextModel } from '../../../../../editor/common/model.js' ;
import { NullLogService } from '../../../../../platform/log/common/log.js' ;
IStorageService
IWorkspaceFolder
AbstractDebugAdapter
AdapterEndEvent IAdapterManager IBreakpoint IBreakpointData IBreakpointUpdateData IConfig IConfigurationManager IDataBreakpoint IDataBreakpointInfoResponse IDebugLocationReferenced IDebugModel IDebugService IDebugSession IDebugSessionOptions IDebugger IExceptionBreakpoint IExceptionInfo IFunctionBreakpoint IInstructionBreakpoint ILaunch IMemoryRegion INewReplElementData IRawModelUpdate IRawStoppedDetails IReplElement IStackFrame IThread IViewModel LoadedSourceEvent State
DebugCompoundRoot
IInstructionBreakpointOptions
Source
DebugStorage
_serviceBrand
State
Event IDebugSession
Event IDebugSession
Event session IDebugSession restart
Event State
IConfigurationManager
IAdapterManager
model ITextModel
focusedStackFrame IStackFrame
session IDebugSession
modelUri uri sourceModified session IDebugSession
uri uri rawBreakpoints IBreakpointData IBreakpoint
uri uri data Map IBreakpointUpdateData sendOnResourceSaved
enabled
opts IInstructionBreakpointOptions
address
breakpoint IExceptionBreakpoint condition
session IDebugSession data DebugProtocol ExceptionBreakpointsFilter
id position
id update name hitCondition condition
id
id update hitCondition condition
id
name
name
id newName
id
launch ILaunch configOrName IConfig options IDebugSessionOptions
IDebugModel
IViewModel
uri uri
thread IThread
uri uri lineNumber column
suppressDebugToolbar
suppressDebugStatusbar
suppressDebugView
autoExpandLazyVariables
memoryReference IMemoryRegion
Event DebugProtocol MemoryEvent
memoryReference offset count DebugProtocol ReadMemoryResponse
memoryReference offset data allowPartial DebugProtocol WriteMemoryResponse
DebugCompoundRoot
frameId id label
_progressId DebugProtocol CancelResponse
uri uri lineNumber IPosition
address bytes IDataBreakpointInfoResponse
name variablesReference frameId dataId description canPersist
dbps IDataBreakpoint
subId
subId
IDebugSession
IReplElement
Event IReplElement
stackFrame IStackFrame name
data INewReplElementData
configuration IConfig type name request
unresolvedConfiguration IConfig type name request
state State Stopped
root IWorkspaceFolder
capabilities DebugProtocol Capabilities
name
modelUri uri Source
threadId IThread
IRawStoppedDetails
Event DebugProtocol Event
Event LoadedSourceEvent
Event
Event AdapterEndEvent
Event
Event DebugProtocol ProgressStartEvent
Event DebugProtocol ProgressUpdateEvent
Event DebugProtocol ProgressEndEvent
configuration resolved IConfig unresolved IConfig
IThread
raw DebugProtocol Source Source
Source
frameId threadId text position Position DebugProtocol CompletionsResponse
removeThreads reference
data IRawModelUpdate
dbgr IDebugger
config IConfig
modelUri uri bpts IBreakpoint sourceModified
fbps IFunctionBreakpoint
exbpts IExceptionBreakpoint
dbps IInstructionBreakpoint
breakpointId DebugProtocol Breakpoint
request args DebugProtocol Response
threadId startFrame levels token CancellationToken DebugProtocol StackTraceResponse
threadId IExceptionInfo
frameId DebugProtocol ScopesResponse
variablesReference threadId filter start count DebugProtocol VariablesResponse
expression frameId context DebugProtocol EvaluateResponse
frameId threadId
threadId granularity DebugProtocol SteppingGranularity
threadId targetId granularity DebugProtocol SteppingGranularity
threadId granularity DebugProtocol SteppingGranularity
threadId granularity DebugProtocol SteppingGranularity
threadId
threadId
threadId
threadIds
variablesReference name value DebugProtocol SetVariableResponse
frameId expression value DebugProtocol SetExpressionResponse
resource uri DebugProtocol SourceResponse
memoryReference offset instructionOffset instructionCount DebugProtocol DisassembledInstruction
restart
restart
source DebugProtocol Source line column DebugProtocol GotoTargetsResponse
threadId targetId DebugProtocol GotoResponse
locationReference IDebugLocationReferenced
capabilities DebugProtocol Capabilities
disconnected
sessionLengthInSeconds
readyForBreakpoints
emittedStopped
args DebugProtocol StackTraceArguments DebugProtocol StackTraceResponse
seq
type
request_seq
success
command
body
stackFrames
id
name
line
column
args DebugProtocol ExceptionInfoArguments DebugProtocol ExceptionInfoResponse
args IConfig DebugProtocol Response
args DebugProtocol ScopesArguments DebugProtocol ScopesResponse
args DebugProtocol VariablesArguments DebugProtocol VariablesResponse
args DebugProtocol EvaluateArguments DebugProtocol EvaluateResponse
request args DebugProtocol Response
restart DebugProtocol TerminateResponse
DebugProtocol ThreadsResponse
args DebugProtocol StepInArguments DebugProtocol StepInResponse
args DebugProtocol StepOutArguments DebugProtocol StepOutResponse
args DebugProtocol StepBackArguments DebugProtocol StepBackResponse
args DebugProtocol ContinueArguments DebugProtocol ContinueResponse
args DebugProtocol ReverseContinueArguments DebugProtocol ReverseContinueResponse
args DebugProtocol PauseArguments DebugProtocol PauseResponse
args DebugProtocol TerminateThreadsArguments DebugProtocol TerminateThreadsResponse
args DebugProtocol SetVariableArguments DebugProtocol SetVariableResponse
args DebugProtocol RestartFrameArguments DebugProtocol RestartFrameResponse
args DebugProtocol CompletionsArguments DebugProtocol CompletionsResponse
args DebugProtocol NextArguments DebugProtocol NextResponse
args DebugProtocol SourceArguments DebugProtocol SourceResponse
args DebugProtocol LoadedSourcesArguments DebugProtocol LoadedSourcesResponse
args DebugProtocol SetBreakpointsArguments DebugProtocol SetBreakpointsResponse
args DebugProtocol SetFunctionBreakpointsArguments DebugProtocol SetFunctionBreakpointsResponse
args DebugProtocol SetExceptionBreakpointsArguments DebugProtocol SetExceptionBreakpointsResponse
onDidStop Event DebugProtocol StoppedEvent
seq
pendingResponses
message DebugProtocol ProtocolMessage
message type
request message DebugProtocol Request
request command
request request arguments
request
message type
response message DebugProtocol Response
pendingResponses response command
pendingResponses response command response
request DebugProtocol Request body
response DebugProtocol Response
seq seq
type
request_seq request seq
command request command
success
body
response
event body
response DebugProtocol Event
seq seq
type
event
body
response
command DebugProtocol Response
deferred
pendingResponses command
pendingResponses command p
pendingResponses command deferred
deferred p
command args
response DebugProtocol Request
seq seq
type
command
arguments args
response
request DebugProtocol Request args DebugProtocol EvaluateArguments
args expression
output args expression
request
result args expression
variablesReference
args expression
output args expression
storageService IStorageService
storageService
import
{
}
from
'../../../../../platform/storage/common/storage.js'
;
import
{
}
from
'../../../../../platform/workspace/common/workspace.js'
;
import
{
}
from
'../../common/abstractDebugAdapter.js'
;
import
{
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
}
from
'../../common/debug.js'
;
import
{
}
from
'../../common/debugCompoundRoot.js'
;
import
{
}
from
'../../common/debugModel.js'
;
import
{
}
from
'../../common/debugSource.js'
;
import
{
}
from
'../../common/debugStorage.js'
;
export
class
MockDebugService
implements
IDebugService
{
:
undefined
;
get
state
(
)
:
{
throw
new
Error
(
'not implemented'
)
;
}
get
onWillNewSession
(
)
:
<
>
{
throw
new
Error
(
'not implemented'
)
;
}
get
onDidNewSession
(
)
:
<
>
{
throw
new
Error
(
'not implemented'
)
;
}
get
onDidEndSession
(
)
:
<
{
:
;
:
boolean
}
>
{
throw
new
Error
(
'not implemented'
)
;
}
get
onDidChangeState
(
)
:
<
>
{
throw
new
Error
(
'not implemented'
)
;
}
getConfigurationManager
(
)
:
{
throw
new
Error
(
'not implemented'
)
;
}
getAdapterManager
(
)
:
{
throw
new
Error
(
'Method not implemented.'
)
;
}
canSetBreakpointsIn
(
:
)
:
boolean
{
throw
new
Error
(
'Method not implemented.'
)
;
}
focusStackFrame
(
:
)
:
Promise
<
void
>
{
throw
new
Error
(
'not implemented'
)
;
}
sendAllBreakpoints
(
?
:
)
:
Promise
<
any
>
{
throw
new
Error
(
'not implemented'
)
;
}
sendBreakpoints
(
:
,
?
:
boolean
|
undefined
,
?
:
|
undefined
)
:
Promise
<
any
>
{
throw
new
Error
(
'not implemented'
)
;
}
addBreakpoints
(
:
,
:
[
]
)
:
Promise
<
[
]
>
{
throw
new
Error
(
'not implemented'
)
;
}
updateBreakpoints
(
:
,
:
<
string
,
>
,
:
boolean
)
:
Promise
<
void
>
{
throw
new
Error
(
'not implemented'
)
;
}
enableOrDisableBreakpoints
(
:
boolean
)
:
Promise
<
void
>
{
throw
new
Error
(
'not implemented'
)
;
}
setBreakpointsActivated
(
)
:
Promise
<
void
>
{
throw
new
Error
(
'not implemented'
)
;
}
removeBreakpoints
(
)
:
Promise
<
any
>
{
throw
new
Error
(
'not implemented'
)
;
}
addInstructionBreakpoint
(
:
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
removeInstructionBreakpoints
(
?
:
string
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
setExceptionBreakpointCondition
(
:
,
:
string
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
setExceptionBreakpointsForSession
(
:
,
:
.
[
]
)
:
void
{
throw
new
Error
(
'Method not implemented.'
)
;
}
addFunctionBreakpoint
(
)
:
void
{
}
moveWatchExpression
(
:
string
,
:
number
)
:
void
{
}
updateFunctionBreakpoint
(
:
string
,
:
{
?
:
string
;
?
:
string
;
?
:
string
}
)
:
Promise
<
void
>
{
throw
new
Error
(
'not implemented'
)
;
}
removeFunctionBreakpoints
(
?
:
string
)
:
Promise
<
void
>
{
throw
new
Error
(
'not implemented'
)
;
}
addDataBreakpoint
(
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
updateDataBreakpoint
(
:
string
,
:
{
?
:
string
;
?
:
string
}
)
:
Promise
<
void
>
{
throw
new
Error
(
'not implemented'
)
;
}
removeDataBreakpoints
(
?
:
string
|
undefined
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
addReplExpression
(
:
string
)
:
Promise
<
void
>
{
throw
new
Error
(
'not implemented'
)
;
}
removeReplExpressions
(
)
:
void
{
}
addWatchExpression
(
?
:
string
)
:
Promise
<
void
>
{
throw
new
Error
(
'not implemented'
)
;
}
renameWatchExpression
(
:
string
,
:
string
)
:
Promise
<
void
>
{
throw
new
Error
(
'not implemented'
)
;
}
removeWatchExpressions
(
?
:
string
)
:
void
{
}
startDebugging
(
:
,
?
:
|
string
,
?
:
)
:
Promise
<
boolean
>
{
return
Promise
.
resolve
(
true
)
;
}
restartSession
(
)
:
Promise
<
any
>
{
throw
new
Error
(
'not implemented'
)
;
}
stopSession
(
)
:
Promise
<
any
>
{
throw
new
Error
(
'not implemented'
)
;
}
getModel
(
)
:
{
throw
new
Error
(
'not implemented'
)
;
}
getViewModel
(
)
:
{
throw
new
Error
(
'not implemented'
)
;
}
sourceIsNotAvailable
(
:
)
:
void
{
}
tryToAutoFocusStackFrame
(
:
)
:
Promise
<
any
>
{
throw
new
Error
(
'not implemented'
)
;
}
runTo
(
:
,
:
number
,
?
:
number
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
}
export
class
MockSession
implements
IDebugSession
{
readonly
=
false
;
readonly
=
false
;
readonly
=
false
;
readonly
=
false
;
dispose
(
)
:
void
{
}
getMemory
(
:
string
)
:
{
throw
new
Error
(
'Method not implemented.'
)
;
}
get
onDidInvalidateMemory
(
)
:
<
.
>
{
throw
new
Error
(
'Not implemented'
)
;
}
readMemory
(
:
string
,
:
number
,
:
number
)
:
Promise
<
.
|
undefined
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
writeMemory
(
:
string
,
:
number
,
:
string
,
?
:
boolean
)
:
Promise
<
.
|
undefined
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
cancelCorrelatedTestRun
(
)
:
void
{
}
get
compoundRoot
(
)
:
|
undefined
{
return
undefined
;
}
get
saveBeforeRestart
(
)
:
boolean
{
return
true
;
}
get
isSimpleUI
(
)
:
boolean
{
return
false
;
}
get
lifecycleManagedByParent
(
)
:
boolean
{
return
false
;
}
stepInTargets
(
:
number
)
:
Promise
<
{
:
number
;
:
string
}
[
]
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
cancel
(
:
string
)
:
Promise
<
.
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
breakpointsLocations
(
:
,
:
number
)
:
Promise
<
[
]
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
dataBytesBreakpointInfo
(
:
string
,
:
number
)
:
Promise
<
|
undefined
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
dataBreakpointInfo
(
:
string
,
?
:
number
|
undefined
,
?
:
number
|
undefined
)
:
Promise
<
{
:
string
|
null
;
:
string
;
?
:
boolean
|
undefined
}
|
undefined
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
sendDataBreakpoints
(
:
[
]
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
:
string
|
undefined
;
get
compact
(
)
:
boolean
{
return
false
;
}
setSubId
(
:
string
|
undefined
)
:
void
{
throw
new
Error
(
'Method not implemented.'
)
;
}
get
parentSession
(
)
:
|
undefined
{
return
undefined
;
}
getReplElements
(
)
:
[
]
{
return
[
]
;
}
hasSeparateRepl
(
)
:
boolean
{
return
true
;
}
removeReplExpressions
(
)
:
void
{
}
get
onDidChangeReplElements
(
)
:
<
|
undefined
>
{
throw
new
Error
(
'not implemented'
)
;
}
addReplExpression
(
:
,
:
string
)
:
Promise
<
void
>
{
return
Promise
.
resolve
(
undefined
)
;
}
appendToRepl
(
:
)
:
void
{
}
:
=
{
:
'mock'
,
:
'mock'
,
:
'launch'
}
;
:
=
{
:
'mock'
,
:
'mock'
,
:
'launch'
}
;
=
.
;
!
:
;
:
.
=
{
}
;
getId
(
)
:
string
{
return
'mock'
;
}
getLabel
(
)
:
string
{
return
'mockname'
;
}
get
name
(
)
:
string
{
return
'mockname'
;
}
setName
(
:
string
)
:
void
{
throw
new
Error
(
'not implemented'
)
;
}
getSourceForUri
(
:
)
:
{
throw
new
Error
(
'not implemented'
)
;
}
getThread
(
:
number
)
:
{
throw
new
Error
(
'not implemented'
)
;
}
getStoppedDetails
(
)
:
{
throw
new
Error
(
'not implemented'
)
;
}
get
onDidCustomEvent
(
)
:
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
get
onDidLoadedSource
(
)
:
<
>
{
throw
new
Error
(
'not implemented'
)
;
}
get
onDidChangeState
(
)
:
<
void
>
{
throw
new
Error
(
'not implemented'
)
;
}
get
onDidEndAdapter
(
)
:
<
|
undefined
>
{
throw
new
Error
(
'not implemented'
)
;
}
get
onDidChangeName
(
)
:
<
string
>
{
throw
new
Error
(
'not implemented'
)
;
}
get
onDidProgressStart
(
)
:
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
get
onDidProgressUpdate
(
)
:
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
get
onDidProgressEnd
(
)
:
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
setConfiguration
(
:
{
:
;
:
}
)
{
}
getAllThreads
(
)
:
[
]
{
return
[
]
;
}
getSource
(
:
.
)
:
{
throw
new
Error
(
'not implemented'
)
;
}
getLoadedSources
(
)
:
Promise
<
[
]
>
{
return
Promise
.
resolve
(
[
]
)
;
}
completions
(
:
number
,
:
number
,
:
string
,
:
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
clearThreads
(
:
boolean
,
?
:
number
)
:
void
{
}
rawUpdate
(
:
)
:
void
{
}
initialize
(
:
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
launchOrAttach
(
:
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
restart
(
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
sendBreakpoints
(
:
,
:
[
]
,
:
boolean
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
sendFunctionBreakpoints
(
:
[
]
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
sendExceptionBreakpoints
(
:
[
]
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
sendInstructionBreakpoints
(
:
[
]
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
getDebugProtocolBreakpoint
(
:
string
)
:
.
|
undefined
{
throw
new
Error
(
'Method not implemented.'
)
;
}
customRequest
(
:
string
,
:
any
)
:
Promise
<
.
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
stackTrace
(
:
number
,
:
number
,
:
number
,
:
)
:
Promise
<
.
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
exceptionInfo
(
:
number
)
:
Promise
<
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
scopes
(
:
number
)
:
Promise
<
.
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
variables
(
:
number
,
:
number
|
undefined
,
:
'indexed'
|
'named'
,
:
number
,
:
number
)
:
Promise
<
.
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
evaluate
(
:
string
,
:
number
,
?
:
string
)
:
Promise
<
.
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
restartFrame
(
:
number
,
:
number
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
next
(
:
number
,
?
:
.
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
stepIn
(
:
number
,
?
:
number
,
?
:
.
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
stepOut
(
:
number
,
?
:
.
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
stepBack
(
:
number
,
?
:
.
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
continue
(
:
number
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
reverseContinue
(
:
number
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
pause
(
:
number
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
terminateThreads
(
:
number
[
]
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
setVariable
(
:
number
,
:
string
,
:
string
)
:
Promise
<
.
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
setExpression
(
:
number
,
:
string
,
:
string
)
:
Promise
<
.
|
undefined
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
loadSource
(
:
)
:
Promise
<
.
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
disassemble
(
:
string
,
:
number
,
:
number
,
:
number
)
:
Promise
<
.
[
]
|
undefined
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
terminate
(
=
false
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
disconnect
(
=
false
)
:
Promise
<
void
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
gotoTargets
(
:
.
,
:
number
,
?
:
number
|
undefined
)
:
Promise
<
.
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
goto
(
:
number
,
:
number
)
:
Promise
<
.
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
resolveLocationReference
(
:
number
)
:
Promise
<
>
{
throw
new
Error
(
'Method not implemented.'
)
;
}
}
export
class
MockRawSession
{
:
.
=
{
}
;
=
false
;
:
number
=
0
;
=
true
;
=
true
;
getLengthInSeconds
(
)
:
number
{
return
100
;
}
stackTrace
(
:
.
)
:
Promise
<
.
>
{
return
Promise
.
resolve
(
{
:
1
,
:
'response'
,
:
1
,
:
true
,
:
'stackTrace'
,
:
{
:
[
{
:
1
,
:
'mock'
,
:
5
,
:
6
}
]
}
}
)
;
}
exceptionInfo
(
:
.
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
launchOrAttach
(
:
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
scopes
(
:
.
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
variables
(
:
.
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
evaluate
(
:
.
)
:
Promise
<
.
>
{
return
Promise
.
resolve
(
null
!
)
;
}
custom
(
:
string
,
:
any
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
terminate
(
=
false
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
disconnect
(
)
:
Promise
<
any
>
{
throw
new
Error
(
'not implemented'
)
;
}
threads
(
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
stepIn
(
:
.
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
stepOut
(
:
.
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
stepBack
(
:
.
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
continue
(
:
.
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
reverseContinue
(
:
.
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
pause
(
:
.
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
terminateThreads
(
:
.
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
setVariable
(
:
.
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
restartFrame
(
:
.
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
completions
(
:
.
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
next
(
:
.
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
source
(
:
.
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
loadedSources
(
:
.
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
setBreakpoints
(
:
.
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
setFunctionBreakpoints
(
:
.
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
setExceptionBreakpoints
(
:
.
)
:
Promise
<
.
>
{
throw
new
Error
(
'not implemented'
)
;
}
readonly
:
<
.
>
=
null
!
;
}
export
class
MockDebugAdapter
extends
AbstractDebugAdapter
{
private
=
0
;
private
=
new
Map< string , DeferredPromise< DebugProtocol. Response>>
(
)
;
startSession
(
)
:
Promise
<
void
>
{
return
Promise
.
resolve
(
)
;
}
stopSession
(
)
:
Promise
<
void
>
{
return
Promise
.
resolve
(
)
;
}
sendMessage
(
:
.
)
:
void
{
if
(
.
===
'request'
)
{
setTimeout
(
(
)
=>
{
const
=
as
.
;
switch
(
.
)
{
case
'evaluate'
:
this
.
evaluate
(
,
.
)
;
return
;
}
this
.
sendResponseBody
(
,
{
}
)
;
return
;
}
,
0
)
;
}
else
if
(
.
===
'response'
)
{
const
=
as
.
;
if
(
this
.
.
has
(
.
)
)
{
this
.
.
get
(
.
)
!
.
complete
(
)
;
}
}
}
sendResponseBody
(
:
.
,
:
any
)
{
const
:
.
=
{
:
++
this
.
,
:
'response'
,
:
.
,
:
.
,
:
true
,
}
;
this
.
acceptMessage
(
)
;
}
sendEventBody
(
:
string
,
:
any
)
{
const
:
.
=
{
:
++
this
.
,
:
'event'
,
,
}
;
this
.
acceptMessage
(
)
;
}
waitForResponseFromClient
(
:
string
)
:
Promise
<
.
>
{
const
=
new
DeferredPromise< DebugProtocol. Response>
(
)
;
if
(
this
.
.
has
(
)
)
{
return
this
.
.
get
(
)
!
.
;
}
this
.
.
set
(
,
)
;
return
.
;
}
sendRequestBody
(
:
string
,
:
any
)
{
const
:
.
=
{
:
++
this
.
,
:
'request'
,
,
:
}
;
this
.
acceptMessage
(
)
;
}
evaluate
(
:
.
,
:
.
)
{
if
(
.
.
indexOf
(
'before.'
)
===
0
)
{
this
.
sendEventBody
(
'output'
,
{
:
.
}
)
;
}
this
.
sendResponseBody
(
,
{
:
'='
+
.
,
:
0
}
)
;
if
(
.
.
indexOf
(
'after.'
)
===
0
)
{
this
.
sendEventBody
(
'output'
,
{
:
.
}
)
;
}
}
}
export
class
MockDebugStorage
extends
DebugStorage
{
constructor
(
:
)
{
super
(
,
undefined
!
,
undefined
!
,
new
NullLogService
(
)
)
;
}
}