@codingame/monaco-vscode-debug-service-override 37.2.0 → 37.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -2
- package/session.d.ts +2 -0
- package/session.js +17 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +17 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +106 -106
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +20 -20
- package/vscode/src/vs/workbench/contrib/debug/browser/debugChatIntegration.js +17 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +24 -24
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +33 -33
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +35 -31
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +58 -58
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +15 -15
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +10 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +10 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +36 -36
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +14 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +5 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +45 -45
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +14 -14
- package/vscode/src/vs/workbench/contrib/debug/common/nullDebugService.d.ts +70 -0
- package/vscode/src/vs/workbench/contrib/debug/common/nullDebugService.js +137 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +2 -2
|
@@ -317,7 +317,7 @@ let DebugSession = class DebugSession {
|
|
|
317
317
|
}
|
|
318
318
|
async launchOrAttach(config) {
|
|
319
319
|
if (!this.raw) {
|
|
320
|
-
throw ( new Error(( localize(
|
|
320
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "launch or attach"))));
|
|
321
321
|
}
|
|
322
322
|
if (this.parentSession && this.parentSession.state === State.Inactive) {
|
|
323
323
|
throw canceled();
|
|
@@ -379,7 +379,7 @@ let DebugSession = class DebugSession {
|
|
|
379
379
|
}
|
|
380
380
|
async restart() {
|
|
381
381
|
if (!this.raw) {
|
|
382
|
-
throw ( new Error(( localize(
|
|
382
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "restart"))));
|
|
383
383
|
}
|
|
384
384
|
this.cancelAllRequests();
|
|
385
385
|
if (this._options.lifecycleManagedByParent && this.parentSession) {
|
|
@@ -392,7 +392,7 @@ let DebugSession = class DebugSession {
|
|
|
392
392
|
}
|
|
393
393
|
async sendBreakpoints(modelUri, breakpointsToSend, sourceModified) {
|
|
394
394
|
if (!this.raw) {
|
|
395
|
-
throw ( new Error(( localize(
|
|
395
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "breakpoints"))));
|
|
396
396
|
}
|
|
397
397
|
if (!this.raw.readyForBreakpoints) {
|
|
398
398
|
return Promise.resolve(undefined);
|
|
@@ -406,8 +406,8 @@ let DebugSession = class DebugSession {
|
|
|
406
406
|
}
|
|
407
407
|
const response = await this.raw.setBreakpoints({
|
|
408
408
|
source: rawSource,
|
|
409
|
-
lines:
|
|
410
|
-
breakpoints:
|
|
409
|
+
lines: breakpointsToSend.map(bp => bp.sessionAgnosticData.lineNumber),
|
|
410
|
+
breakpoints: breakpointsToSend.map(bp => bp.toDAP()),
|
|
411
411
|
sourceModified
|
|
412
412
|
});
|
|
413
413
|
if (response?.body) {
|
|
@@ -420,11 +420,11 @@ let DebugSession = class DebugSession {
|
|
|
420
420
|
}
|
|
421
421
|
async sendFunctionBreakpoints(fbpts) {
|
|
422
422
|
if (!this.raw) {
|
|
423
|
-
throw ( new Error(( localize(
|
|
423
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "function breakpoints"))));
|
|
424
424
|
}
|
|
425
425
|
if (this.raw.readyForBreakpoints) {
|
|
426
426
|
const response = await this.raw.setFunctionBreakpoints({
|
|
427
|
-
breakpoints:
|
|
427
|
+
breakpoints: fbpts.map(bp => bp.toDAP())
|
|
428
428
|
});
|
|
429
429
|
if (response?.body) {
|
|
430
430
|
const data = ( new Map());
|
|
@@ -438,7 +438,7 @@ let DebugSession = class DebugSession {
|
|
|
438
438
|
async sendExceptionBreakpoints(exbpts) {
|
|
439
439
|
if (!this.raw) {
|
|
440
440
|
throw ( new Error(( localize(
|
|
441
|
-
|
|
441
|
+
13881,
|
|
442
442
|
"No debugger available, can not send '{0}'",
|
|
443
443
|
"exception breakpoints"
|
|
444
444
|
))));
|
|
@@ -446,7 +446,7 @@ let DebugSession = class DebugSession {
|
|
|
446
446
|
if (this.raw.readyForBreakpoints) {
|
|
447
447
|
const args = this.capabilities.supportsExceptionFilterOptions ? {
|
|
448
448
|
filters: [],
|
|
449
|
-
filterOptions:
|
|
449
|
+
filterOptions: exbpts.map(exb => {
|
|
450
450
|
if (exb.condition) {
|
|
451
451
|
return {
|
|
452
452
|
filterId: exb.filter,
|
|
@@ -456,9 +456,9 @@ let DebugSession = class DebugSession {
|
|
|
456
456
|
return {
|
|
457
457
|
filterId: exb.filter
|
|
458
458
|
};
|
|
459
|
-
})
|
|
459
|
+
})
|
|
460
460
|
} : {
|
|
461
|
-
filters:
|
|
461
|
+
filters: exbpts.map(exb => exb.filter)
|
|
462
462
|
};
|
|
463
463
|
const response = await this.raw.setExceptionBreakpoints(args);
|
|
464
464
|
if (response?.body && response.body.breakpoints) {
|
|
@@ -472,7 +472,7 @@ let DebugSession = class DebugSession {
|
|
|
472
472
|
}
|
|
473
473
|
dataBytesBreakpointInfo(address, bytes) {
|
|
474
474
|
if (this.raw?.capabilities.supportsDataBreakpointBytes === false) {
|
|
475
|
-
throw ( new Error(( localize(
|
|
475
|
+
throw ( new Error(( localize(13882, "Session does not support breakpoints with bytes"))));
|
|
476
476
|
}
|
|
477
477
|
return this._dataBreakpointInfo({
|
|
478
478
|
name: address,
|
|
@@ -490,23 +490,23 @@ let DebugSession = class DebugSession {
|
|
|
490
490
|
async _dataBreakpointInfo(args) {
|
|
491
491
|
if (!this.raw) {
|
|
492
492
|
throw ( new Error(( localize(
|
|
493
|
-
|
|
493
|
+
13881,
|
|
494
494
|
"No debugger available, can not send '{0}'",
|
|
495
495
|
"data breakpoints info"
|
|
496
496
|
))));
|
|
497
497
|
}
|
|
498
498
|
if (!this.raw.readyForBreakpoints) {
|
|
499
|
-
throw ( new Error(( localize(
|
|
499
|
+
throw ( new Error(( localize(13883, "Session is not ready for breakpoints"))));
|
|
500
500
|
}
|
|
501
501
|
const response = await this.raw.dataBreakpointInfo(args);
|
|
502
502
|
return response?.body;
|
|
503
503
|
}
|
|
504
504
|
async sendDataBreakpoints(dataBreakpoints) {
|
|
505
505
|
if (!this.raw) {
|
|
506
|
-
throw ( new Error(( localize(
|
|
506
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "data breakpoints"))));
|
|
507
507
|
}
|
|
508
508
|
if (this.raw.readyForBreakpoints) {
|
|
509
|
-
const converted = await Promise.all(
|
|
509
|
+
const converted = await Promise.all(dataBreakpoints.map(async bp => {
|
|
510
510
|
try {
|
|
511
511
|
const dap = await bp.toDAP(this);
|
|
512
512
|
return {
|
|
@@ -519,9 +519,9 @@ let DebugSession = class DebugSession {
|
|
|
519
519
|
message: e.message
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
|
-
}))
|
|
522
|
+
}));
|
|
523
523
|
const response = await this.raw.setDataBreakpoints({
|
|
524
|
-
breakpoints:
|
|
524
|
+
breakpoints: converted.map(d => d.dap).filter(isDefined)
|
|
525
525
|
});
|
|
526
526
|
if (response?.body) {
|
|
527
527
|
const data = ( new Map());
|
|
@@ -540,14 +540,14 @@ let DebugSession = class DebugSession {
|
|
|
540
540
|
async sendInstructionBreakpoints(instructionBreakpoints) {
|
|
541
541
|
if (!this.raw) {
|
|
542
542
|
throw ( new Error(( localize(
|
|
543
|
-
|
|
543
|
+
13881,
|
|
544
544
|
"No debugger available, can not send '{0}'",
|
|
545
545
|
"instruction breakpoints"
|
|
546
546
|
))));
|
|
547
547
|
}
|
|
548
548
|
if (this.raw.readyForBreakpoints) {
|
|
549
549
|
const response = await this.raw.setInstructionBreakpoints({
|
|
550
|
-
breakpoints:
|
|
550
|
+
breakpoints: instructionBreakpoints.map(ib => ib.toDAP())
|
|
551
551
|
});
|
|
552
552
|
if (response?.body) {
|
|
553
553
|
const data = ( new Map());
|
|
@@ -561,7 +561,7 @@ let DebugSession = class DebugSession {
|
|
|
561
561
|
async breakpointsLocations(uri, lineNumber) {
|
|
562
562
|
if (!this.raw) {
|
|
563
563
|
throw ( new Error(( localize(
|
|
564
|
-
|
|
564
|
+
13881,
|
|
565
565
|
"No debugger available, can not send '{0}'",
|
|
566
566
|
"breakpoints locations"
|
|
567
567
|
))));
|
|
@@ -574,10 +574,10 @@ let DebugSession = class DebugSession {
|
|
|
574
574
|
if (!response || !response.body || !response.body.breakpoints) {
|
|
575
575
|
return [];
|
|
576
576
|
}
|
|
577
|
-
const positions =
|
|
577
|
+
const positions = response.body.breakpoints.map(bp => ({
|
|
578
578
|
lineNumber: bp.line,
|
|
579
579
|
column: bp.column || 1
|
|
580
|
-
}))
|
|
580
|
+
}));
|
|
581
581
|
return distinct(positions, p => `${p.lineNumber}:${p.column}`);
|
|
582
582
|
}
|
|
583
583
|
getDebugProtocolBreakpoint(breakpointId) {
|
|
@@ -585,13 +585,13 @@ let DebugSession = class DebugSession {
|
|
|
585
585
|
}
|
|
586
586
|
customRequest(request, args) {
|
|
587
587
|
if (!this.raw) {
|
|
588
|
-
throw ( new Error(( localize(
|
|
588
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", request))));
|
|
589
589
|
}
|
|
590
590
|
return this.raw.custom(request, args);
|
|
591
591
|
}
|
|
592
592
|
stackTrace(threadId, startFrame, levels, token) {
|
|
593
593
|
if (!this.raw) {
|
|
594
|
-
throw ( new Error(( localize(
|
|
594
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "stackTrace"))));
|
|
595
595
|
}
|
|
596
596
|
const sessionToken = this.getNewCancellationToken(threadId, token);
|
|
597
597
|
return this.raw.stackTrace({
|
|
@@ -602,7 +602,7 @@ let DebugSession = class DebugSession {
|
|
|
602
602
|
}
|
|
603
603
|
async exceptionInfo(threadId) {
|
|
604
604
|
if (!this.raw) {
|
|
605
|
-
throw ( new Error(( localize(
|
|
605
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "exceptionInfo"))));
|
|
606
606
|
}
|
|
607
607
|
const response = await this.raw.exceptionInfo({
|
|
608
608
|
threadId
|
|
@@ -619,7 +619,7 @@ let DebugSession = class DebugSession {
|
|
|
619
619
|
}
|
|
620
620
|
scopes(frameId, threadId) {
|
|
621
621
|
if (!this.raw) {
|
|
622
|
-
throw ( new Error(( localize(
|
|
622
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "scopes"))));
|
|
623
623
|
}
|
|
624
624
|
const token = this.getNewCancellationToken(threadId);
|
|
625
625
|
return this.raw.scopes({
|
|
@@ -628,7 +628,7 @@ let DebugSession = class DebugSession {
|
|
|
628
628
|
}
|
|
629
629
|
variables(variablesReference, threadId, filter, start, count) {
|
|
630
630
|
if (!this.raw) {
|
|
631
|
-
throw ( new Error(( localize(
|
|
631
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "variables"))));
|
|
632
632
|
}
|
|
633
633
|
const token = threadId ? this.getNewCancellationToken(threadId) : undefined;
|
|
634
634
|
return this.raw.variables({
|
|
@@ -640,7 +640,7 @@ let DebugSession = class DebugSession {
|
|
|
640
640
|
}
|
|
641
641
|
evaluate(expression, frameId, context, location) {
|
|
642
642
|
if (!this.raw) {
|
|
643
|
-
throw ( new Error(( localize(
|
|
643
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "evaluate"))));
|
|
644
644
|
}
|
|
645
645
|
return this.raw.evaluate({
|
|
646
646
|
expression,
|
|
@@ -654,7 +654,7 @@ let DebugSession = class DebugSession {
|
|
|
654
654
|
async restartFrame(frameId, threadId) {
|
|
655
655
|
await this.waitForTriggeredBreakpoints();
|
|
656
656
|
if (!this.raw) {
|
|
657
|
-
throw ( new Error(( localize(
|
|
657
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "restartFrame"))));
|
|
658
658
|
}
|
|
659
659
|
await this.raw.restartFrame({
|
|
660
660
|
frameId
|
|
@@ -669,7 +669,7 @@ let DebugSession = class DebugSession {
|
|
|
669
669
|
async next(threadId, granularity) {
|
|
670
670
|
await this.waitForTriggeredBreakpoints();
|
|
671
671
|
if (!this.raw) {
|
|
672
|
-
throw ( new Error(( localize(
|
|
672
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "next"))));
|
|
673
673
|
}
|
|
674
674
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
675
675
|
await this.raw.next({
|
|
@@ -680,7 +680,7 @@ let DebugSession = class DebugSession {
|
|
|
680
680
|
async stepIn(threadId, targetId, granularity) {
|
|
681
681
|
await this.waitForTriggeredBreakpoints();
|
|
682
682
|
if (!this.raw) {
|
|
683
|
-
throw ( new Error(( localize(
|
|
683
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "stepIn"))));
|
|
684
684
|
}
|
|
685
685
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
686
686
|
await this.raw.stepIn({
|
|
@@ -692,7 +692,7 @@ let DebugSession = class DebugSession {
|
|
|
692
692
|
async stepOut(threadId, granularity) {
|
|
693
693
|
await this.waitForTriggeredBreakpoints();
|
|
694
694
|
if (!this.raw) {
|
|
695
|
-
throw ( new Error(( localize(
|
|
695
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "stepOut"))));
|
|
696
696
|
}
|
|
697
697
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
698
698
|
await this.raw.stepOut({
|
|
@@ -703,7 +703,7 @@ let DebugSession = class DebugSession {
|
|
|
703
703
|
async stepBack(threadId, granularity) {
|
|
704
704
|
await this.waitForTriggeredBreakpoints();
|
|
705
705
|
if (!this.raw) {
|
|
706
|
-
throw ( new Error(( localize(
|
|
706
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "stepBack"))));
|
|
707
707
|
}
|
|
708
708
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
709
709
|
await this.raw.stepBack({
|
|
@@ -714,7 +714,7 @@ let DebugSession = class DebugSession {
|
|
|
714
714
|
async continue(threadId) {
|
|
715
715
|
await this.waitForTriggeredBreakpoints();
|
|
716
716
|
if (!this.raw) {
|
|
717
|
-
throw ( new Error(( localize(
|
|
717
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "continue"))));
|
|
718
718
|
}
|
|
719
719
|
await this.raw.continue({
|
|
720
720
|
threadId
|
|
@@ -723,7 +723,7 @@ let DebugSession = class DebugSession {
|
|
|
723
723
|
async reverseContinue(threadId) {
|
|
724
724
|
await this.waitForTriggeredBreakpoints();
|
|
725
725
|
if (!this.raw) {
|
|
726
|
-
throw ( new Error(( localize(
|
|
726
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "reverse continue"))));
|
|
727
727
|
}
|
|
728
728
|
await this.raw.reverseContinue({
|
|
729
729
|
threadId
|
|
@@ -731,7 +731,7 @@ let DebugSession = class DebugSession {
|
|
|
731
731
|
}
|
|
732
732
|
async pause(threadId) {
|
|
733
733
|
if (!this.raw) {
|
|
734
|
-
throw ( new Error(( localize(
|
|
734
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "pause"))));
|
|
735
735
|
}
|
|
736
736
|
await this.raw.pause({
|
|
737
737
|
threadId
|
|
@@ -739,7 +739,7 @@ let DebugSession = class DebugSession {
|
|
|
739
739
|
}
|
|
740
740
|
async terminateThreads(threadIds) {
|
|
741
741
|
if (!this.raw) {
|
|
742
|
-
throw ( new Error(( localize(
|
|
742
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "terminateThreads"))));
|
|
743
743
|
}
|
|
744
744
|
await this.raw.terminateThreads({
|
|
745
745
|
threadIds
|
|
@@ -747,7 +747,7 @@ let DebugSession = class DebugSession {
|
|
|
747
747
|
}
|
|
748
748
|
setVariable(variablesReference, name, value) {
|
|
749
749
|
if (!this.raw) {
|
|
750
|
-
throw ( new Error(( localize(
|
|
750
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "setVariable"))));
|
|
751
751
|
}
|
|
752
752
|
return this.raw.setVariable({
|
|
753
753
|
variablesReference,
|
|
@@ -757,7 +757,7 @@ let DebugSession = class DebugSession {
|
|
|
757
757
|
}
|
|
758
758
|
setExpression(frameId, expression, value) {
|
|
759
759
|
if (!this.raw) {
|
|
760
|
-
throw ( new Error(( localize(
|
|
760
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "setExpression"))));
|
|
761
761
|
}
|
|
762
762
|
return this.raw.setExpression({
|
|
763
763
|
expression,
|
|
@@ -767,7 +767,7 @@ let DebugSession = class DebugSession {
|
|
|
767
767
|
}
|
|
768
768
|
gotoTargets(source, line, column) {
|
|
769
769
|
if (!this.raw) {
|
|
770
|
-
throw ( new Error(( localize(
|
|
770
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "gotoTargets"))));
|
|
771
771
|
}
|
|
772
772
|
return this.raw.gotoTargets({
|
|
773
773
|
source,
|
|
@@ -777,7 +777,7 @@ let DebugSession = class DebugSession {
|
|
|
777
777
|
}
|
|
778
778
|
goto(threadId, targetId) {
|
|
779
779
|
if (!this.raw) {
|
|
780
|
-
throw ( new Error(( localize(
|
|
780
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "goto"))));
|
|
781
781
|
}
|
|
782
782
|
return this.raw.goto({
|
|
783
783
|
threadId,
|
|
@@ -786,7 +786,7 @@ let DebugSession = class DebugSession {
|
|
|
786
786
|
}
|
|
787
787
|
loadSource(resource) {
|
|
788
788
|
if (!this.raw) {
|
|
789
|
-
return Promise.reject(( new Error(( localize(
|
|
789
|
+
return Promise.reject(( new Error(( localize(13881, "No debugger available, can not send '{0}'", "loadSource")))));
|
|
790
790
|
}
|
|
791
791
|
const source = this.getSourceForUri(resource);
|
|
792
792
|
let rawSource;
|
|
@@ -806,18 +806,18 @@ let DebugSession = class DebugSession {
|
|
|
806
806
|
}
|
|
807
807
|
async getLoadedSources() {
|
|
808
808
|
if (!this.raw) {
|
|
809
|
-
return Promise.reject(( new Error(( localize(
|
|
809
|
+
return Promise.reject(( new Error(( localize(13881, "No debugger available, can not send '{0}'", "getLoadedSources")))));
|
|
810
810
|
}
|
|
811
811
|
const response = await this.raw.loadedSources({});
|
|
812
812
|
if (response?.body && response.body.sources) {
|
|
813
|
-
return
|
|
813
|
+
return response.body.sources.map(src => this.getSource(src));
|
|
814
814
|
} else {
|
|
815
815
|
return [];
|
|
816
816
|
}
|
|
817
817
|
}
|
|
818
818
|
async completions(frameId, threadId, text, position, token) {
|
|
819
819
|
if (!this.raw) {
|
|
820
|
-
return Promise.reject(( new Error(( localize(
|
|
820
|
+
return Promise.reject(( new Error(( localize(13881, "No debugger available, can not send '{0}'", "completions")))));
|
|
821
821
|
}
|
|
822
822
|
const sessionCancelationToken = this.getNewCancellationToken(threadId, token);
|
|
823
823
|
return this.raw.completions({
|
|
@@ -829,7 +829,7 @@ let DebugSession = class DebugSession {
|
|
|
829
829
|
}
|
|
830
830
|
async stepInTargets(frameId) {
|
|
831
831
|
if (!this.raw) {
|
|
832
|
-
return Promise.reject(( new Error(( localize(
|
|
832
|
+
return Promise.reject(( new Error(( localize(13881, "No debugger available, can not send '{0}'", "stepInTargets")))));
|
|
833
833
|
}
|
|
834
834
|
const response = await this.raw.stepInTargets({
|
|
835
835
|
frameId
|
|
@@ -838,7 +838,7 @@ let DebugSession = class DebugSession {
|
|
|
838
838
|
}
|
|
839
839
|
async cancel(progressId) {
|
|
840
840
|
if (!this.raw) {
|
|
841
|
-
return Promise.reject(( new Error(( localize(
|
|
841
|
+
return Promise.reject(( new Error(( localize(13881, "No debugger available, can not send '{0}'", "cancel")))));
|
|
842
842
|
}
|
|
843
843
|
return this.raw.cancel({
|
|
844
844
|
progressId
|
|
@@ -846,7 +846,7 @@ let DebugSession = class DebugSession {
|
|
|
846
846
|
}
|
|
847
847
|
async disassemble(memoryReference, offset, instructionOffset, instructionCount) {
|
|
848
848
|
if (!this.raw) {
|
|
849
|
-
return Promise.reject(( new Error(( localize(
|
|
849
|
+
return Promise.reject(( new Error(( localize(13881, "No debugger available, can not send '{0}'", "disassemble")))));
|
|
850
850
|
}
|
|
851
851
|
const response = await this.raw.disassemble({
|
|
852
852
|
memoryReference,
|
|
@@ -859,7 +859,7 @@ let DebugSession = class DebugSession {
|
|
|
859
859
|
}
|
|
860
860
|
readMemory(memoryReference, offset, count) {
|
|
861
861
|
if (!this.raw) {
|
|
862
|
-
return Promise.reject(( new Error(( localize(
|
|
862
|
+
return Promise.reject(( new Error(( localize(13881, "No debugger available, can not send '{0}'", "readMemory")))));
|
|
863
863
|
}
|
|
864
864
|
return this.raw.readMemory({
|
|
865
865
|
count,
|
|
@@ -869,7 +869,7 @@ let DebugSession = class DebugSession {
|
|
|
869
869
|
}
|
|
870
870
|
writeMemory(memoryReference, offset, data, allowPartial) {
|
|
871
871
|
if (!this.raw) {
|
|
872
|
-
return Promise.reject(( new Error(( localize(
|
|
872
|
+
return Promise.reject(( new Error(( localize(13881, "No debugger available, can not send '{0}'", "disassemble")))));
|
|
873
873
|
}
|
|
874
874
|
return this.raw.writeMemory({
|
|
875
875
|
memoryReference,
|
|
@@ -880,13 +880,13 @@ let DebugSession = class DebugSession {
|
|
|
880
880
|
}
|
|
881
881
|
async resolveLocationReference(locationReference) {
|
|
882
882
|
if (!this.raw) {
|
|
883
|
-
throw ( new Error(( localize(
|
|
883
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "locations"))));
|
|
884
884
|
}
|
|
885
885
|
const location = await this.raw.locations({
|
|
886
886
|
locationReference
|
|
887
887
|
});
|
|
888
888
|
if (!location?.body) {
|
|
889
|
-
throw ( new Error(( localize(
|
|
889
|
+
throw ( new Error(( localize(13881, "No debugger available, can not send '{0}'", "locations"))));
|
|
890
890
|
}
|
|
891
891
|
const source = this.getSource(location.body.source);
|
|
892
892
|
return {
|
|
@@ -1000,7 +1000,7 @@ let DebugSession = class DebugSession {
|
|
|
1000
1000
|
return;
|
|
1001
1001
|
}
|
|
1002
1002
|
this.rawListeners.add(this.raw.onDidInitialize(async () => {
|
|
1003
|
-
status(this.configuration.noDebug ? ( localize(
|
|
1003
|
+
status(this.configuration.noDebug ? ( localize(13884, "Started running without debugging.")) : ( localize(13885, "Debugging started.")));
|
|
1004
1004
|
const sendConfigurationDone = async () => {
|
|
1005
1005
|
if (this.raw && this.raw.capabilities.supportsConfigurationDoneRequest) {
|
|
1006
1006
|
try {
|
|
@@ -1040,7 +1040,7 @@ let DebugSession = class DebugSession {
|
|
|
1040
1040
|
}
|
|
1041
1041
|
}));
|
|
1042
1042
|
this.rawListeners.add(this.raw.onDidTerminateDebugee(async event => {
|
|
1043
|
-
status(( localize(
|
|
1043
|
+
status(( localize(13886, "Debugging stopped.")));
|
|
1044
1044
|
if (event.body && event.body.restart) {
|
|
1045
1045
|
await this.debugService.restartSession(this, event.body.restart);
|
|
1046
1046
|
} else if (this.raw) {
|
|
@@ -1233,7 +1233,7 @@ let DebugSession = class DebugSession {
|
|
|
1233
1233
|
const details = this.stoppedDetails.slice();
|
|
1234
1234
|
this.stoppedDetails.length = 0;
|
|
1235
1235
|
if (details.length) {
|
|
1236
|
-
await Promise.all(
|
|
1236
|
+
await Promise.all(details.map(d => this.handleStop(d)));
|
|
1237
1237
|
} else if (!this.fetchThreadsScheduler.value.isScheduled()) {
|
|
1238
1238
|
this.fetchThreadsScheduler.value.schedule();
|
|
1239
1239
|
}
|
|
@@ -1486,7 +1486,7 @@ class ThreadStatusScheduler extends Disposable {
|
|
|
1486
1486
|
if (( cancelledWhileLookingUpThreads.has(undefined))) {
|
|
1487
1487
|
return;
|
|
1488
1488
|
}
|
|
1489
|
-
await Promise.all(
|
|
1489
|
+
await Promise.all(threadIds.map(threadId => {
|
|
1490
1490
|
if (( cancelledWhileLookingUpThreads.has(threadId))) {
|
|
1491
1491
|
return;
|
|
1492
1492
|
}
|
|
@@ -1494,7 +1494,7 @@ class ThreadStatusScheduler extends Disposable {
|
|
|
1494
1494
|
const cts = ( new CancellationTokenSource());
|
|
1495
1495
|
this.threadOps.set(threadId, cts);
|
|
1496
1496
|
return operation(threadId, cts.token);
|
|
1497
|
-
}))
|
|
1497
|
+
}));
|
|
1498
1498
|
}
|
|
1499
1499
|
cancel(threadIds) {
|
|
1500
1500
|
if (!threadIds) {
|
|
@@ -52,10 +52,10 @@ let DebugStatusContribution = class DebugStatusContribution {
|
|
|
52
52
|
text = (manager.getLaunches().length > 1 ? `${name} (${manager.selectedConfiguration.launch.name})` : name);
|
|
53
53
|
}
|
|
54
54
|
return {
|
|
55
|
-
name: ( localize(
|
|
55
|
+
name: ( localize(13890, "Debug")),
|
|
56
56
|
text: "$(debug-alt-small) " + text,
|
|
57
|
-
ariaLabel: ( localize(
|
|
58
|
-
tooltip: ( localize(
|
|
57
|
+
ariaLabel: ( localize(13891, "Debug: {0}", text)),
|
|
58
|
+
tooltip: ( localize(13892, "Select and Start Debug Configuration")),
|
|
59
59
|
command: "workbench.action.debug.selectandstart"
|
|
60
60
|
};
|
|
61
61
|
}
|
|
@@ -30,9 +30,9 @@ var TaskRunResult;
|
|
|
30
30
|
TaskRunResult[TaskRunResult["Success"] = 1] = "Success";
|
|
31
31
|
})(TaskRunResult || (TaskRunResult = {}));
|
|
32
32
|
const DEBUG_TASK_ERROR_CHOICE_KEY = "debug.taskerrorchoice";
|
|
33
|
-
const ABORT_LABEL = ( localize(
|
|
34
|
-
const DEBUG_ANYWAY_LABEL = ( localize(
|
|
35
|
-
const DEBUG_ANYWAY_LABEL_NO_MEMO = ( localize(
|
|
33
|
+
const ABORT_LABEL = ( localize(13893, "Abort"));
|
|
34
|
+
const DEBUG_ANYWAY_LABEL = ( localize(13894, "&&Debug Anyway"));
|
|
35
|
+
const DEBUG_ANYWAY_LABEL_NO_MEMO = ( localize(13895, "Debug Anyway"));
|
|
36
36
|
let DebugTaskRunner = class DebugTaskRunner {
|
|
37
37
|
constructor(
|
|
38
38
|
taskService,
|
|
@@ -85,12 +85,12 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
85
85
|
return Promise.resolve(TaskRunResult.Failure);
|
|
86
86
|
}
|
|
87
87
|
const taskLabel = typeof taskId === "string" ? taskId : taskId ? taskId.name : "";
|
|
88
|
-
const message = errorCount > 1 ? ( localize(
|
|
89
|
-
|
|
88
|
+
const message = errorCount > 1 ? ( localize(13896, "Errors exist after running preLaunchTask '{0}'.", taskLabel)) : errorCount === 1 ? ( localize(13897, "Error exists after running preLaunchTask '{0}'.", taskLabel)) : taskSummary && typeof taskSummary.exitCode === "number" ? ( localize(
|
|
89
|
+
13898,
|
|
90
90
|
"The preLaunchTask '{0}' terminated with exit code {1}.",
|
|
91
91
|
taskLabel,
|
|
92
92
|
taskSummary.exitCode
|
|
93
|
-
)) : ( localize(
|
|
93
|
+
)) : ( localize(13899, "The preLaunchTask '{0}' terminated.", taskLabel));
|
|
94
94
|
let DebugChoice;
|
|
95
95
|
(function(DebugChoice) {
|
|
96
96
|
DebugChoice[DebugChoice["DebugAnyway"] = 1] = "DebugAnyway";
|
|
@@ -107,7 +107,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
107
107
|
label: DEBUG_ANYWAY_LABEL,
|
|
108
108
|
run: () => DebugChoice.DebugAnyway
|
|
109
109
|
}, {
|
|
110
|
-
label: ( localize(
|
|
110
|
+
label: ( localize(13900, "&&Show Errors")),
|
|
111
111
|
run: () => DebugChoice.ShowErrors
|
|
112
112
|
}],
|
|
113
113
|
cancelButton: {
|
|
@@ -115,7 +115,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
115
115
|
run: () => DebugChoice.Cancel
|
|
116
116
|
},
|
|
117
117
|
checkbox: {
|
|
118
|
-
label: ( localize(
|
|
118
|
+
label: ( localize(13901, "Remember my choice in user settings"))
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
const debugAnyway = result === DebugChoice.DebugAnyway;
|
|
@@ -156,7 +156,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
156
156
|
type: Severity.Error,
|
|
157
157
|
message: err.message,
|
|
158
158
|
buttons: [{
|
|
159
|
-
label: ( localize(
|
|
159
|
+
label: ( localize(13894, "&&Debug Anyway")),
|
|
160
160
|
run: () => DebugChoice.DebugAnyway
|
|
161
161
|
}, {
|
|
162
162
|
label: taskConfigureAction.label,
|
|
@@ -166,7 +166,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
166
166
|
run: () => DebugChoice.Cancel
|
|
167
167
|
},
|
|
168
168
|
checkbox: {
|
|
169
|
-
label: ( localize(
|
|
169
|
+
label: ( localize(13902, "Remember my choice for this task"))
|
|
170
170
|
}
|
|
171
171
|
});
|
|
172
172
|
choice = result;
|
|
@@ -192,14 +192,14 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
192
192
|
}
|
|
193
193
|
if (!root) {
|
|
194
194
|
return Promise.reject(( new Error(( localize(
|
|
195
|
-
|
|
195
|
+
13903,
|
|
196
196
|
"Task '{0}' can not be referenced from a launch configuration that is in a different workspace folder.",
|
|
197
197
|
typeof taskId === "string" ? taskId : taskId.type
|
|
198
198
|
)))));
|
|
199
199
|
}
|
|
200
200
|
const task = await this.taskService.getTask(root, taskId);
|
|
201
201
|
if (!task) {
|
|
202
|
-
const errorMessage = typeof taskId === "string" ? ( localize(
|
|
202
|
+
const errorMessage = typeof taskId === "string" ? ( localize(13904, "Could not find the task '{0}'.", taskId)) : ( localize(13905, "Could not find the specified task."));
|
|
203
203
|
return Promise.reject(createErrorWithActions(errorMessage, [toAction({
|
|
204
204
|
id: DEBUG_CONFIGURE_COMMAND_ID,
|
|
205
205
|
label: DEBUG_CONFIGURE_LABEL,
|
|
@@ -263,7 +263,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
263
263
|
store.add(disposableTimeout(() => {
|
|
264
264
|
if (!taskStarted) {
|
|
265
265
|
const errorMessage = ( localize(
|
|
266
|
-
|
|
266
|
+
13906,
|
|
267
267
|
"The task '{0}' has not exited and doesn't have a 'problemMatcher' defined. Make sure to define a problem matcher for watch tasks.",
|
|
268
268
|
typeof taskId === "string" ? taskId : JSON.stringify(taskId)
|
|
269
269
|
));
|
|
@@ -277,14 +277,14 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
277
277
|
if (!hideSlowPreLaunchWarning) {
|
|
278
278
|
store.add(disposableTimeout(() => {
|
|
279
279
|
const message = ( localize(
|
|
280
|
-
|
|
280
|
+
13907,
|
|
281
281
|
"Waiting for preLaunchTask '{0}'...",
|
|
282
282
|
task.configurationProperties.name
|
|
283
283
|
));
|
|
284
284
|
const buttons = [DEBUG_ANYWAY_LABEL_NO_MEMO, ABORT_LABEL];
|
|
285
285
|
const canConfigure = task instanceof CustomTask || task instanceof ConfiguringTask;
|
|
286
286
|
if (canConfigure) {
|
|
287
|
-
buttons.splice(1, 0, ( localize(
|
|
287
|
+
buttons.splice(1, 0, ( localize(13908, "Configure Task")));
|
|
288
288
|
}
|
|
289
289
|
this.progressService.withProgress({
|
|
290
290
|
location: ProgressLocation.Notification,
|
|
@@ -51,7 +51,7 @@ import { FOCUS_SESSION_ID, STOP_ID, DISCONNECT_ID, CONTINUE_ID, CONTINUE_LABEL,
|
|
|
51
51
|
import { debugGripper, debugContinue, debugPause, debugStop, debugDisconnect, debugStepOver, debugStepInto, debugStepOut, debugRestart, debugStepBack, debugReverseContinue } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
52
52
|
import * as debugToolBar from './media/debugToolBar.css';
|
|
53
53
|
|
|
54
|
-
registerCss(debugToolBar);
|
|
54
|
+
registerCss(debugToolBar, 1);
|
|
55
55
|
const DEBUG_TOOLBAR_POSITION_KEY = "debug.actionswidgetposition";
|
|
56
56
|
const DEBUG_TOOLBAR_Y_KEY = "debug.actionswidgety";
|
|
57
57
|
let DebugToolBar = class DebugToolBar extends Themable {
|
|
@@ -329,7 +329,7 @@ function createDisconnectMenuItemAction(action, disposables, accessor, options)
|
|
|
329
329
|
if (!secondary.length) {
|
|
330
330
|
return undefined;
|
|
331
331
|
}
|
|
332
|
-
const dropdownAction = disposables.add(( new Action("notebook.moreRunActions", ( localize(
|
|
332
|
+
const dropdownAction = disposables.add(( new Action("notebook.moreRunActions", ( localize(13909, "More...")), "codicon-chevron-down", true)));
|
|
333
333
|
const item = instantiationService.createInstance(
|
|
334
334
|
DropdownWithPrimaryActionViewItem,
|
|
335
335
|
action,
|
|
@@ -433,8 +433,8 @@ registerDebugToolBarItem(
|
|
|
433
433
|
( CONTEXT_DEBUG_STATE.isEqualTo("stopped"))
|
|
434
434
|
);
|
|
435
435
|
registerDebugToolBarItem(RESTART_SESSION_ID, RESTART_LABEL, 60, debugRestart);
|
|
436
|
-
registerDebugToolBarItem(STEP_BACK_ID, ( localize(
|
|
437
|
-
registerDebugToolBarItem(REVERSE_CONTINUE_ID, ( localize(
|
|
436
|
+
registerDebugToolBarItem(STEP_BACK_ID, ( localize(13910, "Step Back")), 50, debugStepBack, CONTEXT_STEP_BACK_SUPPORTED, ( CONTEXT_DEBUG_STATE.isEqualTo("stopped")));
|
|
437
|
+
registerDebugToolBarItem(REVERSE_CONTINUE_ID, ( localize(13911, "Reverse")), 55, debugReverseContinue, CONTEXT_STEP_BACK_SUPPORTED, ( CONTEXT_DEBUG_STATE.isEqualTo("stopped")));
|
|
438
438
|
registerDebugToolBarItem(
|
|
439
439
|
FOCUS_SESSION_ID,
|
|
440
440
|
FOCUS_SESSION_LABEL,
|