@codingame/monaco-vscode-debug-service-override 36.2.6 → 37.0.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 +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +104 -104
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugChatIntegration.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +25 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +27 -20
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +54 -42
- 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 +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css +0 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css +1 -21
- 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/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 +11 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +43 -43
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +11 -11
- 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(11561, "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(11561, "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(11561, "No debugger available, can not send '{0}'", "breakpoints"))));
|
|
396
396
|
}
|
|
397
397
|
if (!this.raw.readyForBreakpoints) {
|
|
398
398
|
return Promise.resolve(undefined);
|
|
@@ -420,7 +420,7 @@ 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(11561, "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({
|
|
@@ -437,7 +437,11 @@ let DebugSession = class DebugSession {
|
|
|
437
437
|
}
|
|
438
438
|
async sendExceptionBreakpoints(exbpts) {
|
|
439
439
|
if (!this.raw) {
|
|
440
|
-
throw ( new Error(( localize(
|
|
440
|
+
throw ( new Error(( localize(
|
|
441
|
+
11561,
|
|
442
|
+
"No debugger available, can not send '{0}'",
|
|
443
|
+
"exception breakpoints"
|
|
444
|
+
))));
|
|
441
445
|
}
|
|
442
446
|
if (this.raw.readyForBreakpoints) {
|
|
443
447
|
const args = this.capabilities.supportsExceptionFilterOptions ? {
|
|
@@ -468,7 +472,7 @@ let DebugSession = class DebugSession {
|
|
|
468
472
|
}
|
|
469
473
|
dataBytesBreakpointInfo(address, bytes) {
|
|
470
474
|
if (this.raw?.capabilities.supportsDataBreakpointBytes === false) {
|
|
471
|
-
throw ( new Error(( localize(
|
|
475
|
+
throw ( new Error(( localize(11562, "Session does not support breakpoints with bytes"))));
|
|
472
476
|
}
|
|
473
477
|
return this._dataBreakpointInfo({
|
|
474
478
|
name: address,
|
|
@@ -485,17 +489,21 @@ let DebugSession = class DebugSession {
|
|
|
485
489
|
}
|
|
486
490
|
async _dataBreakpointInfo(args) {
|
|
487
491
|
if (!this.raw) {
|
|
488
|
-
throw ( new Error(( localize(
|
|
492
|
+
throw ( new Error(( localize(
|
|
493
|
+
11561,
|
|
494
|
+
"No debugger available, can not send '{0}'",
|
|
495
|
+
"data breakpoints info"
|
|
496
|
+
))));
|
|
489
497
|
}
|
|
490
498
|
if (!this.raw.readyForBreakpoints) {
|
|
491
|
-
throw ( new Error(( localize(
|
|
499
|
+
throw ( new Error(( localize(11563, "Session is not ready for breakpoints"))));
|
|
492
500
|
}
|
|
493
501
|
const response = await this.raw.dataBreakpointInfo(args);
|
|
494
502
|
return response?.body;
|
|
495
503
|
}
|
|
496
504
|
async sendDataBreakpoints(dataBreakpoints) {
|
|
497
505
|
if (!this.raw) {
|
|
498
|
-
throw ( new Error(( localize(
|
|
506
|
+
throw ( new Error(( localize(11561, "No debugger available, can not send '{0}'", "data breakpoints"))));
|
|
499
507
|
}
|
|
500
508
|
if (this.raw.readyForBreakpoints) {
|
|
501
509
|
const converted = await Promise.all(( dataBreakpoints.map(async bp => {
|
|
@@ -532,7 +540,7 @@ let DebugSession = class DebugSession {
|
|
|
532
540
|
async sendInstructionBreakpoints(instructionBreakpoints) {
|
|
533
541
|
if (!this.raw) {
|
|
534
542
|
throw ( new Error(( localize(
|
|
535
|
-
|
|
543
|
+
11561,
|
|
536
544
|
"No debugger available, can not send '{0}'",
|
|
537
545
|
"instruction breakpoints"
|
|
538
546
|
))));
|
|
@@ -552,7 +560,11 @@ let DebugSession = class DebugSession {
|
|
|
552
560
|
}
|
|
553
561
|
async breakpointsLocations(uri, lineNumber) {
|
|
554
562
|
if (!this.raw) {
|
|
555
|
-
throw ( new Error(( localize(
|
|
563
|
+
throw ( new Error(( localize(
|
|
564
|
+
11561,
|
|
565
|
+
"No debugger available, can not send '{0}'",
|
|
566
|
+
"breakpoints locations"
|
|
567
|
+
))));
|
|
556
568
|
}
|
|
557
569
|
const source = this.getRawSource(uri);
|
|
558
570
|
const response = await this.raw.breakpointLocations({
|
|
@@ -573,13 +585,13 @@ let DebugSession = class DebugSession {
|
|
|
573
585
|
}
|
|
574
586
|
customRequest(request, args) {
|
|
575
587
|
if (!this.raw) {
|
|
576
|
-
throw ( new Error(( localize(
|
|
588
|
+
throw ( new Error(( localize(11561, "No debugger available, can not send '{0}'", request))));
|
|
577
589
|
}
|
|
578
590
|
return this.raw.custom(request, args);
|
|
579
591
|
}
|
|
580
592
|
stackTrace(threadId, startFrame, levels, token) {
|
|
581
593
|
if (!this.raw) {
|
|
582
|
-
throw ( new Error(( localize(
|
|
594
|
+
throw ( new Error(( localize(11561, "No debugger available, can not send '{0}'", "stackTrace"))));
|
|
583
595
|
}
|
|
584
596
|
const sessionToken = this.getNewCancellationToken(threadId, token);
|
|
585
597
|
return this.raw.stackTrace({
|
|
@@ -590,7 +602,7 @@ let DebugSession = class DebugSession {
|
|
|
590
602
|
}
|
|
591
603
|
async exceptionInfo(threadId) {
|
|
592
604
|
if (!this.raw) {
|
|
593
|
-
throw ( new Error(( localize(
|
|
605
|
+
throw ( new Error(( localize(11561, "No debugger available, can not send '{0}'", "exceptionInfo"))));
|
|
594
606
|
}
|
|
595
607
|
const response = await this.raw.exceptionInfo({
|
|
596
608
|
threadId
|
|
@@ -607,7 +619,7 @@ let DebugSession = class DebugSession {
|
|
|
607
619
|
}
|
|
608
620
|
scopes(frameId, threadId) {
|
|
609
621
|
if (!this.raw) {
|
|
610
|
-
throw ( new Error(( localize(
|
|
622
|
+
throw ( new Error(( localize(11561, "No debugger available, can not send '{0}'", "scopes"))));
|
|
611
623
|
}
|
|
612
624
|
const token = this.getNewCancellationToken(threadId);
|
|
613
625
|
return this.raw.scopes({
|
|
@@ -616,7 +628,7 @@ let DebugSession = class DebugSession {
|
|
|
616
628
|
}
|
|
617
629
|
variables(variablesReference, threadId, filter, start, count) {
|
|
618
630
|
if (!this.raw) {
|
|
619
|
-
throw ( new Error(( localize(
|
|
631
|
+
throw ( new Error(( localize(11561, "No debugger available, can not send '{0}'", "variables"))));
|
|
620
632
|
}
|
|
621
633
|
const token = threadId ? this.getNewCancellationToken(threadId) : undefined;
|
|
622
634
|
return this.raw.variables({
|
|
@@ -628,7 +640,7 @@ let DebugSession = class DebugSession {
|
|
|
628
640
|
}
|
|
629
641
|
evaluate(expression, frameId, context, location) {
|
|
630
642
|
if (!this.raw) {
|
|
631
|
-
throw ( new Error(( localize(
|
|
643
|
+
throw ( new Error(( localize(11561, "No debugger available, can not send '{0}'", "evaluate"))));
|
|
632
644
|
}
|
|
633
645
|
return this.raw.evaluate({
|
|
634
646
|
expression,
|
|
@@ -642,7 +654,7 @@ let DebugSession = class DebugSession {
|
|
|
642
654
|
async restartFrame(frameId, threadId) {
|
|
643
655
|
await this.waitForTriggeredBreakpoints();
|
|
644
656
|
if (!this.raw) {
|
|
645
|
-
throw ( new Error(( localize(
|
|
657
|
+
throw ( new Error(( localize(11561, "No debugger available, can not send '{0}'", "restartFrame"))));
|
|
646
658
|
}
|
|
647
659
|
await this.raw.restartFrame({
|
|
648
660
|
frameId
|
|
@@ -657,7 +669,7 @@ let DebugSession = class DebugSession {
|
|
|
657
669
|
async next(threadId, granularity) {
|
|
658
670
|
await this.waitForTriggeredBreakpoints();
|
|
659
671
|
if (!this.raw) {
|
|
660
|
-
throw ( new Error(( localize(
|
|
672
|
+
throw ( new Error(( localize(11561, "No debugger available, can not send '{0}'", "next"))));
|
|
661
673
|
}
|
|
662
674
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
663
675
|
await this.raw.next({
|
|
@@ -668,7 +680,7 @@ let DebugSession = class DebugSession {
|
|
|
668
680
|
async stepIn(threadId, targetId, granularity) {
|
|
669
681
|
await this.waitForTriggeredBreakpoints();
|
|
670
682
|
if (!this.raw) {
|
|
671
|
-
throw ( new Error(( localize(
|
|
683
|
+
throw ( new Error(( localize(11561, "No debugger available, can not send '{0}'", "stepIn"))));
|
|
672
684
|
}
|
|
673
685
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
674
686
|
await this.raw.stepIn({
|
|
@@ -680,7 +692,7 @@ let DebugSession = class DebugSession {
|
|
|
680
692
|
async stepOut(threadId, granularity) {
|
|
681
693
|
await this.waitForTriggeredBreakpoints();
|
|
682
694
|
if (!this.raw) {
|
|
683
|
-
throw ( new Error(( localize(
|
|
695
|
+
throw ( new Error(( localize(11561, "No debugger available, can not send '{0}'", "stepOut"))));
|
|
684
696
|
}
|
|
685
697
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
686
698
|
await this.raw.stepOut({
|
|
@@ -691,7 +703,7 @@ let DebugSession = class DebugSession {
|
|
|
691
703
|
async stepBack(threadId, granularity) {
|
|
692
704
|
await this.waitForTriggeredBreakpoints();
|
|
693
705
|
if (!this.raw) {
|
|
694
|
-
throw ( new Error(( localize(
|
|
706
|
+
throw ( new Error(( localize(11561, "No debugger available, can not send '{0}'", "stepBack"))));
|
|
695
707
|
}
|
|
696
708
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
697
709
|
await this.raw.stepBack({
|
|
@@ -702,7 +714,7 @@ let DebugSession = class DebugSession {
|
|
|
702
714
|
async continue(threadId) {
|
|
703
715
|
await this.waitForTriggeredBreakpoints();
|
|
704
716
|
if (!this.raw) {
|
|
705
|
-
throw ( new Error(( localize(
|
|
717
|
+
throw ( new Error(( localize(11561, "No debugger available, can not send '{0}'", "continue"))));
|
|
706
718
|
}
|
|
707
719
|
await this.raw.continue({
|
|
708
720
|
threadId
|
|
@@ -711,7 +723,7 @@ let DebugSession = class DebugSession {
|
|
|
711
723
|
async reverseContinue(threadId) {
|
|
712
724
|
await this.waitForTriggeredBreakpoints();
|
|
713
725
|
if (!this.raw) {
|
|
714
|
-
throw ( new Error(( localize(
|
|
726
|
+
throw ( new Error(( localize(11561, "No debugger available, can not send '{0}'", "reverse continue"))));
|
|
715
727
|
}
|
|
716
728
|
await this.raw.reverseContinue({
|
|
717
729
|
threadId
|
|
@@ -719,7 +731,7 @@ let DebugSession = class DebugSession {
|
|
|
719
731
|
}
|
|
720
732
|
async pause(threadId) {
|
|
721
733
|
if (!this.raw) {
|
|
722
|
-
throw ( new Error(( localize(
|
|
734
|
+
throw ( new Error(( localize(11561, "No debugger available, can not send '{0}'", "pause"))));
|
|
723
735
|
}
|
|
724
736
|
await this.raw.pause({
|
|
725
737
|
threadId
|
|
@@ -727,7 +739,7 @@ let DebugSession = class DebugSession {
|
|
|
727
739
|
}
|
|
728
740
|
async terminateThreads(threadIds) {
|
|
729
741
|
if (!this.raw) {
|
|
730
|
-
throw ( new Error(( localize(
|
|
742
|
+
throw ( new Error(( localize(11561, "No debugger available, can not send '{0}'", "terminateThreads"))));
|
|
731
743
|
}
|
|
732
744
|
await this.raw.terminateThreads({
|
|
733
745
|
threadIds
|
|
@@ -735,7 +747,7 @@ let DebugSession = class DebugSession {
|
|
|
735
747
|
}
|
|
736
748
|
setVariable(variablesReference, name, value) {
|
|
737
749
|
if (!this.raw) {
|
|
738
|
-
throw ( new Error(( localize(
|
|
750
|
+
throw ( new Error(( localize(11561, "No debugger available, can not send '{0}'", "setVariable"))));
|
|
739
751
|
}
|
|
740
752
|
return this.raw.setVariable({
|
|
741
753
|
variablesReference,
|
|
@@ -745,7 +757,7 @@ let DebugSession = class DebugSession {
|
|
|
745
757
|
}
|
|
746
758
|
setExpression(frameId, expression, value) {
|
|
747
759
|
if (!this.raw) {
|
|
748
|
-
throw ( new Error(( localize(
|
|
760
|
+
throw ( new Error(( localize(11561, "No debugger available, can not send '{0}'", "setExpression"))));
|
|
749
761
|
}
|
|
750
762
|
return this.raw.setExpression({
|
|
751
763
|
expression,
|
|
@@ -755,7 +767,7 @@ let DebugSession = class DebugSession {
|
|
|
755
767
|
}
|
|
756
768
|
gotoTargets(source, line, column) {
|
|
757
769
|
if (!this.raw) {
|
|
758
|
-
throw ( new Error(( localize(
|
|
770
|
+
throw ( new Error(( localize(11561, "No debugger available, can not send '{0}'", "gotoTargets"))));
|
|
759
771
|
}
|
|
760
772
|
return this.raw.gotoTargets({
|
|
761
773
|
source,
|
|
@@ -765,7 +777,7 @@ let DebugSession = class DebugSession {
|
|
|
765
777
|
}
|
|
766
778
|
goto(threadId, targetId) {
|
|
767
779
|
if (!this.raw) {
|
|
768
|
-
throw ( new Error(( localize(
|
|
780
|
+
throw ( new Error(( localize(11561, "No debugger available, can not send '{0}'", "goto"))));
|
|
769
781
|
}
|
|
770
782
|
return this.raw.goto({
|
|
771
783
|
threadId,
|
|
@@ -774,7 +786,7 @@ let DebugSession = class DebugSession {
|
|
|
774
786
|
}
|
|
775
787
|
loadSource(resource) {
|
|
776
788
|
if (!this.raw) {
|
|
777
|
-
return Promise.reject(( new Error(( localize(
|
|
789
|
+
return Promise.reject(( new Error(( localize(11561, "No debugger available, can not send '{0}'", "loadSource")))));
|
|
778
790
|
}
|
|
779
791
|
const source = this.getSourceForUri(resource);
|
|
780
792
|
let rawSource;
|
|
@@ -794,7 +806,7 @@ let DebugSession = class DebugSession {
|
|
|
794
806
|
}
|
|
795
807
|
async getLoadedSources() {
|
|
796
808
|
if (!this.raw) {
|
|
797
|
-
return Promise.reject(( new Error(( localize(
|
|
809
|
+
return Promise.reject(( new Error(( localize(11561, "No debugger available, can not send '{0}'", "getLoadedSources")))));
|
|
798
810
|
}
|
|
799
811
|
const response = await this.raw.loadedSources({});
|
|
800
812
|
if (response?.body && response.body.sources) {
|
|
@@ -805,7 +817,7 @@ let DebugSession = class DebugSession {
|
|
|
805
817
|
}
|
|
806
818
|
async completions(frameId, threadId, text, position, token) {
|
|
807
819
|
if (!this.raw) {
|
|
808
|
-
return Promise.reject(( new Error(( localize(
|
|
820
|
+
return Promise.reject(( new Error(( localize(11561, "No debugger available, can not send '{0}'", "completions")))));
|
|
809
821
|
}
|
|
810
822
|
const sessionCancelationToken = this.getNewCancellationToken(threadId, token);
|
|
811
823
|
return this.raw.completions({
|
|
@@ -817,7 +829,7 @@ let DebugSession = class DebugSession {
|
|
|
817
829
|
}
|
|
818
830
|
async stepInTargets(frameId) {
|
|
819
831
|
if (!this.raw) {
|
|
820
|
-
return Promise.reject(( new Error(( localize(
|
|
832
|
+
return Promise.reject(( new Error(( localize(11561, "No debugger available, can not send '{0}'", "stepInTargets")))));
|
|
821
833
|
}
|
|
822
834
|
const response = await this.raw.stepInTargets({
|
|
823
835
|
frameId
|
|
@@ -826,7 +838,7 @@ let DebugSession = class DebugSession {
|
|
|
826
838
|
}
|
|
827
839
|
async cancel(progressId) {
|
|
828
840
|
if (!this.raw) {
|
|
829
|
-
return Promise.reject(( new Error(( localize(
|
|
841
|
+
return Promise.reject(( new Error(( localize(11561, "No debugger available, can not send '{0}'", "cancel")))));
|
|
830
842
|
}
|
|
831
843
|
return this.raw.cancel({
|
|
832
844
|
progressId
|
|
@@ -834,7 +846,7 @@ let DebugSession = class DebugSession {
|
|
|
834
846
|
}
|
|
835
847
|
async disassemble(memoryReference, offset, instructionOffset, instructionCount) {
|
|
836
848
|
if (!this.raw) {
|
|
837
|
-
return Promise.reject(( new Error(( localize(
|
|
849
|
+
return Promise.reject(( new Error(( localize(11561, "No debugger available, can not send '{0}'", "disassemble")))));
|
|
838
850
|
}
|
|
839
851
|
const response = await this.raw.disassemble({
|
|
840
852
|
memoryReference,
|
|
@@ -847,7 +859,7 @@ let DebugSession = class DebugSession {
|
|
|
847
859
|
}
|
|
848
860
|
readMemory(memoryReference, offset, count) {
|
|
849
861
|
if (!this.raw) {
|
|
850
|
-
return Promise.reject(( new Error(( localize(
|
|
862
|
+
return Promise.reject(( new Error(( localize(11561, "No debugger available, can not send '{0}'", "readMemory")))));
|
|
851
863
|
}
|
|
852
864
|
return this.raw.readMemory({
|
|
853
865
|
count,
|
|
@@ -857,7 +869,7 @@ let DebugSession = class DebugSession {
|
|
|
857
869
|
}
|
|
858
870
|
writeMemory(memoryReference, offset, data, allowPartial) {
|
|
859
871
|
if (!this.raw) {
|
|
860
|
-
return Promise.reject(( new Error(( localize(
|
|
872
|
+
return Promise.reject(( new Error(( localize(11561, "No debugger available, can not send '{0}'", "disassemble")))));
|
|
861
873
|
}
|
|
862
874
|
return this.raw.writeMemory({
|
|
863
875
|
memoryReference,
|
|
@@ -868,13 +880,13 @@ let DebugSession = class DebugSession {
|
|
|
868
880
|
}
|
|
869
881
|
async resolveLocationReference(locationReference) {
|
|
870
882
|
if (!this.raw) {
|
|
871
|
-
throw ( new Error(( localize(
|
|
883
|
+
throw ( new Error(( localize(11561, "No debugger available, can not send '{0}'", "locations"))));
|
|
872
884
|
}
|
|
873
885
|
const location = await this.raw.locations({
|
|
874
886
|
locationReference
|
|
875
887
|
});
|
|
876
888
|
if (!location?.body) {
|
|
877
|
-
throw ( new Error(( localize(
|
|
889
|
+
throw ( new Error(( localize(11561, "No debugger available, can not send '{0}'", "locations"))));
|
|
878
890
|
}
|
|
879
891
|
const source = this.getSource(location.body.source);
|
|
880
892
|
return {
|
|
@@ -988,7 +1000,7 @@ let DebugSession = class DebugSession {
|
|
|
988
1000
|
return;
|
|
989
1001
|
}
|
|
990
1002
|
this.rawListeners.add(this.raw.onDidInitialize(async () => {
|
|
991
|
-
status(this.configuration.noDebug ? ( localize(
|
|
1003
|
+
status(this.configuration.noDebug ? ( localize(11564, "Started running without debugging.")) : ( localize(11565, "Debugging started.")));
|
|
992
1004
|
const sendConfigurationDone = async () => {
|
|
993
1005
|
if (this.raw && this.raw.capabilities.supportsConfigurationDoneRequest) {
|
|
994
1006
|
try {
|
|
@@ -1028,7 +1040,7 @@ let DebugSession = class DebugSession {
|
|
|
1028
1040
|
}
|
|
1029
1041
|
}));
|
|
1030
1042
|
this.rawListeners.add(this.raw.onDidTerminateDebugee(async event => {
|
|
1031
|
-
status(( localize(
|
|
1043
|
+
status(( localize(11566, "Debugging stopped.")));
|
|
1032
1044
|
if (event.body && event.body.restart) {
|
|
1033
1045
|
await this.debugService.restartSession(this, event.body.restart);
|
|
1034
1046
|
} else if (this.raw) {
|
|
@@ -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(11570, "Debug")),
|
|
56
56
|
text: "$(debug-alt-small) " + text,
|
|
57
|
-
ariaLabel: ( localize(
|
|
58
|
-
tooltip: ( localize(
|
|
57
|
+
ariaLabel: ( localize(11571, "Debug: {0}", text)),
|
|
58
|
+
tooltip: ( localize(11572, "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(11573, "Abort"));
|
|
34
|
+
const DEBUG_ANYWAY_LABEL = ( localize(11574, "&&Debug Anyway"));
|
|
35
|
+
const DEBUG_ANYWAY_LABEL_NO_MEMO = ( localize(11575, "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(11576, "Errors exist after running preLaunchTask '{0}'.", taskLabel)) : errorCount === 1 ? ( localize(11577, "Error exists after running preLaunchTask '{0}'.", taskLabel)) : taskSummary && typeof taskSummary.exitCode === "number" ? ( localize(
|
|
89
|
+
11578,
|
|
90
90
|
"The preLaunchTask '{0}' terminated with exit code {1}.",
|
|
91
91
|
taskLabel,
|
|
92
92
|
taskSummary.exitCode
|
|
93
|
-
)) : ( localize(
|
|
93
|
+
)) : ( localize(11579, "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(11580, "&&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(11581, "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(11574, "&&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(11582, "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
|
+
11583,
|
|
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(11584, "Could not find the task '{0}'.", taskId)) : ( localize(11585, "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
|
+
11586,
|
|
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
|
+
11587,
|
|
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(11588, "Configure Task")));
|
|
288
288
|
}
|
|
289
289
|
this.progressService.withProgress({
|
|
290
290
|
location: ProgressLocation.Notification,
|
|
@@ -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(11589, "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(11590, "Step Back")), 50, debugStepBack, CONTEXT_STEP_BACK_SUPPORTED, ( CONTEXT_DEBUG_STATE.isEqualTo("stopped")));
|
|
437
|
+
registerDebugToolBarItem(REVERSE_CONTINUE_ID, ( localize(11591, "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,
|
|
@@ -183,10 +183,10 @@ registerAction2(class extends Action2 {
|
|
|
183
183
|
title: {
|
|
184
184
|
value: DEBUG_CONFIGURE_LABEL,
|
|
185
185
|
original: "Open 'launch.json'",
|
|
186
|
-
mnemonicTitle: ( localize(
|
|
186
|
+
mnemonicTitle: ( localize(11592, "Open &&Configurations"))
|
|
187
187
|
},
|
|
188
188
|
metadata: {
|
|
189
|
-
description: ( localize2(
|
|
189
|
+
description: ( localize2(11593, "Opens the file used to configure how your program is debugged"))
|
|
190
190
|
},
|
|
191
191
|
f1: true,
|
|
192
192
|
icon: debugConfigure,
|
|
@@ -227,7 +227,7 @@ registerAction2(class extends Action2 {
|
|
|
227
227
|
const picked = await quickInputService.pick(picks, {
|
|
228
228
|
activeItem: picks[0],
|
|
229
229
|
placeHolder: ( localize(
|
|
230
|
-
|
|
230
|
+
11594,
|
|
231
231
|
"Select a workspace folder to create a launch.json file in or add it to the workspace config file"
|
|
232
232
|
))
|
|
233
233
|
});
|
|
@@ -255,7 +255,7 @@ registerAction2(class extends Action2 {
|
|
|
255
255
|
constructor() {
|
|
256
256
|
super({
|
|
257
257
|
id: "debug.toggleReplIgnoreFocus",
|
|
258
|
-
title: ( localize(
|
|
258
|
+
title: ( localize(11595, "Debug Console")),
|
|
259
259
|
toggled: ( ContextKeyExpr.has(`view.${REPL_VIEW_ID}.visible`)),
|
|
260
260
|
menu: [{
|
|
261
261
|
id: ViewsSubMenu,
|
|
@@ -279,7 +279,7 @@ MenuRegistry.appendMenuItem(MenuId.ViewContainerTitle, {
|
|
|
279
279
|
order: 10,
|
|
280
280
|
command: {
|
|
281
281
|
id: SELECT_AND_START_ID,
|
|
282
|
-
title: ( localize(
|
|
282
|
+
title: ( localize(11596, "Start Additional Session"))
|
|
283
283
|
}
|
|
284
284
|
});
|
|
285
285
|
|
|
@@ -64,7 +64,7 @@ const disassemblyNotAvailable = {
|
|
|
64
64
|
address: 0n,
|
|
65
65
|
instruction: {
|
|
66
66
|
address: "-1",
|
|
67
|
-
instruction: ( localize(
|
|
67
|
+
instruction: ( localize(11597, "Disassembly not available."))
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
let DisassemblyView = class DisassemblyView extends EditorPane {
|
|
@@ -205,7 +205,7 @@ let DisassemblyView = class DisassemblyView extends EditorPane {
|
|
|
205
205
|
return row;
|
|
206
206
|
}
|
|
207
207
|
}, {
|
|
208
|
-
label: ( localize(
|
|
208
|
+
label: ( localize(11598, "instructions")),
|
|
209
209
|
tooltip: "",
|
|
210
210
|
weight: 0.3,
|
|
211
211
|
templateId: InstructionRenderer.TEMPLATE_ID,
|
|
@@ -825,7 +825,7 @@ let InstructionRenderer = class InstructionRenderer extends Disposable {
|
|
|
825
825
|
};
|
|
826
826
|
this.editorService.openEditor({
|
|
827
827
|
resource: sourceURI,
|
|
828
|
-
description: ( localize(
|
|
828
|
+
description: ( localize(11599, "from disassembly")),
|
|
829
829
|
options: {
|
|
830
830
|
preserveFocus: false,
|
|
831
831
|
selection: selection,
|
|
@@ -860,18 +860,18 @@ let InstructionRenderer = class InstructionRenderer extends Disposable {
|
|
|
860
860
|
InstructionRenderer = InstructionRenderer_1 = ( __decorate([( __param(1, IThemeService)), ( __param(2, IEditorService)), ( __param(3, ITextModelService)), ( __param(4, IUriIdentityService)), ( __param(5, ILogService))], InstructionRenderer));
|
|
861
861
|
class AccessibilityProvider {
|
|
862
862
|
getWidgetAriaLabel() {
|
|
863
|
-
return localize(
|
|
863
|
+
return localize(11600, "Disassembly View");
|
|
864
864
|
}
|
|
865
865
|
getAriaLabel(element) {
|
|
866
866
|
let label = "";
|
|
867
867
|
const instruction = element.instruction;
|
|
868
868
|
if (instruction.address !== "-1") {
|
|
869
|
-
label += `${( localize(
|
|
869
|
+
label += `${( localize(11601, "Address"))}: ${instruction.address}`;
|
|
870
870
|
}
|
|
871
871
|
if (instruction.instructionBytes) {
|
|
872
|
-
label += `, ${( localize(
|
|
872
|
+
label += `, ${( localize(11602, "Bytes"))}: ${instruction.instructionBytes}`;
|
|
873
873
|
}
|
|
874
|
-
label += `, ${( localize(
|
|
874
|
+
label += `, ${( localize(11603, "Instruction"))}: ${instruction.instruction}`;
|
|
875
875
|
return label;
|
|
876
876
|
}
|
|
877
877
|
}
|
|
@@ -606,7 +606,7 @@ class LoadedScriptsRenderer {
|
|
|
606
606
|
if (element instanceof RootFolderTreeItem) {
|
|
607
607
|
options.fileKind = FileKind.ROOT_FOLDER;
|
|
608
608
|
} else if (element instanceof SessionTreeItem) {
|
|
609
|
-
options.title = ( localize(
|
|
609
|
+
options.title = ( localize(11616, "Debug Session"));
|
|
610
610
|
options.hideIcon = true;
|
|
611
611
|
} else if (element instanceof BaseTreeItem) {
|
|
612
612
|
const src = element.getSource();
|
|
@@ -626,19 +626,19 @@ class LoadedScriptsRenderer {
|
|
|
626
626
|
}
|
|
627
627
|
class LoadedSciptsAccessibilityProvider {
|
|
628
628
|
getWidgetAriaLabel() {
|
|
629
|
-
return localize(
|
|
629
|
+
return localize(11617, "Debug Loaded Scripts");
|
|
630
630
|
}
|
|
631
631
|
getAriaLabel(element) {
|
|
632
632
|
if (element instanceof RootFolderTreeItem) {
|
|
633
|
-
return localize(
|
|
633
|
+
return localize(11618, "Workspace folder {0}, loaded script, debug", element.getLabel());
|
|
634
634
|
}
|
|
635
635
|
if (element instanceof SessionTreeItem) {
|
|
636
|
-
return localize(
|
|
636
|
+
return localize(11619, "Session {0}, loaded script, debug", element.getLabel());
|
|
637
637
|
}
|
|
638
638
|
if (element.hasChildren()) {
|
|
639
|
-
return localize(
|
|
639
|
+
return localize(11620, "Folder {0}, loaded script, debug", element.getLabel());
|
|
640
640
|
} else {
|
|
641
|
-
return localize(
|
|
641
|
+
return localize(11621, "{0}, loaded script, debug", element.getLabel());
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
644
|
}
|
|
@@ -665,7 +665,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
665
665
|
super({
|
|
666
666
|
id: "loadedScripts.collapse",
|
|
667
667
|
viewId: LOADED_SCRIPTS_VIEW_ID,
|
|
668
|
-
title: ( localize(
|
|
668
|
+
title: ( localize(11622, "Collapse All")),
|
|
669
669
|
f1: false,
|
|
670
670
|
icon: Codicon.collapseAll,
|
|
671
671
|
menu: {
|