@codingame/monaco-vscode-debug-service-override 37.3.3 → 37.3.4
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 +21 -21
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +42 -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/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/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(14000, "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(14000, "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(14000, "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(14000, "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({
|
|
@@ -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
|
+
14000,
|
|
442
442
|
"No debugger available, can not send '{0}'",
|
|
443
443
|
"exception breakpoints"
|
|
444
444
|
))));
|
|
@@ -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(14001, "Session does not support breakpoints with bytes"))));
|
|
476
476
|
}
|
|
477
477
|
return this._dataBreakpointInfo({
|
|
478
478
|
name: address,
|
|
@@ -490,20 +490,20 @@ let DebugSession = class DebugSession {
|
|
|
490
490
|
async _dataBreakpointInfo(args) {
|
|
491
491
|
if (!this.raw) {
|
|
492
492
|
throw ( new Error(( localize(
|
|
493
|
-
|
|
493
|
+
14000,
|
|
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(14002, "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(14000, "No debugger available, can not send '{0}'", "data breakpoints"))));
|
|
507
507
|
}
|
|
508
508
|
if (this.raw.readyForBreakpoints) {
|
|
509
509
|
const converted = await Promise.all(dataBreakpoints.map(async bp => {
|
|
@@ -540,7 +540,7 @@ let DebugSession = class DebugSession {
|
|
|
540
540
|
async sendInstructionBreakpoints(instructionBreakpoints) {
|
|
541
541
|
if (!this.raw) {
|
|
542
542
|
throw ( new Error(( localize(
|
|
543
|
-
|
|
543
|
+
14000,
|
|
544
544
|
"No debugger available, can not send '{0}'",
|
|
545
545
|
"instruction breakpoints"
|
|
546
546
|
))));
|
|
@@ -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
|
+
14000,
|
|
565
565
|
"No debugger available, can not send '{0}'",
|
|
566
566
|
"breakpoints locations"
|
|
567
567
|
))));
|
|
@@ -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(14000, "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(14000, "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(14000, "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(14000, "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(14000, "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(14000, "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(14000, "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(14000, "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(14000, "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(14000, "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(14000, "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(14000, "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(14000, "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(14000, "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(14000, "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(14000, "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(14000, "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(14000, "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(14000, "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(14000, "No debugger available, can not send '{0}'", "loadSource")))));
|
|
790
790
|
}
|
|
791
791
|
const source = this.getSourceForUri(resource);
|
|
792
792
|
let rawSource;
|
|
@@ -806,7 +806,7 @@ 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(14000, "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) {
|
|
@@ -817,7 +817,7 @@ let DebugSession = class DebugSession {
|
|
|
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(14000, "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(14000, "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(14000, "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(14000, "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(14000, "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(14000, "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(14000, "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(14000, "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(14003, "Started running without debugging.")) : ( localize(14004, "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(14005, "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) {
|
|
@@ -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(14009, "Debug")),
|
|
56
56
|
text: "$(debug-alt-small) " + text,
|
|
57
|
-
ariaLabel: ( localize(
|
|
58
|
-
tooltip: ( localize(
|
|
57
|
+
ariaLabel: ( localize(14010, "Debug: {0}", text)),
|
|
58
|
+
tooltip: ( localize(14011, "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(14012, "Abort"));
|
|
34
|
+
const DEBUG_ANYWAY_LABEL = ( localize(14013, "&&Debug Anyway"));
|
|
35
|
+
const DEBUG_ANYWAY_LABEL_NO_MEMO = ( localize(14014, "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(14015, "Errors exist after running preLaunchTask '{0}'.", taskLabel)) : errorCount === 1 ? ( localize(14016, "Error exists after running preLaunchTask '{0}'.", taskLabel)) : taskSummary && typeof taskSummary.exitCode === "number" ? ( localize(
|
|
89
|
+
14017,
|
|
90
90
|
"The preLaunchTask '{0}' terminated with exit code {1}.",
|
|
91
91
|
taskLabel,
|
|
92
92
|
taskSummary.exitCode
|
|
93
|
-
)) : ( localize(
|
|
93
|
+
)) : ( localize(14018, "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(14019, "&&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(14020, "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(14013, "&&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(14021, "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
|
+
14022,
|
|
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(14023, "Could not find the task '{0}'.", taskId)) : ( localize(14024, "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
|
+
14025,
|
|
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
|
+
14026,
|
|
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(14027, "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(14028, "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(14029, "Step Back")), 50, debugStepBack, CONTEXT_STEP_BACK_SUPPORTED, ( CONTEXT_DEBUG_STATE.isEqualTo("stopped")));
|
|
437
|
+
registerDebugToolBarItem(REVERSE_CONTINUE_ID, ( localize(14030, "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(14031, "Open &&Configurations"))
|
|
187
187
|
},
|
|
188
188
|
metadata: {
|
|
189
|
-
description: ( localize2(
|
|
189
|
+
description: ( localize2(14032, "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
|
+
14033,
|
|
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(14034, "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(14035, "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(14036, "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(14037, "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(14038, "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(14039, "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(14040, "Address"))}: ${instruction.address}`;
|
|
870
870
|
}
|
|
871
871
|
if (instruction.instructionBytes) {
|
|
872
|
-
label += `, ${( localize(
|
|
872
|
+
label += `, ${( localize(14041, "Bytes"))}: ${instruction.instructionBytes}`;
|
|
873
873
|
}
|
|
874
|
-
label += `, ${( localize(
|
|
874
|
+
label += `, ${( localize(14042, "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(14055, "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(14056, "Debug Loaded Scripts");
|
|
630
630
|
}
|
|
631
631
|
getAriaLabel(element) {
|
|
632
632
|
if (element instanceof RootFolderTreeItem) {
|
|
633
|
-
return localize(
|
|
633
|
+
return localize(14057, "Workspace folder {0}, loaded script, debug", element.getLabel());
|
|
634
634
|
}
|
|
635
635
|
if (element instanceof SessionTreeItem) {
|
|
636
|
-
return localize(
|
|
636
|
+
return localize(14058, "Session {0}, loaded script, debug", element.getLabel());
|
|
637
637
|
}
|
|
638
638
|
if (element.hasChildren()) {
|
|
639
|
-
return localize(
|
|
639
|
+
return localize(14059, "Folder {0}, loaded script, debug", element.getLabel());
|
|
640
640
|
} else {
|
|
641
|
-
return localize(
|
|
641
|
+
return localize(14060, "{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(14061, "Collapse All")),
|
|
669
669
|
f1: false,
|
|
670
670
|
icon: Codicon.collapseAll,
|
|
671
671
|
menu: {
|