@codingame/monaco-vscode-debug-service-override 23.0.2 → 23.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +15 -15
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +112 -112
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.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 +24 -24
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +9 -9
- 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/loadedScriptsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +8 -8
- 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 +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
|
@@ -291,7 +291,7 @@ let DebugSession = class DebugSession {
|
|
|
291
291
|
}
|
|
292
292
|
async launchOrAttach(config) {
|
|
293
293
|
if (!this.raw) {
|
|
294
|
-
throw ( new Error(( localize(
|
|
294
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'launch or attach'))));
|
|
295
295
|
}
|
|
296
296
|
if (this.parentSession && this.parentSession.state === State.Inactive) {
|
|
297
297
|
throw canceled();
|
|
@@ -351,7 +351,7 @@ let DebugSession = class DebugSession {
|
|
|
351
351
|
}
|
|
352
352
|
async restart() {
|
|
353
353
|
if (!this.raw) {
|
|
354
|
-
throw ( new Error(( localize(
|
|
354
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'restart'))));
|
|
355
355
|
}
|
|
356
356
|
this.cancelAllRequests();
|
|
357
357
|
if (this._options.lifecycleManagedByParent && this.parentSession) {
|
|
@@ -363,7 +363,7 @@ let DebugSession = class DebugSession {
|
|
|
363
363
|
}
|
|
364
364
|
async sendBreakpoints(modelUri, breakpointsToSend, sourceModified) {
|
|
365
365
|
if (!this.raw) {
|
|
366
|
-
throw ( new Error(( localize(
|
|
366
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'breakpoints'))));
|
|
367
367
|
}
|
|
368
368
|
if (!this.raw.readyForBreakpoints) {
|
|
369
369
|
return Promise.resolve(undefined);
|
|
@@ -391,7 +391,7 @@ let DebugSession = class DebugSession {
|
|
|
391
391
|
}
|
|
392
392
|
async sendFunctionBreakpoints(fbpts) {
|
|
393
393
|
if (!this.raw) {
|
|
394
|
-
throw ( new Error(( localize(
|
|
394
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'function breakpoints'))));
|
|
395
395
|
}
|
|
396
396
|
if (this.raw.readyForBreakpoints) {
|
|
397
397
|
const response = await this.raw.setFunctionBreakpoints({ breakpoints: ( fbpts.map(bp => bp.toDAP())) });
|
|
@@ -406,7 +406,7 @@ let DebugSession = class DebugSession {
|
|
|
406
406
|
}
|
|
407
407
|
async sendExceptionBreakpoints(exbpts) {
|
|
408
408
|
if (!this.raw) {
|
|
409
|
-
throw ( new Error(( localize(
|
|
409
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'exception breakpoints'))));
|
|
410
410
|
}
|
|
411
411
|
if (this.raw.readyForBreakpoints) {
|
|
412
412
|
const args = this.capabilities.supportsExceptionFilterOptions ? {
|
|
@@ -430,7 +430,7 @@ let DebugSession = class DebugSession {
|
|
|
430
430
|
}
|
|
431
431
|
dataBytesBreakpointInfo(address, bytes) {
|
|
432
432
|
if (this.raw?.capabilities.supportsDataBreakpointBytes === false) {
|
|
433
|
-
throw ( new Error(( localize(
|
|
433
|
+
throw ( new Error(( localize(6713, "Session does not support breakpoints with bytes"))));
|
|
434
434
|
}
|
|
435
435
|
return this._dataBreakpointInfo({ name: address, bytes, asAddress: true });
|
|
436
436
|
}
|
|
@@ -439,17 +439,17 @@ let DebugSession = class DebugSession {
|
|
|
439
439
|
}
|
|
440
440
|
async _dataBreakpointInfo(args) {
|
|
441
441
|
if (!this.raw) {
|
|
442
|
-
throw ( new Error(( localize(
|
|
442
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'data breakpoints info'))));
|
|
443
443
|
}
|
|
444
444
|
if (!this.raw.readyForBreakpoints) {
|
|
445
|
-
throw ( new Error(( localize(
|
|
445
|
+
throw ( new Error(( localize(6714, "Session is not ready for breakpoints"))));
|
|
446
446
|
}
|
|
447
447
|
const response = await this.raw.dataBreakpointInfo(args);
|
|
448
448
|
return response?.body;
|
|
449
449
|
}
|
|
450
450
|
async sendDataBreakpoints(dataBreakpoints) {
|
|
451
451
|
if (!this.raw) {
|
|
452
|
-
throw ( new Error(( localize(
|
|
452
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'data breakpoints'))));
|
|
453
453
|
}
|
|
454
454
|
if (this.raw.readyForBreakpoints) {
|
|
455
455
|
const converted = await Promise.all(( dataBreakpoints.map(async (bp) => {
|
|
@@ -480,7 +480,7 @@ let DebugSession = class DebugSession {
|
|
|
480
480
|
async sendInstructionBreakpoints(instructionBreakpoints) {
|
|
481
481
|
if (!this.raw) {
|
|
482
482
|
throw ( new Error(( localize(
|
|
483
|
-
|
|
483
|
+
6712,
|
|
484
484
|
"No debugger available, can not send '{0}'",
|
|
485
485
|
'instruction breakpoints'
|
|
486
486
|
))));
|
|
@@ -498,7 +498,7 @@ let DebugSession = class DebugSession {
|
|
|
498
498
|
}
|
|
499
499
|
async breakpointsLocations(uri, lineNumber) {
|
|
500
500
|
if (!this.raw) {
|
|
501
|
-
throw ( new Error(( localize(
|
|
501
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'breakpoints locations'))));
|
|
502
502
|
}
|
|
503
503
|
const source = this.getRawSource(uri);
|
|
504
504
|
const response = await this.raw.breakpointLocations({ source, line: lineNumber });
|
|
@@ -513,20 +513,20 @@ let DebugSession = class DebugSession {
|
|
|
513
513
|
}
|
|
514
514
|
customRequest(request, args) {
|
|
515
515
|
if (!this.raw) {
|
|
516
|
-
throw ( new Error(( localize(
|
|
516
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", request))));
|
|
517
517
|
}
|
|
518
518
|
return this.raw.custom(request, args);
|
|
519
519
|
}
|
|
520
520
|
stackTrace(threadId, startFrame, levels, token) {
|
|
521
521
|
if (!this.raw) {
|
|
522
|
-
throw ( new Error(( localize(
|
|
522
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'stackTrace'))));
|
|
523
523
|
}
|
|
524
524
|
const sessionToken = this.getNewCancellationToken(threadId, token);
|
|
525
525
|
return this.raw.stackTrace({ threadId, startFrame, levels }, sessionToken);
|
|
526
526
|
}
|
|
527
527
|
async exceptionInfo(threadId) {
|
|
528
528
|
if (!this.raw) {
|
|
529
|
-
throw ( new Error(( localize(
|
|
529
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'exceptionInfo'))));
|
|
530
530
|
}
|
|
531
531
|
const response = await this.raw.exceptionInfo({ threadId });
|
|
532
532
|
if (response) {
|
|
@@ -541,28 +541,28 @@ let DebugSession = class DebugSession {
|
|
|
541
541
|
}
|
|
542
542
|
scopes(frameId, threadId) {
|
|
543
543
|
if (!this.raw) {
|
|
544
|
-
throw ( new Error(( localize(
|
|
544
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'scopes'))));
|
|
545
545
|
}
|
|
546
546
|
const token = this.getNewCancellationToken(threadId);
|
|
547
547
|
return this.raw.scopes({ frameId }, token);
|
|
548
548
|
}
|
|
549
549
|
variables(variablesReference, threadId, filter, start, count) {
|
|
550
550
|
if (!this.raw) {
|
|
551
|
-
throw ( new Error(( localize(
|
|
551
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'variables'))));
|
|
552
552
|
}
|
|
553
553
|
const token = threadId ? this.getNewCancellationToken(threadId) : undefined;
|
|
554
554
|
return this.raw.variables({ variablesReference, filter, start, count }, token);
|
|
555
555
|
}
|
|
556
556
|
evaluate(expression, frameId, context, location) {
|
|
557
557
|
if (!this.raw) {
|
|
558
|
-
throw ( new Error(( localize(
|
|
558
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'evaluate'))));
|
|
559
559
|
}
|
|
560
560
|
return this.raw.evaluate({ expression, frameId, context, line: location?.line, column: location?.column, source: location?.source });
|
|
561
561
|
}
|
|
562
562
|
async restartFrame(frameId, threadId) {
|
|
563
563
|
await this.waitForTriggeredBreakpoints();
|
|
564
564
|
if (!this.raw) {
|
|
565
|
-
throw ( new Error(( localize(
|
|
565
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'restartFrame'))));
|
|
566
566
|
}
|
|
567
567
|
await this.raw.restartFrame({ frameId }, threadId);
|
|
568
568
|
}
|
|
@@ -575,7 +575,7 @@ let DebugSession = class DebugSession {
|
|
|
575
575
|
async next(threadId, granularity) {
|
|
576
576
|
await this.waitForTriggeredBreakpoints();
|
|
577
577
|
if (!this.raw) {
|
|
578
|
-
throw ( new Error(( localize(
|
|
578
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'next'))));
|
|
579
579
|
}
|
|
580
580
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
581
581
|
await this.raw.next({ threadId, granularity });
|
|
@@ -583,7 +583,7 @@ let DebugSession = class DebugSession {
|
|
|
583
583
|
async stepIn(threadId, targetId, granularity) {
|
|
584
584
|
await this.waitForTriggeredBreakpoints();
|
|
585
585
|
if (!this.raw) {
|
|
586
|
-
throw ( new Error(( localize(
|
|
586
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'stepIn'))));
|
|
587
587
|
}
|
|
588
588
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
589
589
|
await this.raw.stepIn({ threadId, targetId, granularity });
|
|
@@ -591,7 +591,7 @@ let DebugSession = class DebugSession {
|
|
|
591
591
|
async stepOut(threadId, granularity) {
|
|
592
592
|
await this.waitForTriggeredBreakpoints();
|
|
593
593
|
if (!this.raw) {
|
|
594
|
-
throw ( new Error(( localize(
|
|
594
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'stepOut'))));
|
|
595
595
|
}
|
|
596
596
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
597
597
|
await this.raw.stepOut({ threadId, granularity });
|
|
@@ -599,7 +599,7 @@ let DebugSession = class DebugSession {
|
|
|
599
599
|
async stepBack(threadId, granularity) {
|
|
600
600
|
await this.waitForTriggeredBreakpoints();
|
|
601
601
|
if (!this.raw) {
|
|
602
|
-
throw ( new Error(( localize(
|
|
602
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'stepBack'))));
|
|
603
603
|
}
|
|
604
604
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
605
605
|
await this.raw.stepBack({ threadId, granularity });
|
|
@@ -607,56 +607,56 @@ let DebugSession = class DebugSession {
|
|
|
607
607
|
async continue(threadId) {
|
|
608
608
|
await this.waitForTriggeredBreakpoints();
|
|
609
609
|
if (!this.raw) {
|
|
610
|
-
throw ( new Error(( localize(
|
|
610
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'continue'))));
|
|
611
611
|
}
|
|
612
612
|
await this.raw.continue({ threadId });
|
|
613
613
|
}
|
|
614
614
|
async reverseContinue(threadId) {
|
|
615
615
|
await this.waitForTriggeredBreakpoints();
|
|
616
616
|
if (!this.raw) {
|
|
617
|
-
throw ( new Error(( localize(
|
|
617
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'reverse continue'))));
|
|
618
618
|
}
|
|
619
619
|
await this.raw.reverseContinue({ threadId });
|
|
620
620
|
}
|
|
621
621
|
async pause(threadId) {
|
|
622
622
|
if (!this.raw) {
|
|
623
|
-
throw ( new Error(( localize(
|
|
623
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'pause'))));
|
|
624
624
|
}
|
|
625
625
|
await this.raw.pause({ threadId });
|
|
626
626
|
}
|
|
627
627
|
async terminateThreads(threadIds) {
|
|
628
628
|
if (!this.raw) {
|
|
629
|
-
throw ( new Error(( localize(
|
|
629
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'terminateThreads'))));
|
|
630
630
|
}
|
|
631
631
|
await this.raw.terminateThreads({ threadIds });
|
|
632
632
|
}
|
|
633
633
|
setVariable(variablesReference, name, value) {
|
|
634
634
|
if (!this.raw) {
|
|
635
|
-
throw ( new Error(( localize(
|
|
635
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'setVariable'))));
|
|
636
636
|
}
|
|
637
637
|
return this.raw.setVariable({ variablesReference, name, value });
|
|
638
638
|
}
|
|
639
639
|
setExpression(frameId, expression, value) {
|
|
640
640
|
if (!this.raw) {
|
|
641
|
-
throw ( new Error(( localize(
|
|
641
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'setExpression'))));
|
|
642
642
|
}
|
|
643
643
|
return this.raw.setExpression({ expression, value, frameId });
|
|
644
644
|
}
|
|
645
645
|
gotoTargets(source, line, column) {
|
|
646
646
|
if (!this.raw) {
|
|
647
|
-
throw ( new Error(( localize(
|
|
647
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'gotoTargets'))));
|
|
648
648
|
}
|
|
649
649
|
return this.raw.gotoTargets({ source, line, column });
|
|
650
650
|
}
|
|
651
651
|
goto(threadId, targetId) {
|
|
652
652
|
if (!this.raw) {
|
|
653
|
-
throw ( new Error(( localize(
|
|
653
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'goto'))));
|
|
654
654
|
}
|
|
655
655
|
return this.raw.goto({ threadId, targetId });
|
|
656
656
|
}
|
|
657
657
|
loadSource(resource) {
|
|
658
658
|
if (!this.raw) {
|
|
659
|
-
return Promise.reject(( new Error(( localize(
|
|
659
|
+
return Promise.reject(( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'loadSource')))));
|
|
660
660
|
}
|
|
661
661
|
const source = this.getSourceForUri(resource);
|
|
662
662
|
let rawSource;
|
|
@@ -671,7 +671,7 @@ let DebugSession = class DebugSession {
|
|
|
671
671
|
}
|
|
672
672
|
async getLoadedSources() {
|
|
673
673
|
if (!this.raw) {
|
|
674
|
-
return Promise.reject(( new Error(( localize(
|
|
674
|
+
return Promise.reject(( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'getLoadedSources')))));
|
|
675
675
|
}
|
|
676
676
|
const response = await this.raw.loadedSources({});
|
|
677
677
|
if (response?.body && response.body.sources) {
|
|
@@ -683,7 +683,7 @@ let DebugSession = class DebugSession {
|
|
|
683
683
|
}
|
|
684
684
|
async completions(frameId, threadId, text, position, token) {
|
|
685
685
|
if (!this.raw) {
|
|
686
|
-
return Promise.reject(( new Error(( localize(
|
|
686
|
+
return Promise.reject(( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'completions')))));
|
|
687
687
|
}
|
|
688
688
|
const sessionCancelationToken = this.getNewCancellationToken(threadId, token);
|
|
689
689
|
return this.raw.completions({
|
|
@@ -695,43 +695,43 @@ let DebugSession = class DebugSession {
|
|
|
695
695
|
}
|
|
696
696
|
async stepInTargets(frameId) {
|
|
697
697
|
if (!this.raw) {
|
|
698
|
-
return Promise.reject(( new Error(( localize(
|
|
698
|
+
return Promise.reject(( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'stepInTargets')))));
|
|
699
699
|
}
|
|
700
700
|
const response = await this.raw.stepInTargets({ frameId });
|
|
701
701
|
return response?.body.targets;
|
|
702
702
|
}
|
|
703
703
|
async cancel(progressId) {
|
|
704
704
|
if (!this.raw) {
|
|
705
|
-
return Promise.reject(( new Error(( localize(
|
|
705
|
+
return Promise.reject(( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'cancel')))));
|
|
706
706
|
}
|
|
707
707
|
return this.raw.cancel({ progressId });
|
|
708
708
|
}
|
|
709
709
|
async disassemble(memoryReference, offset, instructionOffset, instructionCount) {
|
|
710
710
|
if (!this.raw) {
|
|
711
|
-
return Promise.reject(( new Error(( localize(
|
|
711
|
+
return Promise.reject(( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'disassemble')))));
|
|
712
712
|
}
|
|
713
713
|
const response = await this.raw.disassemble({ memoryReference, offset, instructionOffset, instructionCount, resolveSymbols: true });
|
|
714
714
|
return response?.body?.instructions;
|
|
715
715
|
}
|
|
716
716
|
readMemory(memoryReference, offset, count) {
|
|
717
717
|
if (!this.raw) {
|
|
718
|
-
return Promise.reject(( new Error(( localize(
|
|
718
|
+
return Promise.reject(( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'readMemory')))));
|
|
719
719
|
}
|
|
720
720
|
return this.raw.readMemory({ count, memoryReference, offset });
|
|
721
721
|
}
|
|
722
722
|
writeMemory(memoryReference, offset, data, allowPartial) {
|
|
723
723
|
if (!this.raw) {
|
|
724
|
-
return Promise.reject(( new Error(( localize(
|
|
724
|
+
return Promise.reject(( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'disassemble')))));
|
|
725
725
|
}
|
|
726
726
|
return this.raw.writeMemory({ memoryReference, offset, allowPartial, data });
|
|
727
727
|
}
|
|
728
728
|
async resolveLocationReference(locationReference) {
|
|
729
729
|
if (!this.raw) {
|
|
730
|
-
throw ( new Error(( localize(
|
|
730
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'locations'))));
|
|
731
731
|
}
|
|
732
732
|
const location = await this.raw.locations({ locationReference });
|
|
733
733
|
if (!location?.body) {
|
|
734
|
-
throw ( new Error(( localize(
|
|
734
|
+
throw ( new Error(( localize(6712, "No debugger available, can not send '{0}'", 'locations'))));
|
|
735
735
|
}
|
|
736
736
|
const source = this.getSource(location.body.source);
|
|
737
737
|
return { column: 1, ...location.body, source };
|
|
@@ -843,8 +843,8 @@ let DebugSession = class DebugSession {
|
|
|
843
843
|
}
|
|
844
844
|
this.rawListeners.add(this.raw.onDidInitialize(async () => {
|
|
845
845
|
status(this.configuration.noDebug
|
|
846
|
-
? ( localize(
|
|
847
|
-
: ( localize(
|
|
846
|
+
? ( localize(6715, "Started running without debugging."))
|
|
847
|
+
: ( localize(6716, "Debugging started.")));
|
|
848
848
|
const sendConfigurationDone = async () => {
|
|
849
849
|
if (this.raw && this.raw.capabilities.supportsConfigurationDoneRequest) {
|
|
850
850
|
try {
|
|
@@ -891,7 +891,7 @@ let DebugSession = class DebugSession {
|
|
|
891
891
|
}
|
|
892
892
|
}));
|
|
893
893
|
this.rawListeners.add(this.raw.onDidTerminateDebugee(async (event) => {
|
|
894
|
-
status(( localize(
|
|
894
|
+
status(( localize(6717, "Debugging stopped.")));
|
|
895
895
|
if (event.body && event.body.restart) {
|
|
896
896
|
await this.debugService.restartSession(this, event.body.restart);
|
|
897
897
|
}
|
|
@@ -50,10 +50,10 @@ let DebugStatusContribution = class DebugStatusContribution {
|
|
|
50
50
|
text = (manager.getLaunches().length > 1 ? `${name} (${manager.selectedConfiguration.launch.name})` : name);
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
|
-
name: ( localize(
|
|
53
|
+
name: ( localize(6721, "Debug")),
|
|
54
54
|
text: '$(debug-alt-small) ' + text,
|
|
55
|
-
ariaLabel: ( localize(
|
|
56
|
-
tooltip: ( localize(
|
|
55
|
+
ariaLabel: ( localize(6722, "Debug: {0}", text)),
|
|
56
|
+
tooltip: ( localize(6723, "Select and Start Debug Configuration")),
|
|
57
57
|
command: 'workbench.action.debug.selectandstart'
|
|
58
58
|
};
|
|
59
59
|
}
|
|
@@ -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(6724, "Abort"));
|
|
34
|
+
const DEBUG_ANYWAY_LABEL = ( localize(6725, "&&Debug Anyway"));
|
|
35
|
+
const DEBUG_ANYWAY_LABEL_NO_MEMO = ( localize(6726, "Debug Anyway"));
|
|
36
36
|
let DebugTaskRunner = class DebugTaskRunner {
|
|
37
37
|
constructor(taskService, markerService, configurationService, viewsService, dialogService, storageService, commandService, progressService) {
|
|
38
38
|
this.taskService = taskService;
|
|
@@ -74,17 +74,17 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
74
74
|
}
|
|
75
75
|
const taskLabel = typeof taskId === 'string' ? taskId : taskId ? taskId.name : '';
|
|
76
76
|
const message = errorCount > 1
|
|
77
|
-
? ( localize(
|
|
77
|
+
? ( localize(6727, "Errors exist after running preLaunchTask '{0}'.", taskLabel))
|
|
78
78
|
: errorCount === 1
|
|
79
|
-
? ( localize(
|
|
79
|
+
? ( localize(6728, "Error exists after running preLaunchTask '{0}'.", taskLabel))
|
|
80
80
|
: taskSummary && typeof taskSummary.exitCode === 'number'
|
|
81
81
|
? ( localize(
|
|
82
|
-
|
|
82
|
+
6729,
|
|
83
83
|
"The preLaunchTask '{0}' terminated with exit code {1}.",
|
|
84
84
|
taskLabel,
|
|
85
85
|
taskSummary.exitCode
|
|
86
86
|
))
|
|
87
|
-
: ( localize(
|
|
87
|
+
: ( localize(6730, "The preLaunchTask '{0}' terminated.", taskLabel));
|
|
88
88
|
let DebugChoice;
|
|
89
89
|
(function (DebugChoice) {
|
|
90
90
|
DebugChoice[DebugChoice["DebugAnyway"] = 1] = "DebugAnyway";
|
|
@@ -100,7 +100,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
100
100
|
run: () => DebugChoice.DebugAnyway
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
|
-
label: ( localize(
|
|
103
|
+
label: ( localize(6731, "&&Show Errors")),
|
|
104
104
|
run: () => DebugChoice.ShowErrors
|
|
105
105
|
}
|
|
106
106
|
],
|
|
@@ -109,7 +109,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
109
109
|
run: () => DebugChoice.Cancel
|
|
110
110
|
},
|
|
111
111
|
checkbox: {
|
|
112
|
-
label: ( localize(
|
|
112
|
+
label: ( localize(6732, "Remember my choice in user settings")),
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
const debugAnyway = result === DebugChoice.DebugAnyway;
|
|
@@ -145,7 +145,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
145
145
|
message: err.message,
|
|
146
146
|
buttons: [
|
|
147
147
|
{
|
|
148
|
-
label: ( localize(
|
|
148
|
+
label: ( localize(6725, "&&Debug Anyway")),
|
|
149
149
|
run: () => DebugChoice.DebugAnyway
|
|
150
150
|
},
|
|
151
151
|
{
|
|
@@ -157,7 +157,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
157
157
|
run: () => DebugChoice.Cancel
|
|
158
158
|
},
|
|
159
159
|
checkbox: {
|
|
160
|
-
label: ( localize(
|
|
160
|
+
label: ( localize(6733, "Remember my choice for this task"))
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
163
|
choice = result;
|
|
@@ -178,7 +178,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
178
178
|
}
|
|
179
179
|
if (!root) {
|
|
180
180
|
return Promise.reject(( new Error(( localize(
|
|
181
|
-
|
|
181
|
+
6734,
|
|
182
182
|
"Task '{0}' can not be referenced from a launch configuration that is in a different workspace folder.",
|
|
183
183
|
typeof taskId === 'string' ? taskId : taskId.type
|
|
184
184
|
)))));
|
|
@@ -186,8 +186,8 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
186
186
|
const task = await this.taskService.getTask(root, taskId);
|
|
187
187
|
if (!task) {
|
|
188
188
|
const errorMessage = typeof taskId === 'string'
|
|
189
|
-
? ( localize(
|
|
190
|
-
: ( localize(
|
|
189
|
+
? ( localize(6735, "Could not find the task '{0}'.", taskId))
|
|
190
|
+
: ( localize(6736, "Could not find the specified task."));
|
|
191
191
|
return Promise.reject(createErrorWithActions(errorMessage, [toAction({ id: DEBUG_CONFIGURE_COMMAND_ID, label: DEBUG_CONFIGURE_LABEL, enabled: true, run: () => this.commandService.executeCommand(DEBUG_CONFIGURE_COMMAND_ID) })]));
|
|
192
192
|
}
|
|
193
193
|
let taskStarted = false;
|
|
@@ -239,7 +239,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
239
239
|
store.add(disposableTimeout(() => {
|
|
240
240
|
if (!taskStarted) {
|
|
241
241
|
const errorMessage = ( localize(
|
|
242
|
-
|
|
242
|
+
6737,
|
|
243
243
|
"The task '{0}' has not exited and doesn't have a 'problemMatcher' defined. Make sure to define a problem matcher for watch tasks.",
|
|
244
244
|
typeof taskId === 'string' ? taskId : JSON.stringify(taskId)
|
|
245
245
|
));
|
|
@@ -250,14 +250,14 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
250
250
|
if (!hideSlowPreLaunchWarning) {
|
|
251
251
|
store.add(disposableTimeout(() => {
|
|
252
252
|
const message = ( localize(
|
|
253
|
-
|
|
253
|
+
6738,
|
|
254
254
|
"Waiting for preLaunchTask '{0}'...",
|
|
255
255
|
task.configurationProperties.name
|
|
256
256
|
));
|
|
257
257
|
const buttons = [DEBUG_ANYWAY_LABEL_NO_MEMO, ABORT_LABEL];
|
|
258
258
|
const canConfigure = task instanceof CustomTask || task instanceof ConfiguringTask;
|
|
259
259
|
if (canConfigure) {
|
|
260
|
-
buttons.splice(1, 0, ( localize(
|
|
260
|
+
buttons.splice(1, 0, ( localize(6739, "Configure Task")));
|
|
261
261
|
}
|
|
262
262
|
this.progressService.withProgress({ location: ProgressLocation.Notification, title: message, buttons }, () => result.catch(() => { }), (choice) => {
|
|
263
263
|
if (choice === undefined) ;
|
|
@@ -312,7 +312,7 @@ function createDisconnectMenuItemAction(action, disposables, accessor, options)
|
|
|
312
312
|
if (!secondary.length) {
|
|
313
313
|
return undefined;
|
|
314
314
|
}
|
|
315
|
-
const dropdownAction = disposables.add(( new Action('notebook.moreRunActions', ( localize(
|
|
315
|
+
const dropdownAction = disposables.add(( new Action('notebook.moreRunActions', ( localize(6740, "More...")), 'codicon-chevron-down', true)));
|
|
316
316
|
const item = instantiationService.createInstance(DropdownWithPrimaryActionViewItem, action, dropdownAction, secondary, 'debug-stop-actions', options);
|
|
317
317
|
return item;
|
|
318
318
|
}
|
|
@@ -370,8 +370,8 @@ registerDebugToolBarItem(STEP_OVER_ID, STEP_OVER_LABEL, 20, debugStepOver, undef
|
|
|
370
370
|
registerDebugToolBarItem(STEP_INTO_ID, STEP_INTO_LABEL, 30, debugStepInto, undefined, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
371
371
|
registerDebugToolBarItem(STEP_OUT_ID, STEP_OUT_LABEL, 40, debugStepOut, undefined, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
372
372
|
registerDebugToolBarItem(RESTART_SESSION_ID, RESTART_LABEL, 60, debugRestart);
|
|
373
|
-
registerDebugToolBarItem(STEP_BACK_ID, ( localize(
|
|
374
|
-
registerDebugToolBarItem(REVERSE_CONTINUE_ID, ( localize(
|
|
373
|
+
registerDebugToolBarItem(STEP_BACK_ID, ( localize(6741, "Step Back")), 50, debugStepBack, CONTEXT_STEP_BACK_SUPPORTED, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
374
|
+
registerDebugToolBarItem(REVERSE_CONTINUE_ID, ( localize(6742, "Reverse")), 55, debugReverseContinue, CONTEXT_STEP_BACK_SUPPORTED, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
375
375
|
registerDebugToolBarItem(FOCUS_SESSION_ID, FOCUS_SESSION_LABEL, 100, Codicon.listTree, ( ContextKeyExpr.and(CONTEXT_MULTI_SESSION_DEBUG, ( CONTEXT_TOOLBAR_COMMAND_CENTER.negate()))));
|
|
376
376
|
MenuRegistry.appendMenuItem(MenuId.DebugToolBarStop, {
|
|
377
377
|
group: 'navigation',
|
|
@@ -171,10 +171,10 @@ registerAction2(class extends Action2 {
|
|
|
171
171
|
title: {
|
|
172
172
|
value: DEBUG_CONFIGURE_LABEL,
|
|
173
173
|
original: 'Open \'launch.json\'',
|
|
174
|
-
mnemonicTitle: ( localize(
|
|
174
|
+
mnemonicTitle: ( localize(6743, "Open &&Configurations"))
|
|
175
175
|
},
|
|
176
176
|
metadata: {
|
|
177
|
-
description: ( localize2(
|
|
177
|
+
description: ( localize2(6744, 'Opens the file used to configure how your program is debugged'))
|
|
178
178
|
},
|
|
179
179
|
f1: true,
|
|
180
180
|
icon: debugConfigure,
|
|
@@ -214,7 +214,7 @@ registerAction2(class extends Action2 {
|
|
|
214
214
|
const picked = await quickInputService.pick(picks, {
|
|
215
215
|
activeItem: picks[0],
|
|
216
216
|
placeHolder: ( localize(
|
|
217
|
-
|
|
217
|
+
6745,
|
|
218
218
|
"Select a workspace folder to create a launch.json file in or add it to the workspace config file"
|
|
219
219
|
))
|
|
220
220
|
});
|
|
@@ -238,7 +238,7 @@ registerAction2(class extends Action2 {
|
|
|
238
238
|
constructor() {
|
|
239
239
|
super({
|
|
240
240
|
id: 'debug.toggleReplIgnoreFocus',
|
|
241
|
-
title: ( localize(
|
|
241
|
+
title: ( localize(6746, "Debug Console")),
|
|
242
242
|
toggled: ( ContextKeyExpr.has(`view.${REPL_VIEW_ID}.visible`)),
|
|
243
243
|
menu: [{
|
|
244
244
|
id: ViewsSubMenu,
|
|
@@ -263,7 +263,7 @@ MenuRegistry.appendMenuItem(MenuId.ViewContainerTitle, {
|
|
|
263
263
|
order: 10,
|
|
264
264
|
command: {
|
|
265
265
|
id: SELECT_AND_START_ID,
|
|
266
|
-
title: ( localize(
|
|
266
|
+
title: ( localize(6747, "Start Additional Session")),
|
|
267
267
|
}
|
|
268
268
|
});
|
|
269
269
|
|
|
@@ -64,7 +64,7 @@ const disassemblyNotAvailable = {
|
|
|
64
64
|
address: 0n,
|
|
65
65
|
instruction: {
|
|
66
66
|
address: '-1',
|
|
67
|
-
instruction: ( localize(
|
|
67
|
+
instruction: ( localize(6748, "Disassembly not available."))
|
|
68
68
|
},
|
|
69
69
|
};
|
|
70
70
|
let DisassemblyView = class DisassemblyView extends EditorPane {
|
|
@@ -182,7 +182,7 @@ let DisassemblyView = class DisassemblyView extends EditorPane {
|
|
|
182
182
|
project(row) { return row; }
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
|
-
label: ( localize(
|
|
185
|
+
label: ( localize(6749, "instructions")),
|
|
186
186
|
tooltip: '',
|
|
187
187
|
weight: 0.3,
|
|
188
188
|
templateId: InstructionRenderer.TEMPLATE_ID,
|
|
@@ -734,7 +734,7 @@ let InstructionRenderer = class InstructionRenderer extends Disposable {
|
|
|
734
734
|
};
|
|
735
735
|
this.editorService.openEditor({
|
|
736
736
|
resource: sourceURI,
|
|
737
|
-
description: ( localize(
|
|
737
|
+
description: ( localize(6750, "from disassembly")),
|
|
738
738
|
options: {
|
|
739
739
|
preserveFocus: false,
|
|
740
740
|
selection: selection,
|
|
@@ -769,18 +769,18 @@ InstructionRenderer = InstructionRenderer_1 = ( __decorate([
|
|
|
769
769
|
], InstructionRenderer));
|
|
770
770
|
class AccessibilityProvider {
|
|
771
771
|
getWidgetAriaLabel() {
|
|
772
|
-
return localize(
|
|
772
|
+
return localize(6751, "Disassembly View");
|
|
773
773
|
}
|
|
774
774
|
getAriaLabel(element) {
|
|
775
775
|
let label = '';
|
|
776
776
|
const instruction = element.instruction;
|
|
777
777
|
if (instruction.address !== '-1') {
|
|
778
|
-
label += `${( localize(
|
|
778
|
+
label += `${( localize(6752, "Address"))}: ${instruction.address}`;
|
|
779
779
|
}
|
|
780
780
|
if (instruction.instructionBytes) {
|
|
781
|
-
label += `, ${( localize(
|
|
781
|
+
label += `, ${( localize(6753, "Bytes"))}: ${instruction.instructionBytes}`;
|
|
782
782
|
}
|
|
783
|
-
label += `, ${( localize(
|
|
783
|
+
label += `, ${( localize(6754, "Instruction"))}: ${instruction.instruction}`;
|
|
784
784
|
return label;
|
|
785
785
|
}
|
|
786
786
|
}
|
|
@@ -563,7 +563,7 @@ class LoadedScriptsRenderer {
|
|
|
563
563
|
options.fileKind = FileKind.ROOT_FOLDER;
|
|
564
564
|
}
|
|
565
565
|
else if (element instanceof SessionTreeItem) {
|
|
566
|
-
options.title = ( localize(
|
|
566
|
+
options.title = ( localize(6766, "Debug Session"));
|
|
567
567
|
options.hideIcon = true;
|
|
568
568
|
}
|
|
569
569
|
else if (element instanceof BaseTreeItem) {
|
|
@@ -585,20 +585,20 @@ class LoadedScriptsRenderer {
|
|
|
585
585
|
}
|
|
586
586
|
class LoadedSciptsAccessibilityProvider {
|
|
587
587
|
getWidgetAriaLabel() {
|
|
588
|
-
return localize(
|
|
588
|
+
return localize(6767, "Debug Loaded Scripts");
|
|
589
589
|
}
|
|
590
590
|
getAriaLabel(element) {
|
|
591
591
|
if (element instanceof RootFolderTreeItem) {
|
|
592
|
-
return localize(
|
|
592
|
+
return localize(6768, "Workspace folder {0}, loaded script, debug", element.getLabel());
|
|
593
593
|
}
|
|
594
594
|
if (element instanceof SessionTreeItem) {
|
|
595
|
-
return localize(
|
|
595
|
+
return localize(6769, "Session {0}, loaded script, debug", element.getLabel());
|
|
596
596
|
}
|
|
597
597
|
if (element.hasChildren()) {
|
|
598
|
-
return localize(
|
|
598
|
+
return localize(6770, "Folder {0}, loaded script, debug", element.getLabel());
|
|
599
599
|
}
|
|
600
600
|
else {
|
|
601
|
-
return localize(
|
|
601
|
+
return localize(6771, "{0}, loaded script, debug", element.getLabel());
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
}
|
|
@@ -625,7 +625,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
625
625
|
super({
|
|
626
626
|
id: 'loadedScripts.collapse',
|
|
627
627
|
viewId: LOADED_SCRIPTS_VIEW_ID,
|
|
628
|
-
title: ( localize(
|
|
628
|
+
title: ( localize(6772, "Collapse All")),
|
|
629
629
|
f1: false,
|
|
630
630
|
icon: Codicon.collapseAll,
|
|
631
631
|
menu: {
|