@codingame/monaco-vscode-debug-service-override 8.0.1 → 8.0.2
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 +107 -107
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +11 -11
- 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 +24 -24
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +2 -2
- 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 +41 -41
- 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/repl.js +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +14 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +2 -2
|
@@ -290,7 +290,7 @@ let DebugSession = class DebugSession {
|
|
|
290
290
|
async launchOrAttach(config) {
|
|
291
291
|
if (!this.raw) {
|
|
292
292
|
throw ( (new Error(
|
|
293
|
-
localize(
|
|
293
|
+
localize(5789, "No debugger available, can not send '{0}'", 'launch or attach')
|
|
294
294
|
)));
|
|
295
295
|
}
|
|
296
296
|
if (this.parentSession && this.parentSession.state === State.Inactive) {
|
|
@@ -346,7 +346,7 @@ let DebugSession = class DebugSession {
|
|
|
346
346
|
}
|
|
347
347
|
async restart() {
|
|
348
348
|
if (!this.raw) {
|
|
349
|
-
throw ( (new Error(localize(
|
|
349
|
+
throw ( (new Error(localize(5789, "No debugger available, can not send '{0}'", 'restart'))));
|
|
350
350
|
}
|
|
351
351
|
this.cancelAllRequests();
|
|
352
352
|
if (this._options.lifecycleManagedByParent && this.parentSession) {
|
|
@@ -358,7 +358,7 @@ let DebugSession = class DebugSession {
|
|
|
358
358
|
}
|
|
359
359
|
async sendBreakpoints(modelUri, breakpointsToSend, sourceModified) {
|
|
360
360
|
if (!this.raw) {
|
|
361
|
-
throw ( (new Error(localize(
|
|
361
|
+
throw ( (new Error(localize(5789, "No debugger available, can not send '{0}'", 'breakpoints'))));
|
|
362
362
|
}
|
|
363
363
|
if (!this.raw.readyForBreakpoints) {
|
|
364
364
|
return Promise.resolve(undefined);
|
|
@@ -387,7 +387,7 @@ let DebugSession = class DebugSession {
|
|
|
387
387
|
async sendFunctionBreakpoints(fbpts) {
|
|
388
388
|
if (!this.raw) {
|
|
389
389
|
throw ( (new Error(
|
|
390
|
-
localize(
|
|
390
|
+
localize(5789, "No debugger available, can not send '{0}'", 'function breakpoints')
|
|
391
391
|
)));
|
|
392
392
|
}
|
|
393
393
|
if (this.raw.readyForBreakpoints) {
|
|
@@ -404,7 +404,7 @@ let DebugSession = class DebugSession {
|
|
|
404
404
|
async sendExceptionBreakpoints(exbpts) {
|
|
405
405
|
if (!this.raw) {
|
|
406
406
|
throw ( (new Error(
|
|
407
|
-
localize(
|
|
407
|
+
localize(5789, "No debugger available, can not send '{0}'", 'exception breakpoints')
|
|
408
408
|
)));
|
|
409
409
|
}
|
|
410
410
|
if (this.raw.readyForBreakpoints) {
|
|
@@ -429,7 +429,7 @@ let DebugSession = class DebugSession {
|
|
|
429
429
|
}
|
|
430
430
|
dataBytesBreakpointInfo(address, bytes) {
|
|
431
431
|
if (this.raw?.capabilities.supportsDataBreakpointBytes === false) {
|
|
432
|
-
throw ( (new Error(localize(
|
|
432
|
+
throw ( (new Error(localize(5790, "Session does not support breakpoints with bytes"))));
|
|
433
433
|
}
|
|
434
434
|
return this._dataBreakpointInfo({ name: address, bytes, asAddress: true });
|
|
435
435
|
}
|
|
@@ -439,11 +439,11 @@ let DebugSession = class DebugSession {
|
|
|
439
439
|
async _dataBreakpointInfo(args) {
|
|
440
440
|
if (!this.raw) {
|
|
441
441
|
throw ( (new Error(
|
|
442
|
-
localize(
|
|
442
|
+
localize(5789, "No debugger available, can not send '{0}'", 'data breakpoints info')
|
|
443
443
|
)));
|
|
444
444
|
}
|
|
445
445
|
if (!this.raw.readyForBreakpoints) {
|
|
446
|
-
throw ( (new Error(localize(
|
|
446
|
+
throw ( (new Error(localize(5791, "Session is not ready for breakpoints"))));
|
|
447
447
|
}
|
|
448
448
|
const response = await this.raw.dataBreakpointInfo(args);
|
|
449
449
|
return response?.body;
|
|
@@ -451,7 +451,7 @@ let DebugSession = class DebugSession {
|
|
|
451
451
|
async sendDataBreakpoints(dataBreakpoints) {
|
|
452
452
|
if (!this.raw) {
|
|
453
453
|
throw ( (new Error(
|
|
454
|
-
localize(
|
|
454
|
+
localize(5789, "No debugger available, can not send '{0}'", 'data breakpoints')
|
|
455
455
|
)));
|
|
456
456
|
}
|
|
457
457
|
if (this.raw.readyForBreakpoints) {
|
|
@@ -483,7 +483,7 @@ let DebugSession = class DebugSession {
|
|
|
483
483
|
async sendInstructionBreakpoints(instructionBreakpoints) {
|
|
484
484
|
if (!this.raw) {
|
|
485
485
|
throw ( (new Error(localize(
|
|
486
|
-
|
|
486
|
+
5789,
|
|
487
487
|
"No debugger available, can not send '{0}'",
|
|
488
488
|
'instruction breakpoints'
|
|
489
489
|
))));
|
|
@@ -502,7 +502,7 @@ let DebugSession = class DebugSession {
|
|
|
502
502
|
async breakpointsLocations(uri, lineNumber) {
|
|
503
503
|
if (!this.raw) {
|
|
504
504
|
throw ( (new Error(
|
|
505
|
-
localize(
|
|
505
|
+
localize(5789, "No debugger available, can not send '{0}'", 'breakpoints locations')
|
|
506
506
|
)));
|
|
507
507
|
}
|
|
508
508
|
const source = this.getRawSource(uri);
|
|
@@ -518,13 +518,13 @@ let DebugSession = class DebugSession {
|
|
|
518
518
|
}
|
|
519
519
|
customRequest(request, args) {
|
|
520
520
|
if (!this.raw) {
|
|
521
|
-
throw ( (new Error(localize(
|
|
521
|
+
throw ( (new Error(localize(5789, "No debugger available, can not send '{0}'", request))));
|
|
522
522
|
}
|
|
523
523
|
return this.raw.custom(request, args);
|
|
524
524
|
}
|
|
525
525
|
stackTrace(threadId, startFrame, levels, token) {
|
|
526
526
|
if (!this.raw) {
|
|
527
|
-
throw ( (new Error(localize(
|
|
527
|
+
throw ( (new Error(localize(5789, "No debugger available, can not send '{0}'", 'stackTrace'))));
|
|
528
528
|
}
|
|
529
529
|
const sessionToken = this.getNewCancellationToken(threadId, token);
|
|
530
530
|
return this.raw.stackTrace({ threadId, startFrame, levels }, sessionToken);
|
|
@@ -532,7 +532,7 @@ let DebugSession = class DebugSession {
|
|
|
532
532
|
async exceptionInfo(threadId) {
|
|
533
533
|
if (!this.raw) {
|
|
534
534
|
throw ( (new Error(
|
|
535
|
-
localize(
|
|
535
|
+
localize(5789, "No debugger available, can not send '{0}'", 'exceptionInfo')
|
|
536
536
|
)));
|
|
537
537
|
}
|
|
538
538
|
const response = await this.raw.exceptionInfo({ threadId });
|
|
@@ -548,21 +548,21 @@ let DebugSession = class DebugSession {
|
|
|
548
548
|
}
|
|
549
549
|
scopes(frameId, threadId) {
|
|
550
550
|
if (!this.raw) {
|
|
551
|
-
throw ( (new Error(localize(
|
|
551
|
+
throw ( (new Error(localize(5789, "No debugger available, can not send '{0}'", 'scopes'))));
|
|
552
552
|
}
|
|
553
553
|
const token = this.getNewCancellationToken(threadId);
|
|
554
554
|
return this.raw.scopes({ frameId }, token);
|
|
555
555
|
}
|
|
556
556
|
variables(variablesReference, threadId, filter, start, count) {
|
|
557
557
|
if (!this.raw) {
|
|
558
|
-
throw ( (new Error(localize(
|
|
558
|
+
throw ( (new Error(localize(5789, "No debugger available, can not send '{0}'", 'variables'))));
|
|
559
559
|
}
|
|
560
560
|
const token = threadId ? this.getNewCancellationToken(threadId) : undefined;
|
|
561
561
|
return this.raw.variables({ variablesReference, filter, start, count }, token);
|
|
562
562
|
}
|
|
563
563
|
evaluate(expression, frameId, context, location) {
|
|
564
564
|
if (!this.raw) {
|
|
565
|
-
throw ( (new Error(localize(
|
|
565
|
+
throw ( (new Error(localize(5789, "No debugger available, can not send '{0}'", 'evaluate'))));
|
|
566
566
|
}
|
|
567
567
|
return this.raw.evaluate({ expression, frameId, context, line: location?.line, column: location?.column, source: location?.source });
|
|
568
568
|
}
|
|
@@ -570,7 +570,7 @@ let DebugSession = class DebugSession {
|
|
|
570
570
|
await this.waitForTriggeredBreakpoints();
|
|
571
571
|
if (!this.raw) {
|
|
572
572
|
throw ( (new Error(
|
|
573
|
-
localize(
|
|
573
|
+
localize(5789, "No debugger available, can not send '{0}'", 'restartFrame')
|
|
574
574
|
)));
|
|
575
575
|
}
|
|
576
576
|
await this.raw.restartFrame({ frameId }, threadId);
|
|
@@ -584,7 +584,7 @@ let DebugSession = class DebugSession {
|
|
|
584
584
|
async next(threadId, granularity) {
|
|
585
585
|
await this.waitForTriggeredBreakpoints();
|
|
586
586
|
if (!this.raw) {
|
|
587
|
-
throw ( (new Error(localize(
|
|
587
|
+
throw ( (new Error(localize(5789, "No debugger available, can not send '{0}'", 'next'))));
|
|
588
588
|
}
|
|
589
589
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
590
590
|
await this.raw.next({ threadId, granularity });
|
|
@@ -592,7 +592,7 @@ let DebugSession = class DebugSession {
|
|
|
592
592
|
async stepIn(threadId, targetId, granularity) {
|
|
593
593
|
await this.waitForTriggeredBreakpoints();
|
|
594
594
|
if (!this.raw) {
|
|
595
|
-
throw ( (new Error(localize(
|
|
595
|
+
throw ( (new Error(localize(5789, "No debugger available, can not send '{0}'", 'stepIn'))));
|
|
596
596
|
}
|
|
597
597
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
598
598
|
await this.raw.stepIn({ threadId, targetId, granularity });
|
|
@@ -600,7 +600,7 @@ let DebugSession = class DebugSession {
|
|
|
600
600
|
async stepOut(threadId, granularity) {
|
|
601
601
|
await this.waitForTriggeredBreakpoints();
|
|
602
602
|
if (!this.raw) {
|
|
603
|
-
throw ( (new Error(localize(
|
|
603
|
+
throw ( (new Error(localize(5789, "No debugger available, can not send '{0}'", 'stepOut'))));
|
|
604
604
|
}
|
|
605
605
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
606
606
|
await this.raw.stepOut({ threadId, granularity });
|
|
@@ -608,7 +608,7 @@ let DebugSession = class DebugSession {
|
|
|
608
608
|
async stepBack(threadId, granularity) {
|
|
609
609
|
await this.waitForTriggeredBreakpoints();
|
|
610
610
|
if (!this.raw) {
|
|
611
|
-
throw ( (new Error(localize(
|
|
611
|
+
throw ( (new Error(localize(5789, "No debugger available, can not send '{0}'", 'stepBack'))));
|
|
612
612
|
}
|
|
613
613
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
614
614
|
await this.raw.stepBack({ threadId, granularity });
|
|
@@ -616,7 +616,7 @@ let DebugSession = class DebugSession {
|
|
|
616
616
|
async continue(threadId) {
|
|
617
617
|
await this.waitForTriggeredBreakpoints();
|
|
618
618
|
if (!this.raw) {
|
|
619
|
-
throw ( (new Error(localize(
|
|
619
|
+
throw ( (new Error(localize(5789, "No debugger available, can not send '{0}'", 'continue'))));
|
|
620
620
|
}
|
|
621
621
|
await this.raw.continue({ threadId });
|
|
622
622
|
}
|
|
@@ -624,54 +624,54 @@ let DebugSession = class DebugSession {
|
|
|
624
624
|
await this.waitForTriggeredBreakpoints();
|
|
625
625
|
if (!this.raw) {
|
|
626
626
|
throw ( (new Error(
|
|
627
|
-
localize(
|
|
627
|
+
localize(5789, "No debugger available, can not send '{0}'", 'reverse continue')
|
|
628
628
|
)));
|
|
629
629
|
}
|
|
630
630
|
await this.raw.reverseContinue({ threadId });
|
|
631
631
|
}
|
|
632
632
|
async pause(threadId) {
|
|
633
633
|
if (!this.raw) {
|
|
634
|
-
throw ( (new Error(localize(
|
|
634
|
+
throw ( (new Error(localize(5789, "No debugger available, can not send '{0}'", 'pause'))));
|
|
635
635
|
}
|
|
636
636
|
await this.raw.pause({ threadId });
|
|
637
637
|
}
|
|
638
638
|
async terminateThreads(threadIds) {
|
|
639
639
|
if (!this.raw) {
|
|
640
640
|
throw ( (new Error(
|
|
641
|
-
localize(
|
|
641
|
+
localize(5789, "No debugger available, can not send '{0}'", 'terminateThreads')
|
|
642
642
|
)));
|
|
643
643
|
}
|
|
644
644
|
await this.raw.terminateThreads({ threadIds });
|
|
645
645
|
}
|
|
646
646
|
setVariable(variablesReference, name, value) {
|
|
647
647
|
if (!this.raw) {
|
|
648
|
-
throw ( (new Error(localize(
|
|
648
|
+
throw ( (new Error(localize(5789, "No debugger available, can not send '{0}'", 'setVariable'))));
|
|
649
649
|
}
|
|
650
650
|
return this.raw.setVariable({ variablesReference, name, value });
|
|
651
651
|
}
|
|
652
652
|
setExpression(frameId, expression, value) {
|
|
653
653
|
if (!this.raw) {
|
|
654
654
|
throw ( (new Error(
|
|
655
|
-
localize(
|
|
655
|
+
localize(5789, "No debugger available, can not send '{0}'", 'setExpression')
|
|
656
656
|
)));
|
|
657
657
|
}
|
|
658
658
|
return this.raw.setExpression({ expression, value, frameId });
|
|
659
659
|
}
|
|
660
660
|
gotoTargets(source, line, column) {
|
|
661
661
|
if (!this.raw) {
|
|
662
|
-
throw ( (new Error(localize(
|
|
662
|
+
throw ( (new Error(localize(5789, "No debugger available, can not send '{0}'", 'gotoTargets'))));
|
|
663
663
|
}
|
|
664
664
|
return this.raw.gotoTargets({ source, line, column });
|
|
665
665
|
}
|
|
666
666
|
goto(threadId, targetId) {
|
|
667
667
|
if (!this.raw) {
|
|
668
|
-
throw ( (new Error(localize(
|
|
668
|
+
throw ( (new Error(localize(5789, "No debugger available, can not send '{0}'", 'goto'))));
|
|
669
669
|
}
|
|
670
670
|
return this.raw.goto({ threadId, targetId });
|
|
671
671
|
}
|
|
672
672
|
loadSource(resource) {
|
|
673
673
|
if (!this.raw) {
|
|
674
|
-
return Promise.reject(( (new Error(( localize(
|
|
674
|
+
return Promise.reject(( (new Error(( localize(5789, "No debugger available, can not send '{0}'", 'loadSource'))))));
|
|
675
675
|
}
|
|
676
676
|
const source = this.getSourceForUri(resource);
|
|
677
677
|
let rawSource;
|
|
@@ -686,7 +686,7 @@ let DebugSession = class DebugSession {
|
|
|
686
686
|
}
|
|
687
687
|
async getLoadedSources() {
|
|
688
688
|
if (!this.raw) {
|
|
689
|
-
return Promise.reject(( (new Error(( localize(
|
|
689
|
+
return Promise.reject(( (new Error(( localize(5789, "No debugger available, can not send '{0}'", 'getLoadedSources'))))));
|
|
690
690
|
}
|
|
691
691
|
const response = await this.raw.loadedSources({});
|
|
692
692
|
if (response?.body && response.body.sources) {
|
|
@@ -700,7 +700,7 @@ let DebugSession = class DebugSession {
|
|
|
700
700
|
}
|
|
701
701
|
async completions(frameId, threadId, text, position, overwriteBefore, token) {
|
|
702
702
|
if (!this.raw) {
|
|
703
|
-
return Promise.reject(( (new Error(( localize(
|
|
703
|
+
return Promise.reject(( (new Error(( localize(5789, "No debugger available, can not send '{0}'", 'completions'))))));
|
|
704
704
|
}
|
|
705
705
|
const sessionCancelationToken = this.getNewCancellationToken(threadId, token);
|
|
706
706
|
return this.raw.completions({
|
|
@@ -712,33 +712,33 @@ let DebugSession = class DebugSession {
|
|
|
712
712
|
}
|
|
713
713
|
async stepInTargets(frameId) {
|
|
714
714
|
if (!this.raw) {
|
|
715
|
-
return Promise.reject(( (new Error(( localize(
|
|
715
|
+
return Promise.reject(( (new Error(( localize(5789, "No debugger available, can not send '{0}'", 'stepInTargets'))))));
|
|
716
716
|
}
|
|
717
717
|
const response = await this.raw.stepInTargets({ frameId });
|
|
718
718
|
return response?.body.targets;
|
|
719
719
|
}
|
|
720
720
|
async cancel(progressId) {
|
|
721
721
|
if (!this.raw) {
|
|
722
|
-
return Promise.reject(( (new Error(( localize(
|
|
722
|
+
return Promise.reject(( (new Error(( localize(5789, "No debugger available, can not send '{0}'", 'cancel'))))));
|
|
723
723
|
}
|
|
724
724
|
return this.raw.cancel({ progressId });
|
|
725
725
|
}
|
|
726
726
|
async disassemble(memoryReference, offset, instructionOffset, instructionCount) {
|
|
727
727
|
if (!this.raw) {
|
|
728
|
-
return Promise.reject(( (new Error(( localize(
|
|
728
|
+
return Promise.reject(( (new Error(( localize(5789, "No debugger available, can not send '{0}'", 'disassemble'))))));
|
|
729
729
|
}
|
|
730
730
|
const response = await this.raw.disassemble({ memoryReference, offset, instructionOffset, instructionCount, resolveSymbols: true });
|
|
731
731
|
return response?.body?.instructions;
|
|
732
732
|
}
|
|
733
733
|
readMemory(memoryReference, offset, count) {
|
|
734
734
|
if (!this.raw) {
|
|
735
|
-
return Promise.reject(( (new Error(( localize(
|
|
735
|
+
return Promise.reject(( (new Error(( localize(5789, "No debugger available, can not send '{0}'", 'readMemory'))))));
|
|
736
736
|
}
|
|
737
737
|
return this.raw.readMemory({ count, memoryReference, offset });
|
|
738
738
|
}
|
|
739
739
|
writeMemory(memoryReference, offset, data, allowPartial) {
|
|
740
740
|
if (!this.raw) {
|
|
741
|
-
return Promise.reject(( (new Error(( localize(
|
|
741
|
+
return Promise.reject(( (new Error(( localize(5789, "No debugger available, can not send '{0}'", 'disassemble'))))));
|
|
742
742
|
}
|
|
743
743
|
return this.raw.writeMemory({ memoryReference, offset, allowPartial, data });
|
|
744
744
|
}
|
|
@@ -849,8 +849,8 @@ let DebugSession = class DebugSession {
|
|
|
849
849
|
}
|
|
850
850
|
this.rawListeners.add(this.raw.onDidInitialize(async () => {
|
|
851
851
|
status(this.configuration.noDebug
|
|
852
|
-
? ( localize(
|
|
853
|
-
: ( localize(
|
|
852
|
+
? ( localize(5792, "Started running without debugging."))
|
|
853
|
+
: ( localize(5793, "Debugging started.")));
|
|
854
854
|
const sendConfigurationDone = async () => {
|
|
855
855
|
if (this.raw && this.raw.capabilities.supportsConfigurationDoneRequest) {
|
|
856
856
|
try {
|
|
@@ -897,7 +897,7 @@ let DebugSession = class DebugSession {
|
|
|
897
897
|
}
|
|
898
898
|
}));
|
|
899
899
|
this.rawListeners.add(this.raw.onDidTerminateDebugee(async (event) => {
|
|
900
|
-
status(( localize(
|
|
900
|
+
status(( localize(5794, "Debugging stopped.")));
|
|
901
901
|
if (event.body && event.body.restart) {
|
|
902
902
|
await this.debugService.restartSession(this, event.body.restart);
|
|
903
903
|
}
|
|
@@ -49,10 +49,10 @@ let DebugStatusContribution = class DebugStatusContribution {
|
|
|
49
49
|
text = (manager.getLaunches().length > 1 ? `${name} (${manager.selectedConfiguration.launch.name})` : name);
|
|
50
50
|
}
|
|
51
51
|
return {
|
|
52
|
-
name: ( localize(
|
|
52
|
+
name: ( localize(6038, "Debug")),
|
|
53
53
|
text: '$(debug-alt-small) ' + text,
|
|
54
|
-
ariaLabel: ( localize(
|
|
55
|
-
tooltip: ( localize(
|
|
54
|
+
ariaLabel: ( localize(6039, "Debug: {0}", text)),
|
|
55
|
+
tooltip: ( localize(6040, "Select and start debug configuration")),
|
|
56
56
|
command: 'workbench.action.debug.selectandstart'
|
|
57
57
|
};
|
|
58
58
|
}
|
|
@@ -70,17 +70,17 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
70
70
|
}
|
|
71
71
|
const taskLabel = typeof taskId === 'string' ? taskId : taskId ? taskId.name : '';
|
|
72
72
|
const message = errorCount > 1
|
|
73
|
-
? ( localize(
|
|
73
|
+
? ( localize(5795, "Errors exist after running preLaunchTask '{0}'.", taskLabel))
|
|
74
74
|
: errorCount === 1
|
|
75
|
-
? ( localize(
|
|
75
|
+
? ( localize(5796, "Error exists after running preLaunchTask '{0}'.", taskLabel))
|
|
76
76
|
: taskSummary && typeof taskSummary.exitCode === 'number'
|
|
77
77
|
? ( localize(
|
|
78
|
-
|
|
78
|
+
5797,
|
|
79
79
|
"The preLaunchTask '{0}' terminated with exit code {1}.",
|
|
80
80
|
taskLabel,
|
|
81
81
|
taskSummary.exitCode
|
|
82
82
|
))
|
|
83
|
-
: ( localize(
|
|
83
|
+
: ( localize(5798, "The preLaunchTask '{0}' terminated.", taskLabel));
|
|
84
84
|
let DebugChoice;
|
|
85
85
|
( ((function(DebugChoice) {
|
|
86
86
|
DebugChoice[DebugChoice["DebugAnyway"] = 1] = "DebugAnyway";
|
|
@@ -92,20 +92,20 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
92
92
|
message,
|
|
93
93
|
buttons: [
|
|
94
94
|
{
|
|
95
|
-
label: ( localize(
|
|
95
|
+
label: ( localize(5799, "&&Debug Anyway")),
|
|
96
96
|
run: () => DebugChoice.DebugAnyway
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
|
-
label: ( localize(
|
|
99
|
+
label: ( localize(5800, "&&Show Errors")),
|
|
100
100
|
run: () => DebugChoice.ShowErrors
|
|
101
101
|
}
|
|
102
102
|
],
|
|
103
103
|
cancelButton: {
|
|
104
|
-
label: ( localize(
|
|
104
|
+
label: ( localize(5801, "Abort")),
|
|
105
105
|
run: () => DebugChoice.Cancel
|
|
106
106
|
},
|
|
107
107
|
checkbox: {
|
|
108
|
-
label: ( localize(
|
|
108
|
+
label: ( localize(5802, "Remember my choice in user settings")),
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
const debugAnyway = result === DebugChoice.DebugAnyway;
|
|
@@ -141,7 +141,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
141
141
|
message: err.message,
|
|
142
142
|
buttons: [
|
|
143
143
|
{
|
|
144
|
-
label: ( localize(
|
|
144
|
+
label: ( localize(5799, "&&Debug Anyway")),
|
|
145
145
|
run: () => DebugChoice.DebugAnyway
|
|
146
146
|
},
|
|
147
147
|
{
|
|
@@ -153,7 +153,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
153
153
|
run: () => DebugChoice.Cancel
|
|
154
154
|
},
|
|
155
155
|
checkbox: {
|
|
156
|
-
label: ( localize(
|
|
156
|
+
label: ( localize(5803, "Remember my choice for this task"))
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
159
|
choice = result;
|
|
@@ -174,7 +174,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
174
174
|
}
|
|
175
175
|
if (!root) {
|
|
176
176
|
return Promise.reject(( (new Error(( localize(
|
|
177
|
-
|
|
177
|
+
5804,
|
|
178
178
|
"Task '{0}' can not be referenced from a launch configuration that is in a different workspace folder.",
|
|
179
179
|
typeof taskId === 'string' ? taskId : taskId.type
|
|
180
180
|
))))));
|
|
@@ -182,8 +182,8 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
182
182
|
const task = await this.taskService.getTask(root, taskId);
|
|
183
183
|
if (!task) {
|
|
184
184
|
const errorMessage = typeof taskId === 'string'
|
|
185
|
-
? ( localize(
|
|
186
|
-
: ( localize(
|
|
185
|
+
? ( localize(5805, "Could not find the task '{0}'.", taskId))
|
|
186
|
+
: ( localize(5806, "Could not find the specified task."));
|
|
187
187
|
return Promise.reject(createErrorWithActions(errorMessage, [( (new Action(
|
|
188
188
|
DEBUG_CONFIGURE_COMMAND_ID,
|
|
189
189
|
DEBUG_CONFIGURE_LABEL,
|
|
@@ -238,12 +238,12 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
238
238
|
if (!taskStarted) {
|
|
239
239
|
const errorMessage = typeof taskId === 'string'
|
|
240
240
|
? ( localize(
|
|
241
|
-
|
|
241
|
+
5807,
|
|
242
242
|
"The task '{0}' cannot be tracked. Make sure to have a problem matcher defined.",
|
|
243
243
|
taskId
|
|
244
244
|
))
|
|
245
245
|
: ( localize(
|
|
246
|
-
|
|
246
|
+
5808,
|
|
247
247
|
"The task '{0}' cannot be tracked. Make sure to have a problem matcher defined.",
|
|
248
248
|
JSON.stringify(taskId)
|
|
249
249
|
));
|
|
@@ -301,7 +301,7 @@ function createDisconnectMenuItemAction(action, disposables, accessor, options)
|
|
|
301
301
|
if (!secondary.length) {
|
|
302
302
|
return undefined;
|
|
303
303
|
}
|
|
304
|
-
const dropdownAction = disposables.add(( (new Action('notebook.moreRunActions', ( localize(
|
|
304
|
+
const dropdownAction = disposables.add(( (new Action('notebook.moreRunActions', ( localize(6041, "More...")), 'codicon-chevron-down', true))));
|
|
305
305
|
const item = instantiationService.createInstance(DropdownWithPrimaryActionViewItem, action, dropdownAction, secondary, 'debug-stop-actions', contextMenuService, options);
|
|
306
306
|
return item;
|
|
307
307
|
}
|
|
@@ -375,8 +375,8 @@ registerDebugToolBarItem(STEP_OVER_ID, STEP_OVER_LABEL, 20, debugStepOver, undef
|
|
|
375
375
|
registerDebugToolBarItem(STEP_INTO_ID, STEP_INTO_LABEL, 30, debugStepInto, undefined, ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
376
376
|
registerDebugToolBarItem(STEP_OUT_ID, STEP_OUT_LABEL, 40, debugStepOut, undefined, ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
377
377
|
registerDebugToolBarItem(RESTART_SESSION_ID, RESTART_LABEL, 60, debugRestart);
|
|
378
|
-
registerDebugToolBarItem(STEP_BACK_ID, ( localize(
|
|
379
|
-
registerDebugToolBarItem(REVERSE_CONTINUE_ID, ( localize(
|
|
378
|
+
registerDebugToolBarItem(STEP_BACK_ID, ( localize(6042, "Step Back")), 50, debugStepBack, CONTEXT_STEP_BACK_SUPPORTED, ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
379
|
+
registerDebugToolBarItem(REVERSE_CONTINUE_ID, ( localize(6043, "Reverse")), 55, debugReverseContinue, CONTEXT_STEP_BACK_SUPPORTED, ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
380
380
|
registerDebugToolBarItem(FOCUS_SESSION_ID, FOCUS_SESSION_LABEL, 100, Codicon.listTree, ( (ContextKeyExpr.and(
|
|
381
381
|
CONTEXT_MULTI_SESSION_DEBUG,
|
|
382
382
|
(CONTEXT_TOOLBAR_COMMAND_CENTER.negate())
|
|
@@ -179,10 +179,10 @@ registerAction2(class extends Action2 {
|
|
|
179
179
|
title: {
|
|
180
180
|
value: DEBUG_CONFIGURE_LABEL,
|
|
181
181
|
original: 'Open \'launch.json\'',
|
|
182
|
-
mnemonicTitle: ( localize(
|
|
182
|
+
mnemonicTitle: ( localize(6051, "Open &&Configurations"))
|
|
183
183
|
},
|
|
184
184
|
metadata: {
|
|
185
|
-
description: ( localize2(
|
|
185
|
+
description: ( localize2(6052, 'Opens the file used to configure how your program is debugged'))
|
|
186
186
|
},
|
|
187
187
|
f1: true,
|
|
188
188
|
icon: debugConfigure,
|
|
@@ -234,7 +234,7 @@ registerAction2(class extends Action2 {
|
|
|
234
234
|
const picked = await quickInputService.pick(picks, {
|
|
235
235
|
activeItem: picks[0],
|
|
236
236
|
placeHolder: ( localize(
|
|
237
|
-
|
|
237
|
+
6053,
|
|
238
238
|
"Select a workspace folder to create a launch.json file in or add it to the workspace config file"
|
|
239
239
|
))
|
|
240
240
|
});
|
|
@@ -252,7 +252,7 @@ registerAction2(class extends Action2 {
|
|
|
252
252
|
constructor() {
|
|
253
253
|
super({
|
|
254
254
|
id: 'debug.toggleReplIgnoreFocus',
|
|
255
|
-
title: ( localize(
|
|
255
|
+
title: ( localize(6054, "Debug Console")),
|
|
256
256
|
toggled: ( (ContextKeyExpr.has(`view.${REPL_VIEW_ID}.visible`))),
|
|
257
257
|
menu: [{
|
|
258
258
|
id: ViewsSubMenu,
|
|
@@ -284,7 +284,7 @@ MenuRegistry.appendMenuItem(MenuId.ViewContainerTitle, {
|
|
|
284
284
|
order: 10,
|
|
285
285
|
command: {
|
|
286
286
|
id: SELECT_AND_START_ID,
|
|
287
|
-
title: ( localize(
|
|
287
|
+
title: ( localize(6055, "Start Additional Session")),
|
|
288
288
|
}
|
|
289
289
|
});
|
|
290
290
|
|
|
@@ -56,7 +56,7 @@ const disassemblyNotAvailable = {
|
|
|
56
56
|
address: 0n,
|
|
57
57
|
instruction: {
|
|
58
58
|
address: '-1',
|
|
59
|
-
instruction: ( localize(
|
|
59
|
+
instruction: ( localize(6044, "Disassembly not available."))
|
|
60
60
|
},
|
|
61
61
|
};
|
|
62
62
|
let DisassemblyView = class DisassemblyView extends EditorPane {
|
|
@@ -170,7 +170,7 @@ let DisassemblyView = class DisassemblyView extends EditorPane {
|
|
|
170
170
|
project(row) { return row; }
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
|
-
label: ( localize(
|
|
173
|
+
label: ( localize(6045, "instructions")),
|
|
174
174
|
tooltip: '',
|
|
175
175
|
weight: 0.3,
|
|
176
176
|
templateId: InstructionRenderer.TEMPLATE_ID,
|
|
@@ -705,7 +705,7 @@ let InstructionRenderer = class InstructionRenderer extends Disposable {
|
|
|
705
705
|
};
|
|
706
706
|
this.editorService.openEditor({
|
|
707
707
|
resource: sourceURI,
|
|
708
|
-
description: ( localize(
|
|
708
|
+
description: ( localize(6046, "from disassembly")),
|
|
709
709
|
options: {
|
|
710
710
|
preserveFocus: false,
|
|
711
711
|
selection: selection,
|
|
@@ -740,18 +740,18 @@ InstructionRenderer = InstructionRenderer_1 = ( (__decorate([
|
|
|
740
740
|
], InstructionRenderer)));
|
|
741
741
|
class AccessibilityProvider {
|
|
742
742
|
getWidgetAriaLabel() {
|
|
743
|
-
return ( localize(
|
|
743
|
+
return ( localize(6047, "Disassembly View"));
|
|
744
744
|
}
|
|
745
745
|
getAriaLabel(element) {
|
|
746
746
|
let label = '';
|
|
747
747
|
const instruction = element.instruction;
|
|
748
748
|
if (instruction.address !== '-1') {
|
|
749
|
-
label += `${( localize(
|
|
749
|
+
label += `${( localize(6048, "Address"))}: ${instruction.address}`;
|
|
750
750
|
}
|
|
751
751
|
if (instruction.instructionBytes) {
|
|
752
|
-
label += `, ${( localize(
|
|
752
|
+
label += `, ${( localize(6049, "Bytes"))}: ${instruction.instructionBytes}`;
|
|
753
753
|
}
|
|
754
|
-
label += `, ${( localize(
|
|
754
|
+
label += `, ${( localize(6050, "Instruction"))}: ${instruction.instruction}`;
|
|
755
755
|
return label;
|
|
756
756
|
}
|
|
757
757
|
}
|
|
@@ -559,7 +559,7 @@ class LoadedScriptsRenderer {
|
|
|
559
559
|
options.fileKind = FileKind.ROOT_FOLDER;
|
|
560
560
|
}
|
|
561
561
|
else if (element instanceof SessionTreeItem) {
|
|
562
|
-
options.title = ( localize(
|
|
562
|
+
options.title = ( localize(6056, "Debug Session"));
|
|
563
563
|
options.hideIcon = true;
|
|
564
564
|
}
|
|
565
565
|
else if (element instanceof BaseTreeItem) {
|
|
@@ -581,20 +581,20 @@ class LoadedScriptsRenderer {
|
|
|
581
581
|
}
|
|
582
582
|
class LoadedSciptsAccessibilityProvider {
|
|
583
583
|
getWidgetAriaLabel() {
|
|
584
|
-
return ( localize(
|
|
584
|
+
return ( localize(6057, "Debug Loaded Scripts"));
|
|
585
585
|
}
|
|
586
586
|
getAriaLabel(element) {
|
|
587
587
|
if (element instanceof RootFolderTreeItem) {
|
|
588
|
-
return ( localize(
|
|
588
|
+
return ( localize(6058, "Workspace folder {0}, loaded script, debug", element.getLabel()));
|
|
589
589
|
}
|
|
590
590
|
if (element instanceof SessionTreeItem) {
|
|
591
|
-
return ( localize(
|
|
591
|
+
return ( localize(6059, "Session {0}, loaded script, debug", element.getLabel()));
|
|
592
592
|
}
|
|
593
593
|
if (element.hasChildren()) {
|
|
594
|
-
return ( localize(
|
|
594
|
+
return ( localize(6060, "Folder {0}, loaded script, debug", element.getLabel()));
|
|
595
595
|
}
|
|
596
596
|
else {
|
|
597
|
-
return ( localize(
|
|
597
|
+
return ( localize(6061, "{0}, loaded script, debug", element.getLabel()));
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
}
|
|
@@ -621,7 +621,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
621
621
|
super({
|
|
622
622
|
id: 'loadedScripts.collapse',
|
|
623
623
|
viewId: LOADED_SCRIPTS_VIEW_ID,
|
|
624
|
-
title: ( localize(
|
|
624
|
+
title: ( localize(6062, "Collapse All")),
|
|
625
625
|
f1: false,
|
|
626
626
|
icon: Codicon.collapseAll,
|
|
627
627
|
menu: {
|