@codingame/monaco-vscode-debug-service-override 27.0.0 → 28.0.1
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 +20 -20
- 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 +4 -6
- 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 +2 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css +2 -1
- 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 +10 -10
- 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(8190, "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(8190, "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(8190, "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(8190, "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,7 @@ 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(8190, "No debugger available, can not send '{0}'", "exception breakpoints"))));
|
|
441
441
|
}
|
|
442
442
|
if (this.raw.readyForBreakpoints) {
|
|
443
443
|
const args = this.capabilities.supportsExceptionFilterOptions ? {
|
|
@@ -468,7 +468,7 @@ let DebugSession = class DebugSession {
|
|
|
468
468
|
}
|
|
469
469
|
dataBytesBreakpointInfo(address, bytes) {
|
|
470
470
|
if (this.raw?.capabilities.supportsDataBreakpointBytes === false) {
|
|
471
|
-
throw ( new Error(( localize(
|
|
471
|
+
throw ( new Error(( localize(8191, "Session does not support breakpoints with bytes"))));
|
|
472
472
|
}
|
|
473
473
|
return this._dataBreakpointInfo({
|
|
474
474
|
name: address,
|
|
@@ -485,17 +485,17 @@ let DebugSession = class DebugSession {
|
|
|
485
485
|
}
|
|
486
486
|
async _dataBreakpointInfo(args) {
|
|
487
487
|
if (!this.raw) {
|
|
488
|
-
throw ( new Error(( localize(
|
|
488
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "data breakpoints info"))));
|
|
489
489
|
}
|
|
490
490
|
if (!this.raw.readyForBreakpoints) {
|
|
491
|
-
throw ( new Error(( localize(
|
|
491
|
+
throw ( new Error(( localize(8192, "Session is not ready for breakpoints"))));
|
|
492
492
|
}
|
|
493
493
|
const response = await this.raw.dataBreakpointInfo(args);
|
|
494
494
|
return response?.body;
|
|
495
495
|
}
|
|
496
496
|
async sendDataBreakpoints(dataBreakpoints) {
|
|
497
497
|
if (!this.raw) {
|
|
498
|
-
throw ( new Error(( localize(
|
|
498
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "data breakpoints"))));
|
|
499
499
|
}
|
|
500
500
|
if (this.raw.readyForBreakpoints) {
|
|
501
501
|
const converted = await Promise.all(( dataBreakpoints.map(async bp => {
|
|
@@ -532,7 +532,7 @@ let DebugSession = class DebugSession {
|
|
|
532
532
|
async sendInstructionBreakpoints(instructionBreakpoints) {
|
|
533
533
|
if (!this.raw) {
|
|
534
534
|
throw ( new Error(( localize(
|
|
535
|
-
|
|
535
|
+
8190,
|
|
536
536
|
"No debugger available, can not send '{0}'",
|
|
537
537
|
"instruction breakpoints"
|
|
538
538
|
))));
|
|
@@ -552,7 +552,7 @@ let DebugSession = class DebugSession {
|
|
|
552
552
|
}
|
|
553
553
|
async breakpointsLocations(uri, lineNumber) {
|
|
554
554
|
if (!this.raw) {
|
|
555
|
-
throw ( new Error(( localize(
|
|
555
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "breakpoints locations"))));
|
|
556
556
|
}
|
|
557
557
|
const source = this.getRawSource(uri);
|
|
558
558
|
const response = await this.raw.breakpointLocations({
|
|
@@ -573,13 +573,13 @@ let DebugSession = class DebugSession {
|
|
|
573
573
|
}
|
|
574
574
|
customRequest(request, args) {
|
|
575
575
|
if (!this.raw) {
|
|
576
|
-
throw ( new Error(( localize(
|
|
576
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", request))));
|
|
577
577
|
}
|
|
578
578
|
return this.raw.custom(request, args);
|
|
579
579
|
}
|
|
580
580
|
stackTrace(threadId, startFrame, levels, token) {
|
|
581
581
|
if (!this.raw) {
|
|
582
|
-
throw ( new Error(( localize(
|
|
582
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "stackTrace"))));
|
|
583
583
|
}
|
|
584
584
|
const sessionToken = this.getNewCancellationToken(threadId, token);
|
|
585
585
|
return this.raw.stackTrace({
|
|
@@ -590,7 +590,7 @@ let DebugSession = class DebugSession {
|
|
|
590
590
|
}
|
|
591
591
|
async exceptionInfo(threadId) {
|
|
592
592
|
if (!this.raw) {
|
|
593
|
-
throw ( new Error(( localize(
|
|
593
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "exceptionInfo"))));
|
|
594
594
|
}
|
|
595
595
|
const response = await this.raw.exceptionInfo({
|
|
596
596
|
threadId
|
|
@@ -607,7 +607,7 @@ let DebugSession = class DebugSession {
|
|
|
607
607
|
}
|
|
608
608
|
scopes(frameId, threadId) {
|
|
609
609
|
if (!this.raw) {
|
|
610
|
-
throw ( new Error(( localize(
|
|
610
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "scopes"))));
|
|
611
611
|
}
|
|
612
612
|
const token = this.getNewCancellationToken(threadId);
|
|
613
613
|
return this.raw.scopes({
|
|
@@ -616,7 +616,7 @@ let DebugSession = class DebugSession {
|
|
|
616
616
|
}
|
|
617
617
|
variables(variablesReference, threadId, filter, start, count) {
|
|
618
618
|
if (!this.raw) {
|
|
619
|
-
throw ( new Error(( localize(
|
|
619
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "variables"))));
|
|
620
620
|
}
|
|
621
621
|
const token = threadId ? this.getNewCancellationToken(threadId) : undefined;
|
|
622
622
|
return this.raw.variables({
|
|
@@ -628,7 +628,7 @@ let DebugSession = class DebugSession {
|
|
|
628
628
|
}
|
|
629
629
|
evaluate(expression, frameId, context, location) {
|
|
630
630
|
if (!this.raw) {
|
|
631
|
-
throw ( new Error(( localize(
|
|
631
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "evaluate"))));
|
|
632
632
|
}
|
|
633
633
|
return this.raw.evaluate({
|
|
634
634
|
expression,
|
|
@@ -642,7 +642,7 @@ let DebugSession = class DebugSession {
|
|
|
642
642
|
async restartFrame(frameId, threadId) {
|
|
643
643
|
await this.waitForTriggeredBreakpoints();
|
|
644
644
|
if (!this.raw) {
|
|
645
|
-
throw ( new Error(( localize(
|
|
645
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "restartFrame"))));
|
|
646
646
|
}
|
|
647
647
|
await this.raw.restartFrame({
|
|
648
648
|
frameId
|
|
@@ -657,7 +657,7 @@ let DebugSession = class DebugSession {
|
|
|
657
657
|
async next(threadId, granularity) {
|
|
658
658
|
await this.waitForTriggeredBreakpoints();
|
|
659
659
|
if (!this.raw) {
|
|
660
|
-
throw ( new Error(( localize(
|
|
660
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "next"))));
|
|
661
661
|
}
|
|
662
662
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
663
663
|
await this.raw.next({
|
|
@@ -668,7 +668,7 @@ let DebugSession = class DebugSession {
|
|
|
668
668
|
async stepIn(threadId, targetId, granularity) {
|
|
669
669
|
await this.waitForTriggeredBreakpoints();
|
|
670
670
|
if (!this.raw) {
|
|
671
|
-
throw ( new Error(( localize(
|
|
671
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "stepIn"))));
|
|
672
672
|
}
|
|
673
673
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
674
674
|
await this.raw.stepIn({
|
|
@@ -680,7 +680,7 @@ let DebugSession = class DebugSession {
|
|
|
680
680
|
async stepOut(threadId, granularity) {
|
|
681
681
|
await this.waitForTriggeredBreakpoints();
|
|
682
682
|
if (!this.raw) {
|
|
683
|
-
throw ( new Error(( localize(
|
|
683
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "stepOut"))));
|
|
684
684
|
}
|
|
685
685
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
686
686
|
await this.raw.stepOut({
|
|
@@ -691,7 +691,7 @@ let DebugSession = class DebugSession {
|
|
|
691
691
|
async stepBack(threadId, granularity) {
|
|
692
692
|
await this.waitForTriggeredBreakpoints();
|
|
693
693
|
if (!this.raw) {
|
|
694
|
-
throw ( new Error(( localize(
|
|
694
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "stepBack"))));
|
|
695
695
|
}
|
|
696
696
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
697
697
|
await this.raw.stepBack({
|
|
@@ -702,7 +702,7 @@ let DebugSession = class DebugSession {
|
|
|
702
702
|
async continue(threadId) {
|
|
703
703
|
await this.waitForTriggeredBreakpoints();
|
|
704
704
|
if (!this.raw) {
|
|
705
|
-
throw ( new Error(( localize(
|
|
705
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "continue"))));
|
|
706
706
|
}
|
|
707
707
|
await this.raw.continue({
|
|
708
708
|
threadId
|
|
@@ -711,7 +711,7 @@ let DebugSession = class DebugSession {
|
|
|
711
711
|
async reverseContinue(threadId) {
|
|
712
712
|
await this.waitForTriggeredBreakpoints();
|
|
713
713
|
if (!this.raw) {
|
|
714
|
-
throw ( new Error(( localize(
|
|
714
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "reverse continue"))));
|
|
715
715
|
}
|
|
716
716
|
await this.raw.reverseContinue({
|
|
717
717
|
threadId
|
|
@@ -719,7 +719,7 @@ let DebugSession = class DebugSession {
|
|
|
719
719
|
}
|
|
720
720
|
async pause(threadId) {
|
|
721
721
|
if (!this.raw) {
|
|
722
|
-
throw ( new Error(( localize(
|
|
722
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "pause"))));
|
|
723
723
|
}
|
|
724
724
|
await this.raw.pause({
|
|
725
725
|
threadId
|
|
@@ -727,7 +727,7 @@ let DebugSession = class DebugSession {
|
|
|
727
727
|
}
|
|
728
728
|
async terminateThreads(threadIds) {
|
|
729
729
|
if (!this.raw) {
|
|
730
|
-
throw ( new Error(( localize(
|
|
730
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "terminateThreads"))));
|
|
731
731
|
}
|
|
732
732
|
await this.raw.terminateThreads({
|
|
733
733
|
threadIds
|
|
@@ -735,7 +735,7 @@ let DebugSession = class DebugSession {
|
|
|
735
735
|
}
|
|
736
736
|
setVariable(variablesReference, name, value) {
|
|
737
737
|
if (!this.raw) {
|
|
738
|
-
throw ( new Error(( localize(
|
|
738
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "setVariable"))));
|
|
739
739
|
}
|
|
740
740
|
return this.raw.setVariable({
|
|
741
741
|
variablesReference,
|
|
@@ -745,7 +745,7 @@ let DebugSession = class DebugSession {
|
|
|
745
745
|
}
|
|
746
746
|
setExpression(frameId, expression, value) {
|
|
747
747
|
if (!this.raw) {
|
|
748
|
-
throw ( new Error(( localize(
|
|
748
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "setExpression"))));
|
|
749
749
|
}
|
|
750
750
|
return this.raw.setExpression({
|
|
751
751
|
expression,
|
|
@@ -755,7 +755,7 @@ let DebugSession = class DebugSession {
|
|
|
755
755
|
}
|
|
756
756
|
gotoTargets(source, line, column) {
|
|
757
757
|
if (!this.raw) {
|
|
758
|
-
throw ( new Error(( localize(
|
|
758
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "gotoTargets"))));
|
|
759
759
|
}
|
|
760
760
|
return this.raw.gotoTargets({
|
|
761
761
|
source,
|
|
@@ -765,7 +765,7 @@ let DebugSession = class DebugSession {
|
|
|
765
765
|
}
|
|
766
766
|
goto(threadId, targetId) {
|
|
767
767
|
if (!this.raw) {
|
|
768
|
-
throw ( new Error(( localize(
|
|
768
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "goto"))));
|
|
769
769
|
}
|
|
770
770
|
return this.raw.goto({
|
|
771
771
|
threadId,
|
|
@@ -774,7 +774,7 @@ let DebugSession = class DebugSession {
|
|
|
774
774
|
}
|
|
775
775
|
loadSource(resource) {
|
|
776
776
|
if (!this.raw) {
|
|
777
|
-
return Promise.reject(( new Error(( localize(
|
|
777
|
+
return Promise.reject(( new Error(( localize(8190, "No debugger available, can not send '{0}'", "loadSource")))));
|
|
778
778
|
}
|
|
779
779
|
const source = this.getSourceForUri(resource);
|
|
780
780
|
let rawSource;
|
|
@@ -794,7 +794,7 @@ let DebugSession = class DebugSession {
|
|
|
794
794
|
}
|
|
795
795
|
async getLoadedSources() {
|
|
796
796
|
if (!this.raw) {
|
|
797
|
-
return Promise.reject(( new Error(( localize(
|
|
797
|
+
return Promise.reject(( new Error(( localize(8190, "No debugger available, can not send '{0}'", "getLoadedSources")))));
|
|
798
798
|
}
|
|
799
799
|
const response = await this.raw.loadedSources({});
|
|
800
800
|
if (response?.body && response.body.sources) {
|
|
@@ -805,7 +805,7 @@ let DebugSession = class DebugSession {
|
|
|
805
805
|
}
|
|
806
806
|
async completions(frameId, threadId, text, position, token) {
|
|
807
807
|
if (!this.raw) {
|
|
808
|
-
return Promise.reject(( new Error(( localize(
|
|
808
|
+
return Promise.reject(( new Error(( localize(8190, "No debugger available, can not send '{0}'", "completions")))));
|
|
809
809
|
}
|
|
810
810
|
const sessionCancelationToken = this.getNewCancellationToken(threadId, token);
|
|
811
811
|
return this.raw.completions({
|
|
@@ -817,7 +817,7 @@ let DebugSession = class DebugSession {
|
|
|
817
817
|
}
|
|
818
818
|
async stepInTargets(frameId) {
|
|
819
819
|
if (!this.raw) {
|
|
820
|
-
return Promise.reject(( new Error(( localize(
|
|
820
|
+
return Promise.reject(( new Error(( localize(8190, "No debugger available, can not send '{0}'", "stepInTargets")))));
|
|
821
821
|
}
|
|
822
822
|
const response = await this.raw.stepInTargets({
|
|
823
823
|
frameId
|
|
@@ -826,7 +826,7 @@ let DebugSession = class DebugSession {
|
|
|
826
826
|
}
|
|
827
827
|
async cancel(progressId) {
|
|
828
828
|
if (!this.raw) {
|
|
829
|
-
return Promise.reject(( new Error(( localize(
|
|
829
|
+
return Promise.reject(( new Error(( localize(8190, "No debugger available, can not send '{0}'", "cancel")))));
|
|
830
830
|
}
|
|
831
831
|
return this.raw.cancel({
|
|
832
832
|
progressId
|
|
@@ -834,7 +834,7 @@ let DebugSession = class DebugSession {
|
|
|
834
834
|
}
|
|
835
835
|
async disassemble(memoryReference, offset, instructionOffset, instructionCount) {
|
|
836
836
|
if (!this.raw) {
|
|
837
|
-
return Promise.reject(( new Error(( localize(
|
|
837
|
+
return Promise.reject(( new Error(( localize(8190, "No debugger available, can not send '{0}'", "disassemble")))));
|
|
838
838
|
}
|
|
839
839
|
const response = await this.raw.disassemble({
|
|
840
840
|
memoryReference,
|
|
@@ -847,7 +847,7 @@ let DebugSession = class DebugSession {
|
|
|
847
847
|
}
|
|
848
848
|
readMemory(memoryReference, offset, count) {
|
|
849
849
|
if (!this.raw) {
|
|
850
|
-
return Promise.reject(( new Error(( localize(
|
|
850
|
+
return Promise.reject(( new Error(( localize(8190, "No debugger available, can not send '{0}'", "readMemory")))));
|
|
851
851
|
}
|
|
852
852
|
return this.raw.readMemory({
|
|
853
853
|
count,
|
|
@@ -857,7 +857,7 @@ let DebugSession = class DebugSession {
|
|
|
857
857
|
}
|
|
858
858
|
writeMemory(memoryReference, offset, data, allowPartial) {
|
|
859
859
|
if (!this.raw) {
|
|
860
|
-
return Promise.reject(( new Error(( localize(
|
|
860
|
+
return Promise.reject(( new Error(( localize(8190, "No debugger available, can not send '{0}'", "disassemble")))));
|
|
861
861
|
}
|
|
862
862
|
return this.raw.writeMemory({
|
|
863
863
|
memoryReference,
|
|
@@ -868,13 +868,13 @@ let DebugSession = class DebugSession {
|
|
|
868
868
|
}
|
|
869
869
|
async resolveLocationReference(locationReference) {
|
|
870
870
|
if (!this.raw) {
|
|
871
|
-
throw ( new Error(( localize(
|
|
871
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "locations"))));
|
|
872
872
|
}
|
|
873
873
|
const location = await this.raw.locations({
|
|
874
874
|
locationReference
|
|
875
875
|
});
|
|
876
876
|
if (!location?.body) {
|
|
877
|
-
throw ( new Error(( localize(
|
|
877
|
+
throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "locations"))));
|
|
878
878
|
}
|
|
879
879
|
const source = this.getSource(location.body.source);
|
|
880
880
|
return {
|
|
@@ -988,7 +988,7 @@ let DebugSession = class DebugSession {
|
|
|
988
988
|
return;
|
|
989
989
|
}
|
|
990
990
|
this.rawListeners.add(this.raw.onDidInitialize(async () => {
|
|
991
|
-
status(this.configuration.noDebug ? ( localize(
|
|
991
|
+
status(this.configuration.noDebug ? ( localize(8193, "Started running without debugging.")) : ( localize(8194, "Debugging started.")));
|
|
992
992
|
const sendConfigurationDone = async () => {
|
|
993
993
|
if (this.raw && this.raw.capabilities.supportsConfigurationDoneRequest) {
|
|
994
994
|
try {
|
|
@@ -1028,7 +1028,7 @@ let DebugSession = class DebugSession {
|
|
|
1028
1028
|
}
|
|
1029
1029
|
}));
|
|
1030
1030
|
this.rawListeners.add(this.raw.onDidTerminateDebugee(async event => {
|
|
1031
|
-
status(( localize(
|
|
1031
|
+
status(( localize(8195, "Debugging stopped.")));
|
|
1032
1032
|
if (event.body && event.body.restart) {
|
|
1033
1033
|
await this.debugService.restartSession(this, event.body.restart);
|
|
1034
1034
|
} 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(8199, "Debug")),
|
|
56
56
|
text: "$(debug-alt-small) " + text,
|
|
57
|
-
ariaLabel: ( localize(
|
|
58
|
-
tooltip: ( localize(
|
|
57
|
+
ariaLabel: ( localize(8200, "Debug: {0}", text)),
|
|
58
|
+
tooltip: ( localize(8201, "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(8202, "Abort"));
|
|
34
|
+
const DEBUG_ANYWAY_LABEL = ( localize(8203, "&&Debug Anyway"));
|
|
35
|
+
const DEBUG_ANYWAY_LABEL_NO_MEMO = ( localize(8204, "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(8205, "Errors exist after running preLaunchTask '{0}'.", taskLabel)) : errorCount === 1 ? ( localize(8206, "Error exists after running preLaunchTask '{0}'.", taskLabel)) : taskSummary && typeof taskSummary.exitCode === "number" ? ( localize(
|
|
89
|
+
8207,
|
|
90
90
|
"The preLaunchTask '{0}' terminated with exit code {1}.",
|
|
91
91
|
taskLabel,
|
|
92
92
|
taskSummary.exitCode
|
|
93
|
-
)) : ( localize(
|
|
93
|
+
)) : ( localize(8208, "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(8209, "&&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(8210, "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(8203, "&&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(8211, "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
|
+
8212,
|
|
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(8213, "Could not find the task '{0}'.", taskId)) : ( localize(8214, "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
|
+
8215,
|
|
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
|
+
8216,
|
|
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(8217, "Configure Task")));
|
|
288
288
|
}
|
|
289
289
|
this.progressService.withProgress({
|
|
290
290
|
location: ProgressLocation.Notification,
|
|
@@ -30,7 +30,7 @@ import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platfo
|
|
|
30
30
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colorUtils';
|
|
31
31
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/baseColors';
|
|
32
32
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/chartsColors';
|
|
33
|
-
import {
|
|
33
|
+
import { widgetBorder } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/editorColors';
|
|
34
34
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/inputColors';
|
|
35
35
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/listColors';
|
|
36
36
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/menuColors';
|
|
@@ -236,8 +236,6 @@ let DebugToolBar = class DebugToolBar extends Themable {
|
|
|
236
236
|
super.updateStyles();
|
|
237
237
|
if (this.$el) {
|
|
238
238
|
this.$el.style.backgroundColor = this.getColor(debugToolBarBackground) || "";
|
|
239
|
-
const widgetShadowColor = this.getColor(widgetShadow);
|
|
240
|
-
this.$el.style.boxShadow = widgetShadowColor ? `0 0 8px 2px ${widgetShadowColor}` : "";
|
|
241
239
|
const contrastBorderColor = this.getColor(widgetBorder);
|
|
242
240
|
const borderColor = this.getColor(debugToolBarBorder);
|
|
243
241
|
if (contrastBorderColor) {
|
|
@@ -331,7 +329,7 @@ function createDisconnectMenuItemAction(action, disposables, accessor, options)
|
|
|
331
329
|
if (!secondary.length) {
|
|
332
330
|
return undefined;
|
|
333
331
|
}
|
|
334
|
-
const dropdownAction = disposables.add(( new Action("notebook.moreRunActions", ( localize(
|
|
332
|
+
const dropdownAction = disposables.add(( new Action("notebook.moreRunActions", ( localize(8218, "More...")), "codicon-chevron-down", true)));
|
|
335
333
|
const item = instantiationService.createInstance(
|
|
336
334
|
DropdownWithPrimaryActionViewItem,
|
|
337
335
|
action,
|
|
@@ -435,8 +433,8 @@ registerDebugToolBarItem(
|
|
|
435
433
|
( CONTEXT_DEBUG_STATE.isEqualTo("stopped"))
|
|
436
434
|
);
|
|
437
435
|
registerDebugToolBarItem(RESTART_SESSION_ID, RESTART_LABEL, 60, debugRestart);
|
|
438
|
-
registerDebugToolBarItem(STEP_BACK_ID, ( localize(
|
|
439
|
-
registerDebugToolBarItem(REVERSE_CONTINUE_ID, ( localize(
|
|
436
|
+
registerDebugToolBarItem(STEP_BACK_ID, ( localize(8219, "Step Back")), 50, debugStepBack, CONTEXT_STEP_BACK_SUPPORTED, ( CONTEXT_DEBUG_STATE.isEqualTo("stopped")));
|
|
437
|
+
registerDebugToolBarItem(REVERSE_CONTINUE_ID, ( localize(8220, "Reverse")), 55, debugReverseContinue, CONTEXT_STEP_BACK_SUPPORTED, ( CONTEXT_DEBUG_STATE.isEqualTo("stopped")));
|
|
440
438
|
registerDebugToolBarItem(
|
|
441
439
|
FOCUS_SESSION_ID,
|
|
442
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(8221, "Open &&Configurations"))
|
|
187
187
|
},
|
|
188
188
|
metadata: {
|
|
189
|
-
description: ( localize2(
|
|
189
|
+
description: ( localize2(8222, "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
|
+
8223,
|
|
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(8224, "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(8225, "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(8226, "Disassembly not available."))
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
let DisassemblyView = class DisassemblyView extends EditorPane {
|
|
@@ -204,7 +204,7 @@ let DisassemblyView = class DisassemblyView extends EditorPane {
|
|
|
204
204
|
return row;
|
|
205
205
|
}
|
|
206
206
|
}, {
|
|
207
|
-
label: ( localize(
|
|
207
|
+
label: ( localize(8227, "instructions")),
|
|
208
208
|
tooltip: "",
|
|
209
209
|
weight: 0.3,
|
|
210
210
|
templateId: InstructionRenderer.TEMPLATE_ID,
|
|
@@ -824,7 +824,7 @@ let InstructionRenderer = class InstructionRenderer extends Disposable {
|
|
|
824
824
|
};
|
|
825
825
|
this.editorService.openEditor({
|
|
826
826
|
resource: sourceURI,
|
|
827
|
-
description: ( localize(
|
|
827
|
+
description: ( localize(8228, "from disassembly")),
|
|
828
828
|
options: {
|
|
829
829
|
preserveFocus: false,
|
|
830
830
|
selection: selection,
|
|
@@ -859,18 +859,18 @@ let InstructionRenderer = class InstructionRenderer extends Disposable {
|
|
|
859
859
|
InstructionRenderer = InstructionRenderer_1 = ( __decorate([( __param(1, IThemeService)), ( __param(2, IEditorService)), ( __param(3, ITextModelService)), ( __param(4, IUriIdentityService)), ( __param(5, ILogService))], InstructionRenderer));
|
|
860
860
|
class AccessibilityProvider {
|
|
861
861
|
getWidgetAriaLabel() {
|
|
862
|
-
return localize(
|
|
862
|
+
return localize(8229, "Disassembly View");
|
|
863
863
|
}
|
|
864
864
|
getAriaLabel(element) {
|
|
865
865
|
let label = "";
|
|
866
866
|
const instruction = element.instruction;
|
|
867
867
|
if (instruction.address !== "-1") {
|
|
868
|
-
label += `${( localize(
|
|
868
|
+
label += `${( localize(8230, "Address"))}: ${instruction.address}`;
|
|
869
869
|
}
|
|
870
870
|
if (instruction.instructionBytes) {
|
|
871
|
-
label += `, ${( localize(
|
|
871
|
+
label += `, ${( localize(8231, "Bytes"))}: ${instruction.instructionBytes}`;
|
|
872
872
|
}
|
|
873
|
-
label += `, ${( localize(
|
|
873
|
+
label += `, ${( localize(8232, "Instruction"))}: ${instruction.instruction}`;
|
|
874
874
|
return label;
|
|
875
875
|
}
|
|
876
876
|
}
|
|
@@ -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(8244, "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(8245, "Debug Loaded Scripts");
|
|
630
630
|
}
|
|
631
631
|
getAriaLabel(element) {
|
|
632
632
|
if (element instanceof RootFolderTreeItem) {
|
|
633
|
-
return localize(
|
|
633
|
+
return localize(8246, "Workspace folder {0}, loaded script, debug", element.getLabel());
|
|
634
634
|
}
|
|
635
635
|
if (element instanceof SessionTreeItem) {
|
|
636
|
-
return localize(
|
|
636
|
+
return localize(8247, "Session {0}, loaded script, debug", element.getLabel());
|
|
637
637
|
}
|
|
638
638
|
if (element.hasChildren()) {
|
|
639
|
-
return localize(
|
|
639
|
+
return localize(8248, "Folder {0}, loaded script, debug", element.getLabel());
|
|
640
640
|
} else {
|
|
641
|
-
return localize(
|
|
641
|
+
return localize(8249, "{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(8250, "Collapse All")),
|
|
669
669
|
f1: false,
|
|
670
670
|
icon: Codicon.collapseAll,
|
|
671
671
|
menu: {
|