@codingame/monaco-vscode-debug-service-override 1.83.4 → 1.83.6
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/baseDebugView.js +5 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +193 -86
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +44 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +254 -60
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +10 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +98 -28
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +429 -185
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +25 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +62 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +130 -32
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +20 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +5 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +105 -21
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +10 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +18 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +39 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +100 -24
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +58 -26
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +17 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +12 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +80 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +15 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +8 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +36 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +24 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +33 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +34 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +26 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +48 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +31 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +20 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +40 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +49 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +5 -60
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +18 -5
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +15 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +32 -22
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +205 -41
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +5 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +51 -10
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +5 -1
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +5 -1
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +5 -1
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +18 -7
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +80 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +5 -1
|
@@ -130,7 +130,11 @@ let CallStackView = class CallStackView extends ViewPane {
|
|
|
130
130
|
this.stateMessage.hidden = false;
|
|
131
131
|
}
|
|
132
132
|
else if (sessions.length === 1 && sessions[0].state === 3 ) {
|
|
133
|
-
this.stateMessageLabel.textContent = localizeWithPath(
|
|
133
|
+
this.stateMessageLabel.textContent = ( localizeWithPath(
|
|
134
|
+
'vs/workbench/contrib/debug/browser/callStackView',
|
|
135
|
+
{ key: 'running', comment: ['indicates state'] },
|
|
136
|
+
"Running"
|
|
137
|
+
));
|
|
134
138
|
this.stateMessageLabel.title = sessions[0].getLabel();
|
|
135
139
|
this.stateMessageLabel.classList.remove('exception');
|
|
136
140
|
this.stateMessage.hidden = false;
|
|
@@ -210,7 +214,11 @@ let CallStackView = class CallStackView extends ViewPane {
|
|
|
210
214
|
if (e instanceof ThreadAndSessionIds) {
|
|
211
215
|
return LoadMoreRenderer.LABEL;
|
|
212
216
|
}
|
|
213
|
-
return localizeWithPath(
|
|
217
|
+
return ( localizeWithPath(
|
|
218
|
+
'vs/workbench/contrib/debug/browser/callStackView',
|
|
219
|
+
'showMoreStackFrames2',
|
|
220
|
+
"Show More Stack Frames"
|
|
221
|
+
));
|
|
214
222
|
},
|
|
215
223
|
getCompressedNodeKeyboardNavigationLabel: (e) => {
|
|
216
224
|
const firstItem = e[0];
|
|
@@ -468,7 +476,11 @@ let SessionsRenderer = class SessionsRenderer {
|
|
|
468
476
|
this.doRenderElement(lastElement, matches, templateData);
|
|
469
477
|
}
|
|
470
478
|
doRenderElement(session, matches, data) {
|
|
471
|
-
data.session.title = localizeWithPath(
|
|
479
|
+
data.session.title = ( localizeWithPath(
|
|
480
|
+
'vs/workbench/contrib/debug/browser/callStackView',
|
|
481
|
+
{ key: 'session', comment: ['Session is a noun'] },
|
|
482
|
+
"Session"
|
|
483
|
+
));
|
|
472
484
|
data.label.set(session.getLabel(), matches);
|
|
473
485
|
const stoppedDetails = session.getStoppedDetails();
|
|
474
486
|
const thread = session.getAllThreads().find(t => t.stopped);
|
|
@@ -497,7 +509,11 @@ let SessionsRenderer = class SessionsRenderer {
|
|
|
497
509
|
data.stateLabel.classList.toggle('exception', thread.stoppedDetails.reason === 'exception');
|
|
498
510
|
}
|
|
499
511
|
else {
|
|
500
|
-
data.stateLabel.textContent = localizeWithPath(
|
|
512
|
+
data.stateLabel.textContent = ( localizeWithPath(
|
|
513
|
+
'vs/workbench/contrib/debug/browser/callStackView',
|
|
514
|
+
{ key: 'running', comment: ['indicates state'] },
|
|
515
|
+
"Running"
|
|
516
|
+
));
|
|
501
517
|
data.stateLabel.classList.remove('exception');
|
|
502
518
|
}
|
|
503
519
|
}
|
|
@@ -629,20 +645,18 @@ let StackFramesRenderer = class StackFramesRenderer {
|
|
|
629
645
|
}
|
|
630
646
|
data.actionBar.clear();
|
|
631
647
|
if (hasActions) {
|
|
632
|
-
const action = ( new Action(
|
|
633
|
-
'debug
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
await stackFrame.restart();
|
|
640
|
-
}
|
|
641
|
-
catch (e) {
|
|
642
|
-
this.notificationService.error(e);
|
|
643
|
-
}
|
|
648
|
+
const action = ( new Action('debug.callStack.restartFrame', ( localizeWithPath(
|
|
649
|
+
'vs/workbench/contrib/debug/browser/callStackView',
|
|
650
|
+
'restartFrame',
|
|
651
|
+
"Restart Frame"
|
|
652
|
+
)), ThemeIcon.asClassName(debugRestartFrame), true, async () => {
|
|
653
|
+
try {
|
|
654
|
+
await stackFrame.restart();
|
|
644
655
|
}
|
|
645
|
-
|
|
656
|
+
catch (e) {
|
|
657
|
+
this.notificationService.error(e);
|
|
658
|
+
}
|
|
659
|
+
}));
|
|
646
660
|
data.actionBar.push(action, { icon: true, label: false });
|
|
647
661
|
}
|
|
648
662
|
}
|
|
@@ -679,7 +693,11 @@ class ErrorsRenderer {
|
|
|
679
693
|
}
|
|
680
694
|
class LoadMoreRenderer {
|
|
681
695
|
static { this.ID = 'loadMore'; }
|
|
682
|
-
static { this.LABEL = localizeWithPath(
|
|
696
|
+
static { this.LABEL = ( localizeWithPath(
|
|
697
|
+
'vs/workbench/contrib/debug/browser/callStackView',
|
|
698
|
+
'loadAllStackFrames',
|
|
699
|
+
"Load More Stack Frames"
|
|
700
|
+
)); }
|
|
683
701
|
constructor() { }
|
|
684
702
|
get templateId() {
|
|
685
703
|
return LoadMoreRenderer.ID;
|
|
@@ -712,10 +730,21 @@ class ShowMoreRenderer {
|
|
|
712
730
|
renderElement(element, index, data) {
|
|
713
731
|
const stackFrames = element.element;
|
|
714
732
|
if (stackFrames.every(sf => !!(sf.source && sf.source.origin && sf.source.origin === stackFrames[0].source.origin))) {
|
|
715
|
-
data.label.textContent = localizeWithPath(
|
|
733
|
+
data.label.textContent = ( localizeWithPath(
|
|
734
|
+
'vs/workbench/contrib/debug/browser/callStackView',
|
|
735
|
+
'showMoreAndOrigin',
|
|
736
|
+
"Show {0} More: {1}",
|
|
737
|
+
stackFrames.length,
|
|
738
|
+
stackFrames[0].source.origin
|
|
739
|
+
));
|
|
716
740
|
}
|
|
717
741
|
else {
|
|
718
|
-
data.label.textContent = localizeWithPath(
|
|
742
|
+
data.label.textContent = ( localizeWithPath(
|
|
743
|
+
'vs/workbench/contrib/debug/browser/callStackView',
|
|
744
|
+
'showMoreStackFrames',
|
|
745
|
+
"Show {0} More Stack Frames",
|
|
746
|
+
stackFrames.length
|
|
747
|
+
));
|
|
719
748
|
}
|
|
720
749
|
}
|
|
721
750
|
renderCompressedElements(node, index, templateData, height) {
|
|
@@ -758,7 +787,12 @@ function stoppedText(stoppedDetails) {
|
|
|
758
787
|
}
|
|
759
788
|
function stoppedDescription(stoppedDetails) {
|
|
760
789
|
return stoppedDetails.description ||
|
|
761
|
-
(stoppedDetails.reason ?
|
|
790
|
+
(stoppedDetails.reason ? ( localizeWithPath(
|
|
791
|
+
'vs/workbench/contrib/debug/browser/callStackView',
|
|
792
|
+
{ key: 'pausedOn', comment: ['indicates reason for program being paused'] },
|
|
793
|
+
"Paused on {0}",
|
|
794
|
+
stoppedDetails.reason
|
|
795
|
+
)) : ( localizeWithPath('vs/workbench/contrib/debug/browser/callStackView', 'paused', "Paused")));
|
|
762
796
|
}
|
|
763
797
|
function isDebugModel(obj) {
|
|
764
798
|
return typeof obj.getSessions === 'function';
|
|
@@ -851,7 +885,11 @@ class CallStackDataSource {
|
|
|
851
885
|
}
|
|
852
886
|
class CallStackAccessibilityProvider {
|
|
853
887
|
getWidgetAriaLabel() {
|
|
854
|
-
return localizeWithPath(
|
|
888
|
+
return ( localizeWithPath(
|
|
889
|
+
'vs/workbench/contrib/debug/browser/callStackView',
|
|
890
|
+
{ comment: ['Debug is a noun in this context, not a verb.'], key: 'callStackAriaLabel' },
|
|
891
|
+
"Debug Call Stack"
|
|
892
|
+
));
|
|
855
893
|
}
|
|
856
894
|
getWidgetRole() {
|
|
857
895
|
return 'treegrid';
|
|
@@ -861,21 +899,49 @@ class CallStackAccessibilityProvider {
|
|
|
861
899
|
}
|
|
862
900
|
getAriaLabel(element) {
|
|
863
901
|
if (element instanceof Thread) {
|
|
864
|
-
return localizeWithPath(
|
|
902
|
+
return ( localizeWithPath(
|
|
903
|
+
'vs/workbench/contrib/debug/browser/callStackView',
|
|
904
|
+
{ key: 'threadAriaLabel', comment: ['Placeholders stand for the thread name and the thread state.For example "Thread 1" and "Stopped'] },
|
|
905
|
+
"Thread {0} {1}",
|
|
906
|
+
element.name,
|
|
907
|
+
element.stateLabel
|
|
908
|
+
));
|
|
865
909
|
}
|
|
866
910
|
if (element instanceof StackFrame) {
|
|
867
|
-
return
|
|
911
|
+
return ( localizeWithPath(
|
|
912
|
+
'vs/workbench/contrib/debug/browser/callStackView',
|
|
913
|
+
'stackFrameAriaLabel',
|
|
914
|
+
"Stack Frame {0}, line {1}, {2}",
|
|
915
|
+
element.name,
|
|
916
|
+
element.range.startLineNumber,
|
|
917
|
+
getSpecificSourceName(element)
|
|
918
|
+
));
|
|
868
919
|
}
|
|
869
920
|
if (isDebugSession(element)) {
|
|
870
921
|
const thread = element.getAllThreads().find(t => t.stopped);
|
|
871
|
-
const state = thread ? thread.stateLabel : localizeWithPath(
|
|
872
|
-
|
|
922
|
+
const state = thread ? thread.stateLabel : ( localizeWithPath(
|
|
923
|
+
'vs/workbench/contrib/debug/browser/callStackView',
|
|
924
|
+
{ key: 'running', comment: ['indicates state'] },
|
|
925
|
+
"Running"
|
|
926
|
+
));
|
|
927
|
+
return ( localizeWithPath(
|
|
928
|
+
'vs/workbench/contrib/debug/browser/callStackView',
|
|
929
|
+
{ key: 'sessionLabel', comment: ['Placeholders stand for the session name and the session state. For example "Launch Program" and "Running"'] },
|
|
930
|
+
"Session {0} {1}",
|
|
931
|
+
element.getLabel(),
|
|
932
|
+
state
|
|
933
|
+
));
|
|
873
934
|
}
|
|
874
935
|
if (typeof element === 'string') {
|
|
875
936
|
return element;
|
|
876
937
|
}
|
|
877
938
|
if (element instanceof Array) {
|
|
878
|
-
return localizeWithPath(
|
|
939
|
+
return ( localizeWithPath(
|
|
940
|
+
'vs/workbench/contrib/debug/browser/callStackView',
|
|
941
|
+
'showMoreStackFrames',
|
|
942
|
+
"Show {0} More Stack Frames",
|
|
943
|
+
element.length
|
|
944
|
+
));
|
|
879
945
|
}
|
|
880
946
|
return LoadMoreRenderer.LABEL;
|
|
881
947
|
}
|
|
@@ -903,7 +969,11 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
903
969
|
super({
|
|
904
970
|
id: 'callStack.collapse',
|
|
905
971
|
viewId: CALLSTACK_VIEW_ID,
|
|
906
|
-
title: localizeWithPath(
|
|
972
|
+
title: ( localizeWithPath(
|
|
973
|
+
'vs/workbench/contrib/debug/browser/callStackView',
|
|
974
|
+
'collapse',
|
|
975
|
+
"Collapse All"
|
|
976
|
+
)),
|
|
907
977
|
f1: false,
|
|
908
978
|
icon: Codicon.collapseAll,
|
|
909
979
|
precondition: ( CONTEXT_DEBUG_STATE.isEqualTo(getStateLabel(2 ))),
|