@codingame/monaco-vscode-debug-service-override 16.1.1 → 17.0.0
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 +17 -15
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +29 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +130 -112
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +13 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +28 -27
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +23 -23
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.d.ts +11 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +54 -54
- 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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.d.ts +23 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +48 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +21 -21
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +6 -6
- 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 +11 -11
- 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 +46 -46
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.d.ts +6 -5
- 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-debug-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - debug service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,20 +15,22 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-
|
|
19
|
-
"@codingame/monaco-vscode-
|
|
20
|
-
"@codingame/monaco-vscode-
|
|
21
|
-
"@codingame/monaco-vscode-
|
|
22
|
-
"@codingame/monaco-vscode-
|
|
23
|
-
"@codingame/monaco-vscode-
|
|
24
|
-
"@codingame/monaco-vscode-
|
|
25
|
-
"@codingame/monaco-vscode-
|
|
26
|
-
"@codingame/monaco-vscode-
|
|
27
|
-
"@codingame/monaco-vscode-
|
|
28
|
-
"@codingame/monaco-vscode-
|
|
29
|
-
"@codingame/monaco-vscode-
|
|
30
|
-
"@codingame/monaco-vscode-
|
|
31
|
-
"@codingame/monaco-vscode-
|
|
18
|
+
"@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common": "17.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-4a0e04a7-c3bd-5fb7-9d3b-4fd047cc9e59-common": "17.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "17.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common": "17.0.0",
|
|
22
|
+
"@codingame/monaco-vscode-97284942-b044-5fbb-b53b-3f46d2468746-common": "17.0.0",
|
|
23
|
+
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "17.0.0",
|
|
24
|
+
"@codingame/monaco-vscode-ab07af84-42e8-5a0f-8aef-b83fb90ede21-common": "17.0.0",
|
|
25
|
+
"@codingame/monaco-vscode-api": "17.0.0",
|
|
26
|
+
"@codingame/monaco-vscode-b4efa70b-52b9-5670-ab5c-f10b10b6834e-common": "17.0.0",
|
|
27
|
+
"@codingame/monaco-vscode-b99aef83-0d60-5e8c-a62e-9908b6256f35-common": "17.0.0",
|
|
28
|
+
"@codingame/monaco-vscode-bed2b49f-41ae-5ed2-b61a-1105500a3f8a-common": "17.0.0",
|
|
29
|
+
"@codingame/monaco-vscode-c8227507-8e59-53d6-b50b-71c0ab384cf4-common": "17.0.0",
|
|
30
|
+
"@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common": "17.0.0",
|
|
31
|
+
"@codingame/monaco-vscode-e59ecb8c-db32-5324-8fe4-cf9921fd92b8-common": "17.0.0",
|
|
32
|
+
"@codingame/monaco-vscode-e67a0dae-5b2c-54e6-8d61-90102c78362d-common": "17.0.0",
|
|
33
|
+
"@codingame/monaco-vscode-fc42f049-7883-579d-bb0b-2aa1010a19a8-common": "17.0.0"
|
|
32
34
|
},
|
|
33
35
|
"main": "index.js",
|
|
34
36
|
"module": "index.js",
|
|
@@ -42,7 +42,7 @@ import { ViewPane, ViewAction } from '@codingame/monaco-vscode-65619f8f-0eab-5d8
|
|
|
42
42
|
import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
|
|
43
43
|
import { renderViewTree } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/baseDebugView';
|
|
44
44
|
import { STOP_ID, DISCONNECT_ID, PAUSE_ID, PAUSE_LABEL, CONTINUE_ID, CONTINUE_LABEL, STEP_OVER_ID, STEP_OVER_LABEL, STEP_INTO_ID, STEP_INTO_LABEL, STEP_OUT_ID, STEP_OUT_LABEL, RESTART_SESSION_ID, RESTART_LABEL, STOP_LABEL, DISCONNECT_LABEL } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
45
|
-
import { callstackViewSession, debugRestartFrame, debugPause, debugContinue, debugStepOver, debugStepInto, debugStepOut, debugRestart, debugStop, debugDisconnect } from '@codingame/monaco-vscode-
|
|
45
|
+
import { callstackViewSession, debugRestartFrame, debugPause, debugContinue, debugStepOver, debugStepInto, debugStepOut, debugRestart, debugStop, debugDisconnect } from '@codingame/monaco-vscode-fc42f049-7883-579d-bb0b-2aa1010a19a8-common/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
46
46
|
import { createDisconnectMenuItemAction } from './debugToolBar.js';
|
|
47
47
|
import { State, CONTEXT_CALLSTACK_FOCUSED, CONTEXT_CALLSTACK_ITEM_TYPE, CONTEXT_CALLSTACK_SESSION_IS_ATTACH, CONTEXT_CALLSTACK_ITEM_STOPPED, CONTEXT_CALLSTACK_SESSION_HAS_ONE_THREAD, CONTEXT_STACK_FRAME_SUPPORTS_RESTART, isFrameDeemphasized, CALLSTACK_VIEW_ID, CONTEXT_DEBUG_STATE, getStateLabel, CONTEXT_FOCUSED_SESSION_IS_NO_DEBUG } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
48
48
|
import { IDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
@@ -145,7 +145,7 @@ let CallStackView = class CallStackView extends ViewPane {
|
|
|
145
145
|
this.stateMessage.hidden = false;
|
|
146
146
|
}
|
|
147
147
|
else if (sessions.length === 1 && sessions[0].state === State.Running) {
|
|
148
|
-
this.stateMessageLabel.textContent = ( localize(
|
|
148
|
+
this.stateMessageLabel.textContent = ( localize(5533, "Running"));
|
|
149
149
|
this.stateMessageLabelHover.update(sessions[0].getLabel());
|
|
150
150
|
this.stateMessageLabel.classList.remove('exception');
|
|
151
151
|
this.stateMessage.hidden = false;
|
|
@@ -155,7 +155,6 @@ let CallStackView = class CallStackView extends ViewPane {
|
|
|
155
155
|
}
|
|
156
156
|
this.updateActions();
|
|
157
157
|
this.needsRefresh = false;
|
|
158
|
-
this.dataSource.deemphasizedStackFramesToShow = [];
|
|
159
158
|
await this.tree.updateChildren();
|
|
160
159
|
try {
|
|
161
160
|
const toExpand = ( new Set());
|
|
@@ -226,7 +225,7 @@ let CallStackView = class CallStackView extends ViewPane {
|
|
|
226
225
|
if (e instanceof ThreadAndSessionIds) {
|
|
227
226
|
return LoadMoreRenderer.LABEL;
|
|
228
227
|
}
|
|
229
|
-
return localize(
|
|
228
|
+
return localize(5534, "Show More Stack Frames");
|
|
230
229
|
},
|
|
231
230
|
getCompressedNodeKeyboardNavigationLabel: (e) => {
|
|
232
231
|
const firstItem = e[0];
|
|
@@ -281,7 +280,7 @@ let CallStackView = class CallStackView extends ViewPane {
|
|
|
281
280
|
}
|
|
282
281
|
}
|
|
283
282
|
if (element instanceof Array) {
|
|
284
|
-
this.dataSource.deemphasizedStackFramesToShow.
|
|
283
|
+
element.forEach(sf => this.dataSource.deemphasizedStackFramesToShow.add(sf));
|
|
285
284
|
this.tree.updateChildren();
|
|
286
285
|
}
|
|
287
286
|
}));
|
|
@@ -482,7 +481,7 @@ let SessionsRenderer = class SessionsRenderer {
|
|
|
482
481
|
this.doRenderElement(lastElement, matches, templateData);
|
|
483
482
|
}
|
|
484
483
|
doRenderElement(session, matches, data) {
|
|
485
|
-
const sessionHover = data.elementDisposable.add(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), data.session, ( localize(
|
|
484
|
+
const sessionHover = data.elementDisposable.add(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), data.session, ( localize(5535, "Session"))));
|
|
486
485
|
data.label.set(session.getLabel(), matches);
|
|
487
486
|
const stoppedDetails = session.getStoppedDetails();
|
|
488
487
|
const thread = session.getAllThreads().find(t => t.stopped);
|
|
@@ -508,7 +507,7 @@ let SessionsRenderer = class SessionsRenderer {
|
|
|
508
507
|
data.stateLabel.classList.toggle('exception', thread.stoppedDetails.reason === 'exception');
|
|
509
508
|
}
|
|
510
509
|
else {
|
|
511
|
-
data.stateLabel.textContent = ( localize(
|
|
510
|
+
data.stateLabel.textContent = ( localize(5533, "Running"));
|
|
512
511
|
data.stateLabel.classList.remove('exception');
|
|
513
512
|
}
|
|
514
513
|
}
|
|
@@ -612,9 +611,11 @@ let StackFramesRenderer = class StackFramesRenderer {
|
|
|
612
611
|
const wrapper = append(file, $('span.line-number-wrapper'));
|
|
613
612
|
const lineNumber = append(wrapper, $('span.line-number.monaco-count-badge'));
|
|
614
613
|
const templateDisposable = ( new DisposableStore());
|
|
614
|
+
const elementDisposables = ( new DisposableStore());
|
|
615
|
+
templateDisposable.add(elementDisposables);
|
|
615
616
|
const label = templateDisposable.add(( new HighlightedLabel(labelDiv)));
|
|
616
617
|
const actionBar = templateDisposable.add(( new ActionBar(stackFrame)));
|
|
617
|
-
return { file, fileName, label, lineNumber, stackFrame, actionBar, templateDisposable };
|
|
618
|
+
return { file, fileName, label, lineNumber, stackFrame, actionBar, templateDisposable, elementDisposables };
|
|
618
619
|
}
|
|
619
620
|
renderElement(element, index, data) {
|
|
620
621
|
const stackFrame = element.element;
|
|
@@ -626,7 +627,7 @@ let StackFramesRenderer = class StackFramesRenderer {
|
|
|
626
627
|
if (stackFrame.source.raw.origin) {
|
|
627
628
|
title += `\n${stackFrame.source.raw.origin}`;
|
|
628
629
|
}
|
|
629
|
-
data.
|
|
630
|
+
data.elementDisposables.add(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), data.file, title));
|
|
630
631
|
data.label.set(stackFrame.name, createMatches(element.filterData), stackFrame.name);
|
|
631
632
|
data.fileName.textContent = getSpecificSourceName(stackFrame);
|
|
632
633
|
if (stackFrame.range.startLineNumber !== undefined) {
|
|
@@ -641,22 +642,25 @@ let StackFramesRenderer = class StackFramesRenderer {
|
|
|
641
642
|
}
|
|
642
643
|
data.actionBar.clear();
|
|
643
644
|
if (hasActions) {
|
|
644
|
-
const action = ( new Action('debug.callStack.restartFrame', ( localize(
|
|
645
|
+
const action = data.elementDisposables.add(( new Action('debug.callStack.restartFrame', ( localize(5536, "Restart Frame")), ThemeIcon.asClassName(debugRestartFrame), true, async () => {
|
|
645
646
|
try {
|
|
646
647
|
await stackFrame.restart();
|
|
647
648
|
}
|
|
648
649
|
catch (e) {
|
|
649
650
|
this.notificationService.error(e);
|
|
650
651
|
}
|
|
651
|
-
}));
|
|
652
|
+
})));
|
|
652
653
|
data.actionBar.push(action, { icon: true, label: false });
|
|
653
654
|
}
|
|
654
655
|
}
|
|
655
656
|
renderCompressedElements(node, index, templateData, height) {
|
|
656
657
|
throw ( new Error('Method not implemented.'));
|
|
657
658
|
}
|
|
659
|
+
disposeElement(element, index, templateData, height) {
|
|
660
|
+
templateData.elementDisposables.clear();
|
|
661
|
+
}
|
|
658
662
|
disposeTemplate(templateData) {
|
|
659
|
-
templateData.
|
|
663
|
+
templateData.templateDisposable.dispose();
|
|
660
664
|
}
|
|
661
665
|
};
|
|
662
666
|
StackFramesRenderer = StackFramesRenderer_1 = ( __decorate([
|
|
@@ -693,7 +697,7 @@ ErrorsRenderer = ErrorsRenderer_1 = ( __decorate([
|
|
|
693
697
|
], ErrorsRenderer));
|
|
694
698
|
class LoadMoreRenderer {
|
|
695
699
|
static { this.ID = 'loadMore'; }
|
|
696
|
-
static { this.LABEL = ( localize(
|
|
700
|
+
static { this.LABEL = ( localize(5537, "Load More Stack Frames")); }
|
|
697
701
|
constructor() { }
|
|
698
702
|
get templateId() {
|
|
699
703
|
return LoadMoreRenderer.ID;
|
|
@@ -727,14 +731,14 @@ class ShowMoreRenderer {
|
|
|
727
731
|
const stackFrames = element.element;
|
|
728
732
|
if (stackFrames.every(sf => !!(sf.source && sf.source.origin && sf.source.origin === stackFrames[0].source.origin))) {
|
|
729
733
|
data.label.textContent = ( localize(
|
|
730
|
-
|
|
734
|
+
5538,
|
|
731
735
|
"Show {0} More: {1}",
|
|
732
736
|
stackFrames.length,
|
|
733
737
|
stackFrames[0].source.origin
|
|
734
738
|
));
|
|
735
739
|
}
|
|
736
740
|
else {
|
|
737
|
-
data.label.textContent = ( localize(
|
|
741
|
+
data.label.textContent = ( localize(5539, "Show {0} More Stack Frames", stackFrames.length));
|
|
738
742
|
}
|
|
739
743
|
}
|
|
740
744
|
renderCompressedElements(node, index, templateData, height) {
|
|
@@ -777,7 +781,7 @@ function stoppedText(stoppedDetails) {
|
|
|
777
781
|
}
|
|
778
782
|
function stoppedDescription(stoppedDetails) {
|
|
779
783
|
return stoppedDetails.description ||
|
|
780
|
-
(stoppedDetails.reason ? ( localize(
|
|
784
|
+
(stoppedDetails.reason ? ( localize(5540, "Paused on {0}", stoppedDetails.reason)) : ( localize(5541, "Paused")));
|
|
781
785
|
}
|
|
782
786
|
function isDebugModel(obj) {
|
|
783
787
|
return typeof obj.getSessions === 'function';
|
|
@@ -788,7 +792,7 @@ function isDebugSession(obj) {
|
|
|
788
792
|
class CallStackDataSource {
|
|
789
793
|
constructor(debugService) {
|
|
790
794
|
this.debugService = debugService;
|
|
791
|
-
this.deemphasizedStackFramesToShow =
|
|
795
|
+
this.deemphasizedStackFramesToShow = ( new WeakSet());
|
|
792
796
|
}
|
|
793
797
|
hasChildren(element) {
|
|
794
798
|
if (isDebugSession(element)) {
|
|
@@ -827,7 +831,7 @@ class CallStackDataSource {
|
|
|
827
831
|
const result = [];
|
|
828
832
|
children.forEach((child, index) => {
|
|
829
833
|
if (child instanceof StackFrame && child.source && isFrameDeemphasized(child)) {
|
|
830
|
-
if (this.deemphasizedStackFramesToShow.
|
|
834
|
+
if (!( this.deemphasizedStackFramesToShow.has(child))) {
|
|
831
835
|
if (result.length) {
|
|
832
836
|
const last = result[result.length - 1];
|
|
833
837
|
if (last instanceof Array) {
|
|
@@ -867,7 +871,7 @@ class CallStackDataSource {
|
|
|
867
871
|
}
|
|
868
872
|
class CallStackAccessibilityProvider {
|
|
869
873
|
getWidgetAriaLabel() {
|
|
870
|
-
return localize(
|
|
874
|
+
return localize(5542, "Debug Call Stack");
|
|
871
875
|
}
|
|
872
876
|
getWidgetRole() {
|
|
873
877
|
return 'treegrid';
|
|
@@ -877,11 +881,11 @@ class CallStackAccessibilityProvider {
|
|
|
877
881
|
}
|
|
878
882
|
getAriaLabel(element) {
|
|
879
883
|
if (element instanceof Thread) {
|
|
880
|
-
return localize(
|
|
884
|
+
return localize(5543, "Thread {0} {1}", element.name, element.stateLabel);
|
|
881
885
|
}
|
|
882
886
|
if (element instanceof StackFrame) {
|
|
883
887
|
return localize(
|
|
884
|
-
|
|
888
|
+
5544,
|
|
885
889
|
"Stack Frame {0}, line {1}, {2}",
|
|
886
890
|
element.name,
|
|
887
891
|
element.range.startLineNumber,
|
|
@@ -890,14 +894,14 @@ class CallStackAccessibilityProvider {
|
|
|
890
894
|
}
|
|
891
895
|
if (isDebugSession(element)) {
|
|
892
896
|
const thread = element.getAllThreads().find(t => t.stopped);
|
|
893
|
-
const state = thread ? thread.stateLabel : ( localize(
|
|
894
|
-
return localize(
|
|
897
|
+
const state = thread ? thread.stateLabel : ( localize(5533, "Running"));
|
|
898
|
+
return localize(5545, "Session {0} {1}", element.getLabel(), state);
|
|
895
899
|
}
|
|
896
900
|
if (typeof element === 'string') {
|
|
897
901
|
return element;
|
|
898
902
|
}
|
|
899
903
|
if (element instanceof Array) {
|
|
900
|
-
return localize(
|
|
904
|
+
return localize(5539, "Show {0} More Stack Frames", element.length);
|
|
901
905
|
}
|
|
902
906
|
return LoadMoreRenderer.LABEL;
|
|
903
907
|
}
|
|
@@ -925,7 +929,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
925
929
|
super({
|
|
926
930
|
id: 'callStack.collapse',
|
|
927
931
|
viewId: CALLSTACK_VIEW_ID,
|
|
928
|
-
title: ( localize(
|
|
932
|
+
title: ( localize(5546, "Collapse All")),
|
|
929
933
|
f1: false,
|
|
930
934
|
icon: Codicon.collapseAll,
|
|
931
935
|
precondition: ( CONTEXT_DEBUG_STATE.isEqualTo(getStateLabel(State.Stopped))),
|