@codingame/monaco-vscode-debug-service-override 22.1.9 → 23.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 +15 -15
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.d.ts +13 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +44 -41
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +114 -114
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +6 -6
- 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 -32
- 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 +29 -30
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +46 -46
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +19 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +15 -13
- 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/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.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +35 -17
- 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.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +12 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +8 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-debug-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "23.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,20 @@
|
|
|
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-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "
|
|
25
|
-
"@codingame/monaco-vscode-ab07af84-42e8-5a0f-8aef-b83fb90ede21-common": "
|
|
26
|
-
"@codingame/monaco-vscode-
|
|
27
|
-
"@codingame/monaco-vscode-
|
|
28
|
-
"@codingame/monaco-vscode-
|
|
29
|
-
"@codingame/monaco-vscode-
|
|
30
|
-
"@codingame/monaco-vscode-e59ecb8c-db32-5324-8fe4-cf9921fd92b8-common": "
|
|
31
|
-
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "
|
|
18
|
+
"@codingame/monaco-vscode-262ed59d-4f76-57cd-9e9f-1877f26ae049-common": "23.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-3b5a5cd1-d4ff-500a-b609-57e0cd4afa0a-common": "23.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common": "23.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "23.0.0",
|
|
22
|
+
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "23.0.0",
|
|
23
|
+
"@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common": "23.0.0",
|
|
24
|
+
"@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "23.0.0",
|
|
25
|
+
"@codingame/monaco-vscode-ab07af84-42e8-5a0f-8aef-b83fb90ede21-common": "23.0.0",
|
|
26
|
+
"@codingame/monaco-vscode-afb6e5ca-fe46-5d5a-aa9c-f722ebefae39-common": "23.0.0",
|
|
27
|
+
"@codingame/monaco-vscode-api": "23.0.0",
|
|
28
|
+
"@codingame/monaco-vscode-b99aef83-0d60-5e8c-a62e-9908b6256f35-common": "23.0.0",
|
|
29
|
+
"@codingame/monaco-vscode-ce7c734f-7712-563c-9335-d7acb43306af-common": "23.0.0",
|
|
30
|
+
"@codingame/monaco-vscode-e59ecb8c-db32-5324-8fe4-cf9921fd92b8-common": "23.0.0",
|
|
31
|
+
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "23.0.0"
|
|
32
32
|
},
|
|
33
33
|
"main": "index.js",
|
|
34
34
|
"module": "index.js",
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { IRange } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range";
|
|
1
2
|
import { IMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service";
|
|
2
3
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
3
4
|
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
4
5
|
import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
|
|
6
|
+
import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
|
|
5
7
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
6
8
|
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
7
9
|
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
@@ -12,9 +14,18 @@ import { IViewDescriptorService } from "@codingame/monaco-vscode-api/vscode/vs/w
|
|
|
12
14
|
import { IDebugSession, IStackFrame, IThread } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug";
|
|
13
15
|
import { IDebugService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service";
|
|
14
16
|
import { ThreadAndSessionIds } from "@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/debugModel";
|
|
15
|
-
import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
|
|
16
17
|
type CallStackItem = IStackFrame | IThread | IDebugSession | string | ThreadAndSessionIds | IStackFrame[];
|
|
17
|
-
|
|
18
|
+
interface ICallStackItemContext {
|
|
19
|
+
sessionId: string;
|
|
20
|
+
threadId?: string;
|
|
21
|
+
frameId?: string;
|
|
22
|
+
frameName?: string;
|
|
23
|
+
frameLocation?: {
|
|
24
|
+
range: IRange;
|
|
25
|
+
source: DebugProtocol.Source;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export declare function getContext(element: CallStackItem | null): ICallStackItemContext | undefined;
|
|
18
29
|
export declare function getContextForContributedActions(element: CallStackItem | null): string | number;
|
|
19
30
|
export declare function getSpecificSourceName(stackFrame: IStackFrame): string;
|
|
20
31
|
export declare class CallStackView extends ViewPane {
|
|
@@ -3,6 +3,7 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { $ as $$1, append } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
4
|
import { ActionBar } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionbar';
|
|
5
5
|
import { HighlightedLabel } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/highlightedlabel/highlightedLabel';
|
|
6
|
+
import { getDefaultHoverDelegate } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hoverDelegateFactory';
|
|
6
7
|
import { Action } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
|
|
7
8
|
import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
8
9
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
@@ -11,6 +12,7 @@ import { createMatches } from '@codingame/monaco-vscode-api/vscode/vs/base/commo
|
|
|
11
12
|
import { dispose, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
12
13
|
import { posix } from '@codingame/monaco-vscode-api/vscode/vs/base/common/path';
|
|
13
14
|
import { commonSuffixLength } from '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
|
|
15
|
+
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
14
16
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
15
17
|
import { getContextMenuActions, MenuEntryActionViewItem, SubmenuEntryActionViewItem, getActionBarActions } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/menuEntryActionViewItem';
|
|
16
18
|
import { MenuId, MenuItemAction, SubmenuItemAction, registerAction2, MenuRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
@@ -19,6 +21,7 @@ import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
19
21
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
20
22
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
21
23
|
import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
|
|
24
|
+
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
22
25
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
23
26
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
24
27
|
import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service';
|
|
@@ -37,47 +40,47 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/misc
|
|
|
37
40
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
38
41
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
|
|
39
42
|
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
40
|
-
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
41
43
|
import { ViewPane, ViewAction } from '@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
42
44
|
import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
|
|
43
|
-
import { renderViewTree } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/baseDebugView';
|
|
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-09e9b2e8-42a8-5a68-864f-bfcdad0ca1df-common/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
46
|
-
import { createDisconnectMenuItemAction } from './debugToolBar.js';
|
|
47
45
|
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
46
|
import { IDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
49
47
|
import { StackFrame, Thread, ThreadAndSessionIds } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/debugModel';
|
|
50
48
|
import { isSessionAttach } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debugUtils';
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
49
|
+
import { renderViewTree } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/baseDebugView';
|
|
50
|
+
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';
|
|
51
|
+
import { callstackViewSession, debugRestartFrame, debugPause, debugContinue, debugStepOver, debugStepInto, debugStepOut, debugRestart, debugStop, debugDisconnect } from '@codingame/monaco-vscode-afb6e5ca-fe46-5d5a-aa9c-f722ebefae39-common/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
52
|
+
import { createDisconnectMenuItemAction } from './debugToolBar.js';
|
|
53
53
|
|
|
54
54
|
var SessionsRenderer_1, ThreadsRenderer_1, StackFramesRenderer_1, ErrorsRenderer_1;
|
|
55
55
|
const $ = $$1;
|
|
56
|
-
function
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
function getSessionContext(element) {
|
|
57
|
+
return {
|
|
58
|
+
sessionId: element.getId()
|
|
59
|
+
};
|
|
59
60
|
}
|
|
60
|
-
function
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
function getThreadContext(element) {
|
|
62
|
+
return {
|
|
63
|
+
...getSessionContext(element.session),
|
|
64
|
+
threadId: element.getId()
|
|
65
|
+
};
|
|
64
66
|
}
|
|
65
|
-
function
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
function getStackFrameContext(element) {
|
|
68
|
+
return {
|
|
69
|
+
...getThreadContext(element.thread),
|
|
70
|
+
frameId: element.getId(),
|
|
71
|
+
frameName: element.name,
|
|
72
|
+
frameLocation: { range: element.range, source: element.source.raw }
|
|
73
|
+
};
|
|
71
74
|
}
|
|
72
75
|
function getContext(element) {
|
|
73
76
|
if (element instanceof StackFrame) {
|
|
74
|
-
return
|
|
77
|
+
return getStackFrameContext(element);
|
|
75
78
|
}
|
|
76
79
|
else if (element instanceof Thread) {
|
|
77
|
-
return
|
|
80
|
+
return getThreadContext(element);
|
|
78
81
|
}
|
|
79
82
|
else if (isDebugSession(element)) {
|
|
80
|
-
return
|
|
83
|
+
return getSessionContext(element);
|
|
81
84
|
}
|
|
82
85
|
else {
|
|
83
86
|
return undefined;
|
|
@@ -145,7 +148,7 @@ let CallStackView = class CallStackView extends ViewPane {
|
|
|
145
148
|
this.stateMessage.hidden = false;
|
|
146
149
|
}
|
|
147
150
|
else if (sessions.length === 1 && sessions[0].state === State.Running) {
|
|
148
|
-
this.stateMessageLabel.textContent = ( localize(
|
|
151
|
+
this.stateMessageLabel.textContent = ( localize(6391, "Running"));
|
|
149
152
|
this.stateMessageLabelHover.update(sessions[0].getLabel());
|
|
150
153
|
this.stateMessageLabel.classList.remove('exception');
|
|
151
154
|
this.stateMessage.hidden = false;
|
|
@@ -225,7 +228,7 @@ let CallStackView = class CallStackView extends ViewPane {
|
|
|
225
228
|
if (e instanceof ThreadAndSessionIds) {
|
|
226
229
|
return LoadMoreRenderer.LABEL;
|
|
227
230
|
}
|
|
228
|
-
return localize(
|
|
231
|
+
return localize(6392, "Show More Stack Frames");
|
|
229
232
|
},
|
|
230
233
|
getCompressedNodeKeyboardNavigationLabel: (e) => {
|
|
231
234
|
const firstItem = e[0];
|
|
@@ -481,7 +484,7 @@ let SessionsRenderer = class SessionsRenderer {
|
|
|
481
484
|
this.doRenderElement(lastElement, matches, templateData);
|
|
482
485
|
}
|
|
483
486
|
doRenderElement(session, matches, data) {
|
|
484
|
-
const sessionHover = data.elementDisposable.add(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), data.session, ( localize(
|
|
487
|
+
const sessionHover = data.elementDisposable.add(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), data.session, ( localize(6393, "Session"))));
|
|
485
488
|
data.label.set(session.getLabel(), matches);
|
|
486
489
|
const stoppedDetails = session.getStoppedDetails();
|
|
487
490
|
const thread = session.getAllThreads().find(t => t.stopped);
|
|
@@ -507,7 +510,7 @@ let SessionsRenderer = class SessionsRenderer {
|
|
|
507
510
|
data.stateLabel.classList.toggle('exception', thread.stoppedDetails.reason === 'exception');
|
|
508
511
|
}
|
|
509
512
|
else {
|
|
510
|
-
data.stateLabel.textContent = ( localize(
|
|
513
|
+
data.stateLabel.textContent = ( localize(6391, "Running"));
|
|
511
514
|
data.stateLabel.classList.remove('exception');
|
|
512
515
|
}
|
|
513
516
|
}
|
|
@@ -642,7 +645,7 @@ let StackFramesRenderer = class StackFramesRenderer {
|
|
|
642
645
|
}
|
|
643
646
|
data.actionBar.clear();
|
|
644
647
|
if (hasActions) {
|
|
645
|
-
const action = data.elementDisposables.add(( new Action('debug.callStack.restartFrame', ( localize(
|
|
648
|
+
const action = data.elementDisposables.add(( new Action('debug.callStack.restartFrame', ( localize(6394, "Restart Frame")), ThemeIcon.asClassName(debugRestartFrame), true, async () => {
|
|
646
649
|
try {
|
|
647
650
|
await stackFrame.restart();
|
|
648
651
|
}
|
|
@@ -697,7 +700,7 @@ ErrorsRenderer = ErrorsRenderer_1 = ( __decorate([
|
|
|
697
700
|
], ErrorsRenderer));
|
|
698
701
|
class LoadMoreRenderer {
|
|
699
702
|
static { this.ID = 'loadMore'; }
|
|
700
|
-
static { this.LABEL = ( localize(
|
|
703
|
+
static { this.LABEL = ( localize(6395, "Load More Stack Frames")); }
|
|
701
704
|
constructor() { }
|
|
702
705
|
get templateId() {
|
|
703
706
|
return LoadMoreRenderer.ID;
|
|
@@ -731,14 +734,14 @@ class ShowMoreRenderer {
|
|
|
731
734
|
const stackFrames = element.element;
|
|
732
735
|
if (stackFrames.every(sf => !!(sf.source && sf.source.origin && sf.source.origin === stackFrames[0].source.origin))) {
|
|
733
736
|
data.label.textContent = ( localize(
|
|
734
|
-
|
|
737
|
+
6396,
|
|
735
738
|
"Show {0} More: {1}",
|
|
736
739
|
stackFrames.length,
|
|
737
740
|
stackFrames[0].source.origin
|
|
738
741
|
));
|
|
739
742
|
}
|
|
740
743
|
else {
|
|
741
|
-
data.label.textContent = ( localize(
|
|
744
|
+
data.label.textContent = ( localize(6397, "Show {0} More Stack Frames", stackFrames.length));
|
|
742
745
|
}
|
|
743
746
|
}
|
|
744
747
|
renderCompressedElements(node, index, templateData) {
|
|
@@ -781,13 +784,13 @@ function stoppedText(stoppedDetails) {
|
|
|
781
784
|
}
|
|
782
785
|
function stoppedDescription(stoppedDetails) {
|
|
783
786
|
return stoppedDetails.description ||
|
|
784
|
-
(stoppedDetails.reason ? ( localize(
|
|
787
|
+
(stoppedDetails.reason ? ( localize(6398, "Paused on {0}", stoppedDetails.reason)) : ( localize(6399, "Paused")));
|
|
785
788
|
}
|
|
786
789
|
function isDebugModel(obj) {
|
|
787
|
-
return typeof obj.getSessions === 'function';
|
|
790
|
+
return !!obj && typeof obj.getSessions === 'function';
|
|
788
791
|
}
|
|
789
792
|
function isDebugSession(obj) {
|
|
790
|
-
return obj && typeof obj.getAllThreads === 'function';
|
|
793
|
+
return !!obj && typeof obj.getAllThreads === 'function';
|
|
791
794
|
}
|
|
792
795
|
class CallStackDataSource {
|
|
793
796
|
constructor(debugService) {
|
|
@@ -871,7 +874,7 @@ class CallStackDataSource {
|
|
|
871
874
|
}
|
|
872
875
|
class CallStackAccessibilityProvider {
|
|
873
876
|
getWidgetAriaLabel() {
|
|
874
|
-
return localize(
|
|
877
|
+
return localize(6400, "Debug Call Stack");
|
|
875
878
|
}
|
|
876
879
|
getWidgetRole() {
|
|
877
880
|
return 'treegrid';
|
|
@@ -881,11 +884,11 @@ class CallStackAccessibilityProvider {
|
|
|
881
884
|
}
|
|
882
885
|
getAriaLabel(element) {
|
|
883
886
|
if (element instanceof Thread) {
|
|
884
|
-
return localize(
|
|
887
|
+
return localize(6401, "Thread {0} {1}", element.name, element.stateLabel);
|
|
885
888
|
}
|
|
886
889
|
if (element instanceof StackFrame) {
|
|
887
890
|
return localize(
|
|
888
|
-
|
|
891
|
+
6402,
|
|
889
892
|
"Stack Frame {0}, line {1}, {2}",
|
|
890
893
|
element.name,
|
|
891
894
|
element.range.startLineNumber,
|
|
@@ -894,14 +897,14 @@ class CallStackAccessibilityProvider {
|
|
|
894
897
|
}
|
|
895
898
|
if (isDebugSession(element)) {
|
|
896
899
|
const thread = element.getAllThreads().find(t => t.stopped);
|
|
897
|
-
const state = thread ? thread.stateLabel : ( localize(
|
|
898
|
-
return localize(
|
|
900
|
+
const state = thread ? thread.stateLabel : ( localize(6391, "Running"));
|
|
901
|
+
return localize(6403, "Session {0} {1}", element.getLabel(), state);
|
|
899
902
|
}
|
|
900
903
|
if (typeof element === 'string') {
|
|
901
904
|
return element;
|
|
902
905
|
}
|
|
903
906
|
if (element instanceof Array) {
|
|
904
|
-
return localize(
|
|
907
|
+
return localize(6397, "Show {0} More Stack Frames", element.length);
|
|
905
908
|
}
|
|
906
909
|
return LoadMoreRenderer.LABEL;
|
|
907
910
|
}
|
|
@@ -929,7 +932,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
929
932
|
super({
|
|
930
933
|
id: 'callStack.collapse',
|
|
931
934
|
viewId: CALLSTACK_VIEW_ID,
|
|
932
|
-
title: ( localize(
|
|
935
|
+
title: ( localize(6404, "Collapse All")),
|
|
933
936
|
f1: false,
|
|
934
937
|
icon: Codicon.collapseAll,
|
|
935
938
|
precondition: ( CONTEXT_DEBUG_STATE.isEqualTo(getStateLabel(State.Stopped))),
|