@codingame/monaco-vscode-debug-service-override 9.0.0 → 9.0.3
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/debugActionViewItems.js +6 -6
- 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/debugHover.js +3 -3
- 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 +43 -43
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +17 -17
- 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/exceptionWidget.js +4 -4
- 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/repl.js +17 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +5 -5
- 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/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/debug/common/debugSchemas.js +44 -44
- 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
|
@@ -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(5771, "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(5771, "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(5771, "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(5771, "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(5771, "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(5772, "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(5771, "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(5773, "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(5771, "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
|
+
5771,
|
|
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(5771, "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(5771, "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(5771, "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(5771, "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(5771, "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(5771, "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(5771, "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(5771, "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(5771, "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(5771, "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(5771, "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(5771, "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(5771, "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(5771, "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(5771, "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(5771, "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(5771, "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(5771, "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(5771, "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(5771, "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(5771, "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(5771, "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(5771, "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,43 +712,43 @@ 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(5771, "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(5771, "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(5771, "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(5771, "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(5771, "No debugger available, can not send '{0}'", 'disassemble'))))));
|
|
742
742
|
}
|
|
743
743
|
return this.raw.writeMemory({ memoryReference, offset, allowPartial, data });
|
|
744
744
|
}
|
|
745
745
|
async resolveLocationReference(locationReference) {
|
|
746
746
|
if (!this.raw) {
|
|
747
|
-
throw ( (new Error(localize(
|
|
747
|
+
throw ( (new Error(localize(5771, "No debugger available, can not send '{0}'", 'locations'))));
|
|
748
748
|
}
|
|
749
749
|
const location = await this.raw.locations({ locationReference });
|
|
750
750
|
if (!location?.body) {
|
|
751
|
-
throw ( (new Error(localize(
|
|
751
|
+
throw ( (new Error(localize(5771, "No debugger available, can not send '{0}'", 'locations'))));
|
|
752
752
|
}
|
|
753
753
|
const source = this.getSource(location.body.source);
|
|
754
754
|
return { column: 1, ...location.body, source };
|
|
@@ -860,8 +860,8 @@ let DebugSession = class DebugSession {
|
|
|
860
860
|
}
|
|
861
861
|
this.rawListeners.add(this.raw.onDidInitialize(async () => {
|
|
862
862
|
status(this.configuration.noDebug
|
|
863
|
-
? ( localize(
|
|
864
|
-
: ( localize(
|
|
863
|
+
? ( localize(5774, "Started running without debugging."))
|
|
864
|
+
: ( localize(5775, "Debugging started.")));
|
|
865
865
|
const sendConfigurationDone = async () => {
|
|
866
866
|
if (this.raw && this.raw.capabilities.supportsConfigurationDoneRequest) {
|
|
867
867
|
try {
|
|
@@ -908,7 +908,7 @@ let DebugSession = class DebugSession {
|
|
|
908
908
|
}
|
|
909
909
|
}));
|
|
910
910
|
this.rawListeners.add(this.raw.onDidTerminateDebugee(async (event) => {
|
|
911
|
-
status(( localize(
|
|
911
|
+
status(( localize(5776, "Debugging stopped.")));
|
|
912
912
|
if (event.body && event.body.restart) {
|
|
913
913
|
await this.debugService.restartSession(this, event.body.restart);
|
|
914
914
|
}
|
|
@@ -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(6022, "Debug")),
|
|
53
53
|
text: '$(debug-alt-small) ' + text,
|
|
54
|
-
ariaLabel: ( localize(
|
|
55
|
-
tooltip: ( localize(
|
|
54
|
+
ariaLabel: ( localize(6023, "Debug: {0}", text)),
|
|
55
|
+
tooltip: ( localize(6024, "Select and start debug configuration")),
|
|
56
56
|
command: 'workbench.action.debug.selectandstart'
|
|
57
57
|
};
|
|
58
58
|
}
|
|
@@ -29,9 +29,9 @@ var TaskRunResult;
|
|
|
29
29
|
TaskRunResult[TaskRunResult["Success"] = 1] = "Success";
|
|
30
30
|
})(TaskRunResult || (TaskRunResult = {}))));
|
|
31
31
|
const DEBUG_TASK_ERROR_CHOICE_KEY = 'debug.taskerrorchoice';
|
|
32
|
-
const ABORT_LABEL = ( localize(
|
|
33
|
-
const DEBUG_ANYWAY_LABEL = ( localize(
|
|
34
|
-
const DEBUG_ANYWAY_LABEL_NO_MEMO = ( localize(
|
|
32
|
+
const ABORT_LABEL = ( localize(5777, "Abort"));
|
|
33
|
+
const DEBUG_ANYWAY_LABEL = ( localize(5778, "&&Debug Anyway"));
|
|
34
|
+
const DEBUG_ANYWAY_LABEL_NO_MEMO = ( localize(5779, "Debug Anyway"));
|
|
35
35
|
let DebugTaskRunner = class DebugTaskRunner {
|
|
36
36
|
constructor(taskService, markerService, configurationService, viewsService, dialogService, storageService, commandService, progressService) {
|
|
37
37
|
this.taskService = taskService;
|
|
@@ -73,17 +73,17 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
73
73
|
}
|
|
74
74
|
const taskLabel = typeof taskId === 'string' ? taskId : taskId ? taskId.name : '';
|
|
75
75
|
const message = errorCount > 1
|
|
76
|
-
? ( localize(
|
|
76
|
+
? ( localize(5780, "Errors exist after running preLaunchTask '{0}'.", taskLabel))
|
|
77
77
|
: errorCount === 1
|
|
78
|
-
? ( localize(
|
|
78
|
+
? ( localize(5781, "Error exists after running preLaunchTask '{0}'.", taskLabel))
|
|
79
79
|
: taskSummary && typeof taskSummary.exitCode === 'number'
|
|
80
80
|
? ( localize(
|
|
81
|
-
|
|
81
|
+
5782,
|
|
82
82
|
"The preLaunchTask '{0}' terminated with exit code {1}.",
|
|
83
83
|
taskLabel,
|
|
84
84
|
taskSummary.exitCode
|
|
85
85
|
))
|
|
86
|
-
: ( localize(
|
|
86
|
+
: ( localize(5783, "The preLaunchTask '{0}' terminated.", taskLabel));
|
|
87
87
|
let DebugChoice;
|
|
88
88
|
( ((function(DebugChoice) {
|
|
89
89
|
DebugChoice[DebugChoice["DebugAnyway"] = 1] = "DebugAnyway";
|
|
@@ -99,7 +99,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
99
99
|
run: () => DebugChoice.DebugAnyway
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
|
-
label: ( localize(
|
|
102
|
+
label: ( localize(5784, "&&Show Errors")),
|
|
103
103
|
run: () => DebugChoice.ShowErrors
|
|
104
104
|
}
|
|
105
105
|
],
|
|
@@ -108,7 +108,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
108
108
|
run: () => DebugChoice.Cancel
|
|
109
109
|
},
|
|
110
110
|
checkbox: {
|
|
111
|
-
label: ( localize(
|
|
111
|
+
label: ( localize(5785, "Remember my choice in user settings")),
|
|
112
112
|
}
|
|
113
113
|
});
|
|
114
114
|
const debugAnyway = result === DebugChoice.DebugAnyway;
|
|
@@ -144,7 +144,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
144
144
|
message: err.message,
|
|
145
145
|
buttons: [
|
|
146
146
|
{
|
|
147
|
-
label: ( localize(
|
|
147
|
+
label: ( localize(5778, "&&Debug Anyway")),
|
|
148
148
|
run: () => DebugChoice.DebugAnyway
|
|
149
149
|
},
|
|
150
150
|
{
|
|
@@ -156,7 +156,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
156
156
|
run: () => DebugChoice.Cancel
|
|
157
157
|
},
|
|
158
158
|
checkbox: {
|
|
159
|
-
label: ( localize(
|
|
159
|
+
label: ( localize(5786, "Remember my choice for this task"))
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
162
|
choice = result;
|
|
@@ -177,7 +177,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
177
177
|
}
|
|
178
178
|
if (!root) {
|
|
179
179
|
return Promise.reject(( (new Error(( localize(
|
|
180
|
-
|
|
180
|
+
5787,
|
|
181
181
|
"Task '{0}' can not be referenced from a launch configuration that is in a different workspace folder.",
|
|
182
182
|
typeof taskId === 'string' ? taskId : taskId.type
|
|
183
183
|
))))));
|
|
@@ -185,8 +185,8 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
185
185
|
const task = await this.taskService.getTask(root, taskId);
|
|
186
186
|
if (!task) {
|
|
187
187
|
const errorMessage = typeof taskId === 'string'
|
|
188
|
-
? ( localize(
|
|
189
|
-
: ( localize(
|
|
188
|
+
? ( localize(5788, "Could not find the task '{0}'.", taskId))
|
|
189
|
+
: ( localize(5789, "Could not find the specified task."));
|
|
190
190
|
return Promise.reject(createErrorWithActions(errorMessage, [( (new Action(
|
|
191
191
|
DEBUG_CONFIGURE_COMMAND_ID,
|
|
192
192
|
DEBUG_CONFIGURE_LABEL,
|
|
@@ -244,7 +244,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
244
244
|
store.add(disposableTimeout(() => {
|
|
245
245
|
if (!taskStarted) {
|
|
246
246
|
const errorMessage = ( localize(
|
|
247
|
-
|
|
247
|
+
5790,
|
|
248
248
|
"The task '{0}' has not exited and doesn't have a 'problemMatcher' defined. Make sure to define a problem matcher for watch tasks.",
|
|
249
249
|
typeof taskId === 'string' ? taskId : JSON.stringify(taskId)
|
|
250
250
|
));
|
|
@@ -253,14 +253,14 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
253
253
|
}, waitTime));
|
|
254
254
|
store.add(disposableTimeout(() => {
|
|
255
255
|
const message = ( localize(
|
|
256
|
-
|
|
256
|
+
5791,
|
|
257
257
|
"Waiting for preLaunchTask '{0}'...",
|
|
258
258
|
task.configurationProperties.name
|
|
259
259
|
));
|
|
260
260
|
const buttons = [DEBUG_ANYWAY_LABEL_NO_MEMO, ABORT_LABEL];
|
|
261
261
|
const canConfigure = task instanceof CustomTask || task instanceof ConfiguringTask;
|
|
262
262
|
if (canConfigure) {
|
|
263
|
-
buttons.splice(1, 0, ( localize(
|
|
263
|
+
buttons.splice(1, 0, ( localize(5792, "Configure Task")));
|
|
264
264
|
}
|
|
265
265
|
this.progressService.withProgress({ location: ProgressLocation.Notification, title: message, buttons }, () => result.catch(() => { }), (choice) => {
|
|
266
266
|
if (choice === undefined) ;
|
|
@@ -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(6025, "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(6026, "Step Back")), 50, debugStepBack, CONTEXT_STEP_BACK_SUPPORTED, ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
379
|
+
registerDebugToolBarItem(REVERSE_CONTINUE_ID, ( localize(6027, "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(6028, "Open &&Configurations"))
|
|
183
183
|
},
|
|
184
184
|
metadata: {
|
|
185
|
-
description: ( localize2(
|
|
185
|
+
description: ( localize2(6029, '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
|
+
6030,
|
|
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(6031, "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(6032, "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(6033, "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(6034, "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(6035, "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(6036, "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(6037, "Address"))}: ${instruction.address}`;
|
|
750
750
|
}
|
|
751
751
|
if (instruction.instructionBytes) {
|
|
752
|
-
label += `, ${( localize(
|
|
752
|
+
label += `, ${( localize(6038, "Bytes"))}: ${instruction.instructionBytes}`;
|
|
753
753
|
}
|
|
754
|
-
label += `, ${( localize(
|
|
754
|
+
label += `, ${( localize(6039, "Instruction"))}: ${instruction.instruction}`;
|
|
755
755
|
return label;
|
|
756
756
|
}
|
|
757
757
|
}
|
|
@@ -26,8 +26,8 @@ import { Action } from 'vscode/vscode/vs/base/common/actions';
|
|
|
26
26
|
import { widgetClose } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
|
|
27
27
|
|
|
28
28
|
const $ = $$1;
|
|
29
|
-
const debugExceptionWidgetBorder = registerColor('debugExceptionWidget.border', '#a31515', ( localize(
|
|
30
|
-
const debugExceptionWidgetBackground = registerColor('debugExceptionWidget.background', { dark: '#420b0d', light: '#f1dfde', hcDark: '#420b0d', hcLight: '#f1dfde' }, ( localize(
|
|
29
|
+
const debugExceptionWidgetBorder = registerColor('debugExceptionWidget.border', '#a31515', ( localize(10286, 'Exception widget border color.')));
|
|
30
|
+
const debugExceptionWidgetBackground = registerColor('debugExceptionWidget.background', { dark: '#420b0d', light: '#f1dfde', hcDark: '#420b0d', hcLight: '#f1dfde' }, ( localize(10287, 'Exception widget background color.')));
|
|
31
31
|
let ExceptionWidget = class ExceptionWidget extends ZoneWidget {
|
|
32
32
|
constructor(editor, exceptionInfo, debugSession, themeService, instantiationService) {
|
|
33
33
|
super(editor, { showFrame: true, showArrow: true, isAccessible: true, frameWidth: 1, className: 'exception-widget-container' });
|
|
@@ -66,10 +66,10 @@ let ExceptionWidget = class ExceptionWidget extends ZoneWidget {
|
|
|
66
66
|
append(title, label);
|
|
67
67
|
const actions = $('.actions');
|
|
68
68
|
append(title, actions);
|
|
69
|
-
label.textContent = this.exceptionInfo.id ? ( localize(
|
|
69
|
+
label.textContent = this.exceptionInfo.id ? ( localize(10288, 'Exception has occurred: {0}', this.exceptionInfo.id)) : ( localize(10289, 'Exception has occurred.'));
|
|
70
70
|
let ariaLabel = label.textContent;
|
|
71
71
|
const actionBar = ( (new ActionBar(actions)));
|
|
72
|
-
actionBar.push(( (new Action('editor.closeExceptionWidget', ( localize(
|
|
72
|
+
actionBar.push(( (new Action('editor.closeExceptionWidget', ( localize(10290, "Close")), ThemeIcon.asClassName(widgetClose), true, async () => {
|
|
73
73
|
const contribution = this.editor.getContribution(EDITOR_CONTRIBUTION_ID);
|
|
74
74
|
contribution?.closeExceptionWidget();
|
|
75
75
|
}))), { label: false, icon: true });
|