@codingame/monaco-vscode-debug-service-override 14.0.2 → 14.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 +16 -16
- 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 +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/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 +21 -18
- 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 +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
|
@@ -290,7 +290,7 @@ let DebugSession = class DebugSession {
|
|
|
290
290
|
}
|
|
291
291
|
async launchOrAttach(config) {
|
|
292
292
|
if (!this.raw) {
|
|
293
|
-
throw ( new Error(( localize(
|
|
293
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'launch or attach'))));
|
|
294
294
|
}
|
|
295
295
|
if (this.parentSession && this.parentSession.state === State.Inactive) {
|
|
296
296
|
throw canceled();
|
|
@@ -345,7 +345,7 @@ let DebugSession = class DebugSession {
|
|
|
345
345
|
}
|
|
346
346
|
async restart() {
|
|
347
347
|
if (!this.raw) {
|
|
348
|
-
throw ( new Error(( localize(
|
|
348
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'restart'))));
|
|
349
349
|
}
|
|
350
350
|
this.cancelAllRequests();
|
|
351
351
|
if (this._options.lifecycleManagedByParent && this.parentSession) {
|
|
@@ -357,7 +357,7 @@ let DebugSession = class DebugSession {
|
|
|
357
357
|
}
|
|
358
358
|
async sendBreakpoints(modelUri, breakpointsToSend, sourceModified) {
|
|
359
359
|
if (!this.raw) {
|
|
360
|
-
throw ( new Error(( localize(
|
|
360
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'breakpoints'))));
|
|
361
361
|
}
|
|
362
362
|
if (!this.raw.readyForBreakpoints) {
|
|
363
363
|
return Promise.resolve(undefined);
|
|
@@ -385,7 +385,7 @@ let DebugSession = class DebugSession {
|
|
|
385
385
|
}
|
|
386
386
|
async sendFunctionBreakpoints(fbpts) {
|
|
387
387
|
if (!this.raw) {
|
|
388
|
-
throw ( new Error(( localize(
|
|
388
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'function breakpoints'))));
|
|
389
389
|
}
|
|
390
390
|
if (this.raw.readyForBreakpoints) {
|
|
391
391
|
const response = await this.raw.setFunctionBreakpoints({ breakpoints: ( fbpts.map(bp => bp.toDAP())) });
|
|
@@ -400,7 +400,7 @@ let DebugSession = class DebugSession {
|
|
|
400
400
|
}
|
|
401
401
|
async sendExceptionBreakpoints(exbpts) {
|
|
402
402
|
if (!this.raw) {
|
|
403
|
-
throw ( new Error(( localize(
|
|
403
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'exception breakpoints'))));
|
|
404
404
|
}
|
|
405
405
|
if (this.raw.readyForBreakpoints) {
|
|
406
406
|
const args = this.capabilities.supportsExceptionFilterOptions ? {
|
|
@@ -424,7 +424,7 @@ let DebugSession = class DebugSession {
|
|
|
424
424
|
}
|
|
425
425
|
dataBytesBreakpointInfo(address, bytes) {
|
|
426
426
|
if (this.raw?.capabilities.supportsDataBreakpointBytes === false) {
|
|
427
|
-
throw ( new Error(( localize(
|
|
427
|
+
throw ( new Error(( localize(5525, "Session does not support breakpoints with bytes"))));
|
|
428
428
|
}
|
|
429
429
|
return this._dataBreakpointInfo({ name: address, bytes, asAddress: true });
|
|
430
430
|
}
|
|
@@ -433,17 +433,17 @@ let DebugSession = class DebugSession {
|
|
|
433
433
|
}
|
|
434
434
|
async _dataBreakpointInfo(args) {
|
|
435
435
|
if (!this.raw) {
|
|
436
|
-
throw ( new Error(( localize(
|
|
436
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'data breakpoints info'))));
|
|
437
437
|
}
|
|
438
438
|
if (!this.raw.readyForBreakpoints) {
|
|
439
|
-
throw ( new Error(( localize(
|
|
439
|
+
throw ( new Error(( localize(5526, "Session is not ready for breakpoints"))));
|
|
440
440
|
}
|
|
441
441
|
const response = await this.raw.dataBreakpointInfo(args);
|
|
442
442
|
return response?.body;
|
|
443
443
|
}
|
|
444
444
|
async sendDataBreakpoints(dataBreakpoints) {
|
|
445
445
|
if (!this.raw) {
|
|
446
|
-
throw ( new Error(( localize(
|
|
446
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'data breakpoints'))));
|
|
447
447
|
}
|
|
448
448
|
if (this.raw.readyForBreakpoints) {
|
|
449
449
|
const converted = await Promise.all(( dataBreakpoints.map(async (bp) => {
|
|
@@ -474,7 +474,7 @@ let DebugSession = class DebugSession {
|
|
|
474
474
|
async sendInstructionBreakpoints(instructionBreakpoints) {
|
|
475
475
|
if (!this.raw) {
|
|
476
476
|
throw ( new Error(( localize(
|
|
477
|
-
|
|
477
|
+
5524,
|
|
478
478
|
"No debugger available, can not send '{0}'",
|
|
479
479
|
'instruction breakpoints'
|
|
480
480
|
))));
|
|
@@ -492,7 +492,7 @@ let DebugSession = class DebugSession {
|
|
|
492
492
|
}
|
|
493
493
|
async breakpointsLocations(uri, lineNumber) {
|
|
494
494
|
if (!this.raw) {
|
|
495
|
-
throw ( new Error(( localize(
|
|
495
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'breakpoints locations'))));
|
|
496
496
|
}
|
|
497
497
|
const source = this.getRawSource(uri);
|
|
498
498
|
const response = await this.raw.breakpointLocations({ source, line: lineNumber });
|
|
@@ -507,20 +507,20 @@ let DebugSession = class DebugSession {
|
|
|
507
507
|
}
|
|
508
508
|
customRequest(request, args) {
|
|
509
509
|
if (!this.raw) {
|
|
510
|
-
throw ( new Error(( localize(
|
|
510
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", request))));
|
|
511
511
|
}
|
|
512
512
|
return this.raw.custom(request, args);
|
|
513
513
|
}
|
|
514
514
|
stackTrace(threadId, startFrame, levels, token) {
|
|
515
515
|
if (!this.raw) {
|
|
516
|
-
throw ( new Error(( localize(
|
|
516
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'stackTrace'))));
|
|
517
517
|
}
|
|
518
518
|
const sessionToken = this.getNewCancellationToken(threadId, token);
|
|
519
519
|
return this.raw.stackTrace({ threadId, startFrame, levels }, sessionToken);
|
|
520
520
|
}
|
|
521
521
|
async exceptionInfo(threadId) {
|
|
522
522
|
if (!this.raw) {
|
|
523
|
-
throw ( new Error(( localize(
|
|
523
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'exceptionInfo'))));
|
|
524
524
|
}
|
|
525
525
|
const response = await this.raw.exceptionInfo({ threadId });
|
|
526
526
|
if (response) {
|
|
@@ -535,28 +535,28 @@ let DebugSession = class DebugSession {
|
|
|
535
535
|
}
|
|
536
536
|
scopes(frameId, threadId) {
|
|
537
537
|
if (!this.raw) {
|
|
538
|
-
throw ( new Error(( localize(
|
|
538
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'scopes'))));
|
|
539
539
|
}
|
|
540
540
|
const token = this.getNewCancellationToken(threadId);
|
|
541
541
|
return this.raw.scopes({ frameId }, token);
|
|
542
542
|
}
|
|
543
543
|
variables(variablesReference, threadId, filter, start, count) {
|
|
544
544
|
if (!this.raw) {
|
|
545
|
-
throw ( new Error(( localize(
|
|
545
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'variables'))));
|
|
546
546
|
}
|
|
547
547
|
const token = threadId ? this.getNewCancellationToken(threadId) : undefined;
|
|
548
548
|
return this.raw.variables({ variablesReference, filter, start, count }, token);
|
|
549
549
|
}
|
|
550
550
|
evaluate(expression, frameId, context, location) {
|
|
551
551
|
if (!this.raw) {
|
|
552
|
-
throw ( new Error(( localize(
|
|
552
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'evaluate'))));
|
|
553
553
|
}
|
|
554
554
|
return this.raw.evaluate({ expression, frameId, context, line: location?.line, column: location?.column, source: location?.source });
|
|
555
555
|
}
|
|
556
556
|
async restartFrame(frameId, threadId) {
|
|
557
557
|
await this.waitForTriggeredBreakpoints();
|
|
558
558
|
if (!this.raw) {
|
|
559
|
-
throw ( new Error(( localize(
|
|
559
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'restartFrame'))));
|
|
560
560
|
}
|
|
561
561
|
await this.raw.restartFrame({ frameId }, threadId);
|
|
562
562
|
}
|
|
@@ -569,7 +569,7 @@ let DebugSession = class DebugSession {
|
|
|
569
569
|
async next(threadId, granularity) {
|
|
570
570
|
await this.waitForTriggeredBreakpoints();
|
|
571
571
|
if (!this.raw) {
|
|
572
|
-
throw ( new Error(( localize(
|
|
572
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'next'))));
|
|
573
573
|
}
|
|
574
574
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
575
575
|
await this.raw.next({ threadId, granularity });
|
|
@@ -577,7 +577,7 @@ let DebugSession = class DebugSession {
|
|
|
577
577
|
async stepIn(threadId, targetId, granularity) {
|
|
578
578
|
await this.waitForTriggeredBreakpoints();
|
|
579
579
|
if (!this.raw) {
|
|
580
|
-
throw ( new Error(( localize(
|
|
580
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'stepIn'))));
|
|
581
581
|
}
|
|
582
582
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
583
583
|
await this.raw.stepIn({ threadId, targetId, granularity });
|
|
@@ -585,7 +585,7 @@ let DebugSession = class DebugSession {
|
|
|
585
585
|
async stepOut(threadId, granularity) {
|
|
586
586
|
await this.waitForTriggeredBreakpoints();
|
|
587
587
|
if (!this.raw) {
|
|
588
|
-
throw ( new Error(( localize(
|
|
588
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'stepOut'))));
|
|
589
589
|
}
|
|
590
590
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
591
591
|
await this.raw.stepOut({ threadId, granularity });
|
|
@@ -593,7 +593,7 @@ let DebugSession = class DebugSession {
|
|
|
593
593
|
async stepBack(threadId, granularity) {
|
|
594
594
|
await this.waitForTriggeredBreakpoints();
|
|
595
595
|
if (!this.raw) {
|
|
596
|
-
throw ( new Error(( localize(
|
|
596
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'stepBack'))));
|
|
597
597
|
}
|
|
598
598
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
599
599
|
await this.raw.stepBack({ threadId, granularity });
|
|
@@ -601,56 +601,56 @@ let DebugSession = class DebugSession {
|
|
|
601
601
|
async continue(threadId) {
|
|
602
602
|
await this.waitForTriggeredBreakpoints();
|
|
603
603
|
if (!this.raw) {
|
|
604
|
-
throw ( new Error(( localize(
|
|
604
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'continue'))));
|
|
605
605
|
}
|
|
606
606
|
await this.raw.continue({ threadId });
|
|
607
607
|
}
|
|
608
608
|
async reverseContinue(threadId) {
|
|
609
609
|
await this.waitForTriggeredBreakpoints();
|
|
610
610
|
if (!this.raw) {
|
|
611
|
-
throw ( new Error(( localize(
|
|
611
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'reverse continue'))));
|
|
612
612
|
}
|
|
613
613
|
await this.raw.reverseContinue({ threadId });
|
|
614
614
|
}
|
|
615
615
|
async pause(threadId) {
|
|
616
616
|
if (!this.raw) {
|
|
617
|
-
throw ( new Error(( localize(
|
|
617
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'pause'))));
|
|
618
618
|
}
|
|
619
619
|
await this.raw.pause({ threadId });
|
|
620
620
|
}
|
|
621
621
|
async terminateThreads(threadIds) {
|
|
622
622
|
if (!this.raw) {
|
|
623
|
-
throw ( new Error(( localize(
|
|
623
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'terminateThreads'))));
|
|
624
624
|
}
|
|
625
625
|
await this.raw.terminateThreads({ threadIds });
|
|
626
626
|
}
|
|
627
627
|
setVariable(variablesReference, name, value) {
|
|
628
628
|
if (!this.raw) {
|
|
629
|
-
throw ( new Error(( localize(
|
|
629
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'setVariable'))));
|
|
630
630
|
}
|
|
631
631
|
return this.raw.setVariable({ variablesReference, name, value });
|
|
632
632
|
}
|
|
633
633
|
setExpression(frameId, expression, value) {
|
|
634
634
|
if (!this.raw) {
|
|
635
|
-
throw ( new Error(( localize(
|
|
635
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'setExpression'))));
|
|
636
636
|
}
|
|
637
637
|
return this.raw.setExpression({ expression, value, frameId });
|
|
638
638
|
}
|
|
639
639
|
gotoTargets(source, line, column) {
|
|
640
640
|
if (!this.raw) {
|
|
641
|
-
throw ( new Error(( localize(
|
|
641
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'gotoTargets'))));
|
|
642
642
|
}
|
|
643
643
|
return this.raw.gotoTargets({ source, line, column });
|
|
644
644
|
}
|
|
645
645
|
goto(threadId, targetId) {
|
|
646
646
|
if (!this.raw) {
|
|
647
|
-
throw ( new Error(( localize(
|
|
647
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'goto'))));
|
|
648
648
|
}
|
|
649
649
|
return this.raw.goto({ threadId, targetId });
|
|
650
650
|
}
|
|
651
651
|
loadSource(resource) {
|
|
652
652
|
if (!this.raw) {
|
|
653
|
-
return Promise.reject(( new Error(( localize(
|
|
653
|
+
return Promise.reject(( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'loadSource')))));
|
|
654
654
|
}
|
|
655
655
|
const source = this.getSourceForUri(resource);
|
|
656
656
|
let rawSource;
|
|
@@ -665,7 +665,7 @@ let DebugSession = class DebugSession {
|
|
|
665
665
|
}
|
|
666
666
|
async getLoadedSources() {
|
|
667
667
|
if (!this.raw) {
|
|
668
|
-
return Promise.reject(( new Error(( localize(
|
|
668
|
+
return Promise.reject(( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'getLoadedSources')))));
|
|
669
669
|
}
|
|
670
670
|
const response = await this.raw.loadedSources({});
|
|
671
671
|
if (response?.body && response.body.sources) {
|
|
@@ -677,7 +677,7 @@ let DebugSession = class DebugSession {
|
|
|
677
677
|
}
|
|
678
678
|
async completions(frameId, threadId, text, position, overwriteBefore, token) {
|
|
679
679
|
if (!this.raw) {
|
|
680
|
-
return Promise.reject(( new Error(( localize(
|
|
680
|
+
return Promise.reject(( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'completions')))));
|
|
681
681
|
}
|
|
682
682
|
const sessionCancelationToken = this.getNewCancellationToken(threadId, token);
|
|
683
683
|
return this.raw.completions({
|
|
@@ -689,43 +689,43 @@ let DebugSession = class DebugSession {
|
|
|
689
689
|
}
|
|
690
690
|
async stepInTargets(frameId) {
|
|
691
691
|
if (!this.raw) {
|
|
692
|
-
return Promise.reject(( new Error(( localize(
|
|
692
|
+
return Promise.reject(( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'stepInTargets')))));
|
|
693
693
|
}
|
|
694
694
|
const response = await this.raw.stepInTargets({ frameId });
|
|
695
695
|
return response?.body.targets;
|
|
696
696
|
}
|
|
697
697
|
async cancel(progressId) {
|
|
698
698
|
if (!this.raw) {
|
|
699
|
-
return Promise.reject(( new Error(( localize(
|
|
699
|
+
return Promise.reject(( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'cancel')))));
|
|
700
700
|
}
|
|
701
701
|
return this.raw.cancel({ progressId });
|
|
702
702
|
}
|
|
703
703
|
async disassemble(memoryReference, offset, instructionOffset, instructionCount) {
|
|
704
704
|
if (!this.raw) {
|
|
705
|
-
return Promise.reject(( new Error(( localize(
|
|
705
|
+
return Promise.reject(( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'disassemble')))));
|
|
706
706
|
}
|
|
707
707
|
const response = await this.raw.disassemble({ memoryReference, offset, instructionOffset, instructionCount, resolveSymbols: true });
|
|
708
708
|
return response?.body?.instructions;
|
|
709
709
|
}
|
|
710
710
|
readMemory(memoryReference, offset, count) {
|
|
711
711
|
if (!this.raw) {
|
|
712
|
-
return Promise.reject(( new Error(( localize(
|
|
712
|
+
return Promise.reject(( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'readMemory')))));
|
|
713
713
|
}
|
|
714
714
|
return this.raw.readMemory({ count, memoryReference, offset });
|
|
715
715
|
}
|
|
716
716
|
writeMemory(memoryReference, offset, data, allowPartial) {
|
|
717
717
|
if (!this.raw) {
|
|
718
|
-
return Promise.reject(( new Error(( localize(
|
|
718
|
+
return Promise.reject(( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'disassemble')))));
|
|
719
719
|
}
|
|
720
720
|
return this.raw.writeMemory({ memoryReference, offset, allowPartial, data });
|
|
721
721
|
}
|
|
722
722
|
async resolveLocationReference(locationReference) {
|
|
723
723
|
if (!this.raw) {
|
|
724
|
-
throw ( new Error(( localize(
|
|
724
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'locations'))));
|
|
725
725
|
}
|
|
726
726
|
const location = await this.raw.locations({ locationReference });
|
|
727
727
|
if (!location?.body) {
|
|
728
|
-
throw ( new Error(( localize(
|
|
728
|
+
throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'locations'))));
|
|
729
729
|
}
|
|
730
730
|
const source = this.getSource(location.body.source);
|
|
731
731
|
return { column: 1, ...location.body, source };
|
|
@@ -837,8 +837,8 @@ let DebugSession = class DebugSession {
|
|
|
837
837
|
}
|
|
838
838
|
this.rawListeners.add(this.raw.onDidInitialize(async () => {
|
|
839
839
|
status(this.configuration.noDebug
|
|
840
|
-
? ( localize(
|
|
841
|
-
: ( localize(
|
|
840
|
+
? ( localize(5527, "Started running without debugging."))
|
|
841
|
+
: ( localize(5528, "Debugging started.")));
|
|
842
842
|
const sendConfigurationDone = async () => {
|
|
843
843
|
if (this.raw && this.raw.capabilities.supportsConfigurationDoneRequest) {
|
|
844
844
|
try {
|
|
@@ -885,7 +885,7 @@ let DebugSession = class DebugSession {
|
|
|
885
885
|
}
|
|
886
886
|
}));
|
|
887
887
|
this.rawListeners.add(this.raw.onDidTerminateDebugee(async (event) => {
|
|
888
|
-
status(( localize(
|
|
888
|
+
status(( localize(5529, "Debugging stopped.")));
|
|
889
889
|
if (event.body && event.body.restart) {
|
|
890
890
|
await this.debugService.restartSession(this, event.body.restart);
|
|
891
891
|
}
|
|
@@ -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(5533, "Debug")),
|
|
54
54
|
text: '$(debug-alt-small) ' + text,
|
|
55
|
-
ariaLabel: ( localize(
|
|
56
|
-
tooltip: ( localize(
|
|
55
|
+
ariaLabel: ( localize(5534, "Debug: {0}", text)),
|
|
56
|
+
tooltip: ( localize(5535, "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(5536, "Abort"));
|
|
34
|
+
const DEBUG_ANYWAY_LABEL = ( localize(5537, "&&Debug Anyway"));
|
|
35
|
+
const DEBUG_ANYWAY_LABEL_NO_MEMO = ( localize(5538, "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(5539, "Errors exist after running preLaunchTask '{0}'.", taskLabel))
|
|
78
78
|
: errorCount === 1
|
|
79
|
-
? ( localize(
|
|
79
|
+
? ( localize(5540, "Error exists after running preLaunchTask '{0}'.", taskLabel))
|
|
80
80
|
: taskSummary && typeof taskSummary.exitCode === 'number'
|
|
81
81
|
? ( localize(
|
|
82
|
-
|
|
82
|
+
5541,
|
|
83
83
|
"The preLaunchTask '{0}' terminated with exit code {1}.",
|
|
84
84
|
taskLabel,
|
|
85
85
|
taskSummary.exitCode
|
|
86
86
|
))
|
|
87
|
-
: ( localize(
|
|
87
|
+
: ( localize(5542, "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(5543, "&&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(5544, "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(5537, "&&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(5545, "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
|
+
5546,
|
|
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(5547, "Could not find the task '{0}'.", taskId))
|
|
190
|
+
: ( localize(5548, "Could not find the specified task."));
|
|
191
191
|
return Promise.reject(createErrorWithActions(errorMessage, [( new Action(
|
|
192
192
|
DEBUG_CONFIGURE_COMMAND_ID,
|
|
193
193
|
DEBUG_CONFIGURE_LABEL,
|
|
@@ -245,7 +245,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
245
245
|
store.add(disposableTimeout(() => {
|
|
246
246
|
if (!taskStarted) {
|
|
247
247
|
const errorMessage = ( localize(
|
|
248
|
-
|
|
248
|
+
5549,
|
|
249
249
|
"The task '{0}' has not exited and doesn't have a 'problemMatcher' defined. Make sure to define a problem matcher for watch tasks.",
|
|
250
250
|
typeof taskId === 'string' ? taskId : JSON.stringify(taskId)
|
|
251
251
|
));
|
|
@@ -256,14 +256,14 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
256
256
|
if (!hideSlowPreLaunchWarning) {
|
|
257
257
|
store.add(disposableTimeout(() => {
|
|
258
258
|
const message = ( localize(
|
|
259
|
-
|
|
259
|
+
5550,
|
|
260
260
|
"Waiting for preLaunchTask '{0}'...",
|
|
261
261
|
task.configurationProperties.name
|
|
262
262
|
));
|
|
263
263
|
const buttons = [DEBUG_ANYWAY_LABEL_NO_MEMO, ABORT_LABEL];
|
|
264
264
|
const canConfigure = task instanceof CustomTask || task instanceof ConfiguringTask;
|
|
265
265
|
if (canConfigure) {
|
|
266
|
-
buttons.splice(1, 0, ( localize(
|
|
266
|
+
buttons.splice(1, 0, ( localize(5551, "Configure Task")));
|
|
267
267
|
}
|
|
268
268
|
this.progressService.withProgress({ location: ProgressLocation.Notification, title: message, buttons }, () => result.catch(() => { }), (choice) => {
|
|
269
269
|
if (choice === undefined) ;
|
|
@@ -306,7 +306,7 @@ function createDisconnectMenuItemAction(action, disposables, accessor, options)
|
|
|
306
306
|
if (!secondary.length) {
|
|
307
307
|
return undefined;
|
|
308
308
|
}
|
|
309
|
-
const dropdownAction = disposables.add(( new Action('notebook.moreRunActions', ( localize(
|
|
309
|
+
const dropdownAction = disposables.add(( new Action('notebook.moreRunActions', ( localize(5552, "More...")), 'codicon-chevron-down', true)));
|
|
310
310
|
const item = instantiationService.createInstance(DropdownWithPrimaryActionViewItem, action, dropdownAction, secondary, 'debug-stop-actions', options);
|
|
311
311
|
return item;
|
|
312
312
|
}
|
|
@@ -364,8 +364,8 @@ registerDebugToolBarItem(STEP_OVER_ID, STEP_OVER_LABEL, 20, debugStepOver, undef
|
|
|
364
364
|
registerDebugToolBarItem(STEP_INTO_ID, STEP_INTO_LABEL, 30, debugStepInto, undefined, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
365
365
|
registerDebugToolBarItem(STEP_OUT_ID, STEP_OUT_LABEL, 40, debugStepOut, undefined, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
366
366
|
registerDebugToolBarItem(RESTART_SESSION_ID, RESTART_LABEL, 60, debugRestart);
|
|
367
|
-
registerDebugToolBarItem(STEP_BACK_ID, ( localize(
|
|
368
|
-
registerDebugToolBarItem(REVERSE_CONTINUE_ID, ( localize(
|
|
367
|
+
registerDebugToolBarItem(STEP_BACK_ID, ( localize(5553, "Step Back")), 50, debugStepBack, CONTEXT_STEP_BACK_SUPPORTED, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
368
|
+
registerDebugToolBarItem(REVERSE_CONTINUE_ID, ( localize(5554, "Reverse")), 55, debugReverseContinue, CONTEXT_STEP_BACK_SUPPORTED, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
369
369
|
registerDebugToolBarItem(FOCUS_SESSION_ID, FOCUS_SESSION_LABEL, 100, Codicon.listTree, ( ContextKeyExpr.and(CONTEXT_MULTI_SESSION_DEBUG, ( CONTEXT_TOOLBAR_COMMAND_CENTER.negate()))));
|
|
370
370
|
MenuRegistry.appendMenuItem(MenuId.DebugToolBarStop, {
|
|
371
371
|
group: 'navigation',
|
|
@@ -169,10 +169,10 @@ registerAction2(class extends Action2 {
|
|
|
169
169
|
title: {
|
|
170
170
|
value: DEBUG_CONFIGURE_LABEL,
|
|
171
171
|
original: 'Open \'launch.json\'',
|
|
172
|
-
mnemonicTitle: ( localize(
|
|
172
|
+
mnemonicTitle: ( localize(5555, "Open &&Configurations"))
|
|
173
173
|
},
|
|
174
174
|
metadata: {
|
|
175
|
-
description: ( localize2(
|
|
175
|
+
description: ( localize2(5556, 'Opens the file used to configure how your program is debugged'))
|
|
176
176
|
},
|
|
177
177
|
f1: true,
|
|
178
178
|
icon: debugConfigure,
|
|
@@ -212,7 +212,7 @@ registerAction2(class extends Action2 {
|
|
|
212
212
|
const picked = await quickInputService.pick(picks, {
|
|
213
213
|
activeItem: picks[0],
|
|
214
214
|
placeHolder: ( localize(
|
|
215
|
-
|
|
215
|
+
5557,
|
|
216
216
|
"Select a workspace folder to create a launch.json file in or add it to the workspace config file"
|
|
217
217
|
))
|
|
218
218
|
});
|
|
@@ -236,7 +236,7 @@ registerAction2(class extends Action2 {
|
|
|
236
236
|
constructor() {
|
|
237
237
|
super({
|
|
238
238
|
id: 'debug.toggleReplIgnoreFocus',
|
|
239
|
-
title: ( localize(
|
|
239
|
+
title: ( localize(5558, "Debug Console")),
|
|
240
240
|
toggled: ( ContextKeyExpr.has(`view.${REPL_VIEW_ID}.visible`)),
|
|
241
241
|
menu: [{
|
|
242
242
|
id: ViewsSubMenu,
|
|
@@ -261,7 +261,7 @@ MenuRegistry.appendMenuItem(MenuId.ViewContainerTitle, {
|
|
|
261
261
|
order: 10,
|
|
262
262
|
command: {
|
|
263
263
|
id: SELECT_AND_START_ID,
|
|
264
|
-
title: ( localize(
|
|
264
|
+
title: ( localize(5559, "Start Additional Session")),
|
|
265
265
|
}
|
|
266
266
|
});
|
|
267
267
|
|
|
@@ -57,7 +57,7 @@ const disassemblyNotAvailable = {
|
|
|
57
57
|
address: 0n,
|
|
58
58
|
instruction: {
|
|
59
59
|
address: '-1',
|
|
60
|
-
instruction: ( localize(
|
|
60
|
+
instruction: ( localize(5560, "Disassembly not available."))
|
|
61
61
|
},
|
|
62
62
|
};
|
|
63
63
|
let DisassemblyView = class DisassemblyView extends EditorPane {
|
|
@@ -169,7 +169,7 @@ let DisassemblyView = class DisassemblyView extends EditorPane {
|
|
|
169
169
|
project(row) { return row; }
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
|
-
label: ( localize(
|
|
172
|
+
label: ( localize(5561, "instructions")),
|
|
173
173
|
tooltip: '',
|
|
174
174
|
weight: 0.3,
|
|
175
175
|
templateId: InstructionRenderer.TEMPLATE_ID,
|
|
@@ -704,7 +704,7 @@ let InstructionRenderer = class InstructionRenderer extends Disposable {
|
|
|
704
704
|
};
|
|
705
705
|
this.editorService.openEditor({
|
|
706
706
|
resource: sourceURI,
|
|
707
|
-
description: ( localize(
|
|
707
|
+
description: ( localize(5562, "from disassembly")),
|
|
708
708
|
options: {
|
|
709
709
|
preserveFocus: false,
|
|
710
710
|
selection: selection,
|
|
@@ -739,18 +739,18 @@ InstructionRenderer = InstructionRenderer_1 = ( __decorate([
|
|
|
739
739
|
], InstructionRenderer));
|
|
740
740
|
class AccessibilityProvider {
|
|
741
741
|
getWidgetAriaLabel() {
|
|
742
|
-
return localize(
|
|
742
|
+
return localize(5563, "Disassembly View");
|
|
743
743
|
}
|
|
744
744
|
getAriaLabel(element) {
|
|
745
745
|
let label = '';
|
|
746
746
|
const instruction = element.instruction;
|
|
747
747
|
if (instruction.address !== '-1') {
|
|
748
|
-
label += `${( localize(
|
|
748
|
+
label += `${( localize(5564, "Address"))}: ${instruction.address}`;
|
|
749
749
|
}
|
|
750
750
|
if (instruction.instructionBytes) {
|
|
751
|
-
label += `, ${( localize(
|
|
751
|
+
label += `, ${( localize(5565, "Bytes"))}: ${instruction.instructionBytes}`;
|
|
752
752
|
}
|
|
753
|
-
label += `, ${( localize(
|
|
753
|
+
label += `, ${( localize(5566, "Instruction"))}: ${instruction.instruction}`;
|
|
754
754
|
return label;
|
|
755
755
|
}
|
|
756
756
|
}
|
|
@@ -27,8 +27,8 @@ import { Action } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actio
|
|
|
27
27
|
import { widgetClose } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/iconRegistry';
|
|
28
28
|
|
|
29
29
|
const $ = $$1;
|
|
30
|
-
const debugExceptionWidgetBorder = registerColor('debugExceptionWidget.border', '#a31515', ( localize(
|
|
31
|
-
const debugExceptionWidgetBackground = registerColor('debugExceptionWidget.background', { dark: '#420b0d', light: '#f1dfde', hcDark: '#420b0d', hcLight: '#f1dfde' }, ( localize(
|
|
30
|
+
const debugExceptionWidgetBorder = registerColor('debugExceptionWidget.border', '#a31515', ( localize(5567, 'Exception widget border color.')));
|
|
31
|
+
const debugExceptionWidgetBackground = registerColor('debugExceptionWidget.background', { dark: '#420b0d', light: '#f1dfde', hcDark: '#420b0d', hcLight: '#f1dfde' }, ( localize(5568, 'Exception widget background color.')));
|
|
32
32
|
let ExceptionWidget = class ExceptionWidget extends ZoneWidget {
|
|
33
33
|
constructor(editor, exceptionInfo, debugSession, themeService, instantiationService) {
|
|
34
34
|
super(editor, { showFrame: true, showArrow: true, isAccessible: true, frameWidth: 1, className: 'exception-widget-container' });
|
|
@@ -67,10 +67,10 @@ let ExceptionWidget = class ExceptionWidget extends ZoneWidget {
|
|
|
67
67
|
append(title, label);
|
|
68
68
|
const actions = $('.actions');
|
|
69
69
|
append(title, actions);
|
|
70
|
-
label.textContent = this.exceptionInfo.id ? ( localize(
|
|
70
|
+
label.textContent = this.exceptionInfo.id ? ( localize(5569, 'Exception has occurred: {0}', this.exceptionInfo.id)) : ( localize(5570, 'Exception has occurred.'));
|
|
71
71
|
let ariaLabel = label.textContent;
|
|
72
72
|
const actionBar = ( new ActionBar(actions));
|
|
73
|
-
actionBar.push(( new Action('editor.closeExceptionWidget', ( localize(
|
|
73
|
+
actionBar.push(( new Action('editor.closeExceptionWidget', ( localize(5571, "Close")), ThemeIcon.asClassName(widgetClose), true, async () => {
|
|
74
74
|
const contribution = this.editor.getContribution(EDITOR_CONTRIBUTION_ID);
|
|
75
75
|
contribution?.closeExceptionWidget();
|
|
76
76
|
})), { label: false, icon: true });
|