@codingame/monaco-vscode-debug-service-override 9.0.3 → 10.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 +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +160 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +22 -22
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +133 -136
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +12 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +12 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +23 -26
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +35 -36
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +21 -28
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +29 -42
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +10 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +1 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +11 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +55 -67
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +58 -58
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSettingMigration.js +3 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +5 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +35 -42
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.js +1 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +17 -21
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +13 -15
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +8 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +3 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +12 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +66 -71
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +12 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.js +4 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +2 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +40 -45
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +20 -22
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +5 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +39 -48
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +34 -35
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +9 -10
- 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/debugStorage.js +24 -24
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +5 -4
- 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/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +0 -347
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getDomNodePagePosition } from 'vscode/vscode/vs/base/browser/dom';
|
|
2
2
|
import { Action } from 'vscode/vscode/vs/base/common/actions';
|
|
3
|
-
import {
|
|
3
|
+
import { KeyChord } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
4
4
|
import { EditorAction, registerEditorAction } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
5
5
|
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
6
6
|
import { Position } from 'vscode/vscode/vs/editor/common/core/position';
|
|
@@ -12,13 +12,12 @@ import { Action2, MenuId, registerAction2 } from 'vscode/vscode/vs/platform/acti
|
|
|
12
12
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
13
13
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
14
14
|
import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
|
|
15
|
-
import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
16
15
|
import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
17
16
|
import { PanelFocusContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
18
17
|
import { CONTEXT_IN_CHAT_SESSION } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
19
18
|
import { openBreakpointSource } from 'vscode/vscode/vs/workbench/contrib/debug/browser/breakpointsView';
|
|
20
19
|
import { DisassemblyView } from './disassemblyView.js';
|
|
21
|
-
import { CONTEXT_DEBUGGERS_AVAILABLE, CONTEXT_DISASSEMBLY_VIEW_FOCUS, BREAKPOINT_EDITOR_CONTRIBUTION_ID,
|
|
20
|
+
import { CONTEXT_DEBUGGERS_AVAILABLE, CONTEXT_DISASSEMBLY_VIEW_FOCUS, BREAKPOINT_EDITOR_CONTRIBUTION_ID, CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE, CONTEXT_IN_DEBUG_MODE, CONTEXT_DEBUG_STATE, CONTEXT_DISASSEMBLE_REQUEST_SUPPORTED, CONTEXT_LANGUAGE_SUPPORTS_DISASSEMBLE_REQUEST, CONTEXT_CALLSTACK_ITEM_TYPE, REPL_VIEW_ID, WATCH_VIEW_ID, EDITOR_CONTRIBUTION_ID, CONTEXT_STEP_INTO_TARGETS_SUPPORTED, CONTEXT_EXCEPTION_WIDGET_VISIBLE } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
22
21
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
23
22
|
import { getEvaluatableExpressionAtPosition } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugUtils';
|
|
24
23
|
import { DisassemblyViewInput } from 'vscode/vscode/vs/workbench/contrib/debug/common/disassemblyViewInput';
|
|
@@ -30,15 +29,15 @@ class ToggleBreakpointAction extends Action2 {
|
|
|
30
29
|
super({
|
|
31
30
|
id: 'editor.debug.action.toggleBreakpoint',
|
|
32
31
|
title: {
|
|
33
|
-
...( localize2(
|
|
34
|
-
mnemonicTitle: ( localize(
|
|
32
|
+
...( localize2(5950, "Debug: Toggle Breakpoint")),
|
|
33
|
+
mnemonicTitle: ( localize(5951, "Toggle &&Breakpoint")),
|
|
35
34
|
},
|
|
36
35
|
f1: true,
|
|
37
36
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
38
37
|
keybinding: {
|
|
39
38
|
when: ( (ContextKeyExpr.or(EditorContextKeys.editorTextFocus, CONTEXT_DISASSEMBLY_VIEW_FOCUS))),
|
|
40
|
-
primary:
|
|
41
|
-
weight:
|
|
39
|
+
primary: 67 ,
|
|
40
|
+
weight: 100
|
|
42
41
|
},
|
|
43
42
|
menu: {
|
|
44
43
|
id: MenuId.MenubarDebugMenu,
|
|
@@ -90,12 +89,12 @@ class ConditionalBreakpointAction extends EditorAction {
|
|
|
90
89
|
constructor() {
|
|
91
90
|
super({
|
|
92
91
|
id: 'editor.debug.action.conditionalBreakpoint',
|
|
93
|
-
label: ( localize(
|
|
92
|
+
label: ( localize(5952, "Debug: Add Conditional Breakpoint...")),
|
|
94
93
|
alias: 'Debug: Add Conditional Breakpoint...',
|
|
95
94
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
96
95
|
menuOpts: {
|
|
97
96
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
98
|
-
title: ( localize(
|
|
97
|
+
title: ( localize(5953, "&&Conditional Breakpoint...")),
|
|
99
98
|
group: '1_breakpoints',
|
|
100
99
|
order: 1,
|
|
101
100
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -106,7 +105,7 @@ class ConditionalBreakpointAction extends EditorAction {
|
|
|
106
105
|
const debugService = accessor.get(IDebugService);
|
|
107
106
|
const position = editor.getPosition();
|
|
108
107
|
if (position && editor.hasModel() && debugService.canSetBreakpointsIn(editor.getModel())) {
|
|
109
|
-
editor.getContribution(BREAKPOINT_EDITOR_CONTRIBUTION_ID)?.showBreakpointWidget(position.lineNumber, undefined,
|
|
108
|
+
editor.getContribution(BREAKPOINT_EDITOR_CONTRIBUTION_ID)?.showBreakpointWidget(position.lineNumber, undefined, 0 );
|
|
110
109
|
}
|
|
111
110
|
}
|
|
112
111
|
}
|
|
@@ -114,13 +113,13 @@ class LogPointAction extends EditorAction {
|
|
|
114
113
|
constructor() {
|
|
115
114
|
super({
|
|
116
115
|
id: 'editor.debug.action.addLogPoint',
|
|
117
|
-
label: ( localize(
|
|
116
|
+
label: ( localize(5954, "Debug: Add Logpoint...")),
|
|
118
117
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
119
118
|
alias: 'Debug: Add Logpoint...',
|
|
120
119
|
menuOpts: [
|
|
121
120
|
{
|
|
122
121
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
123
|
-
title: ( localize(
|
|
122
|
+
title: ( localize(5955, "&&Logpoint...")),
|
|
124
123
|
group: '1_breakpoints',
|
|
125
124
|
order: 4,
|
|
126
125
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -132,7 +131,7 @@ class LogPointAction extends EditorAction {
|
|
|
132
131
|
const debugService = accessor.get(IDebugService);
|
|
133
132
|
const position = editor.getPosition();
|
|
134
133
|
if (position && editor.hasModel() && debugService.canSetBreakpointsIn(editor.getModel())) {
|
|
135
|
-
editor.getContribution(BREAKPOINT_EDITOR_CONTRIBUTION_ID)?.showBreakpointWidget(position.lineNumber, position.column,
|
|
134
|
+
editor.getContribution(BREAKPOINT_EDITOR_CONTRIBUTION_ID)?.showBreakpointWidget(position.lineNumber, position.column, 2 );
|
|
136
135
|
}
|
|
137
136
|
}
|
|
138
137
|
}
|
|
@@ -140,13 +139,13 @@ class TriggerByBreakpointAction extends EditorAction {
|
|
|
140
139
|
constructor() {
|
|
141
140
|
super({
|
|
142
141
|
id: 'editor.debug.action.triggerByBreakpoint',
|
|
143
|
-
label: ( localize(
|
|
142
|
+
label: ( localize(5956, "Debug: Add Triggered Breakpoint...")),
|
|
144
143
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
145
144
|
alias: 'Debug: Triggered Breakpoint...',
|
|
146
145
|
menuOpts: [
|
|
147
146
|
{
|
|
148
147
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
149
|
-
title: ( localize(
|
|
148
|
+
title: ( localize(5957, "&&Triggered Breakpoint...")),
|
|
150
149
|
group: '1_breakpoints',
|
|
151
150
|
order: 4,
|
|
152
151
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -158,7 +157,7 @@ class TriggerByBreakpointAction extends EditorAction {
|
|
|
158
157
|
const debugService = accessor.get(IDebugService);
|
|
159
158
|
const position = editor.getPosition();
|
|
160
159
|
if (position && editor.hasModel() && debugService.canSetBreakpointsIn(editor.getModel())) {
|
|
161
|
-
editor.getContribution(BREAKPOINT_EDITOR_CONTRIBUTION_ID)?.showBreakpointWidget(position.lineNumber, position.column,
|
|
160
|
+
editor.getContribution(BREAKPOINT_EDITOR_CONTRIBUTION_ID)?.showBreakpointWidget(position.lineNumber, position.column, 3 );
|
|
162
161
|
}
|
|
163
162
|
}
|
|
164
163
|
}
|
|
@@ -166,12 +165,12 @@ class EditBreakpointAction extends EditorAction {
|
|
|
166
165
|
constructor() {
|
|
167
166
|
super({
|
|
168
167
|
id: 'editor.debug.action.editBreakpoint',
|
|
169
|
-
label: ( localize(
|
|
168
|
+
label: ( localize(5958, "Debug: Edit Breakpoint")),
|
|
170
169
|
alias: 'Debug: Edit Existing Breakpoint',
|
|
171
170
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
172
171
|
menuOpts: {
|
|
173
172
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
174
|
-
title: ( localize(
|
|
173
|
+
title: ( localize(5959, "&&Edit Breakpoint")),
|
|
175
174
|
group: '1_breakpoints',
|
|
176
175
|
order: 1,
|
|
177
176
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -206,8 +205,8 @@ class OpenDisassemblyViewAction extends Action2 {
|
|
|
206
205
|
super({
|
|
207
206
|
id: OpenDisassemblyViewAction.ID,
|
|
208
207
|
title: {
|
|
209
|
-
...( localize2(
|
|
210
|
-
mnemonicTitle: ( localize(
|
|
208
|
+
...( localize2(5960, "Open Disassembly View")),
|
|
209
|
+
mnemonicTitle: ( localize(5961, "&&DisassemblyView")),
|
|
211
210
|
},
|
|
212
211
|
precondition: CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE,
|
|
213
212
|
menu: [
|
|
@@ -258,11 +257,11 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
258
257
|
super({
|
|
259
258
|
id: ToggleDisassemblyViewSourceCodeAction.ID,
|
|
260
259
|
title: {
|
|
261
|
-
...( localize2(
|
|
262
|
-
mnemonicTitle: ( localize(
|
|
260
|
+
...( localize2(5962, "Toggle Source Code in Disassembly View")),
|
|
261
|
+
mnemonicTitle: ( localize(5963, "&&ToggleSource")),
|
|
263
262
|
},
|
|
264
263
|
metadata: {
|
|
265
|
-
description: ( localize2(
|
|
264
|
+
description: ( localize2(5964, 'Shows or hides source code in disassembly'))
|
|
266
265
|
},
|
|
267
266
|
f1: true,
|
|
268
267
|
});
|
|
@@ -277,7 +276,7 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
277
276
|
}
|
|
278
277
|
class RunToCursorAction extends EditorAction {
|
|
279
278
|
static { this.ID = 'editor.debug.action.runToCursor'; }
|
|
280
|
-
static { this.LABEL = ( localize2(
|
|
279
|
+
static { this.LABEL = ( localize2(5965, "Run to Cursor")); }
|
|
281
280
|
constructor() {
|
|
282
281
|
super({
|
|
283
282
|
id: RunToCursorAction.ID,
|
|
@@ -315,7 +314,7 @@ class RunToCursorAction extends EditorAction {
|
|
|
315
314
|
}
|
|
316
315
|
class SelectionToReplAction extends EditorAction {
|
|
317
316
|
static { this.ID = 'editor.debug.action.selectionToRepl'; }
|
|
318
|
-
static { this.LABEL = ( localize2(
|
|
317
|
+
static { this.LABEL = ( localize2(5966, "Evaluate in Debug Console")); }
|
|
319
318
|
constructor() {
|
|
320
319
|
super({
|
|
321
320
|
id: SelectionToReplAction.ID,
|
|
@@ -354,7 +353,7 @@ class SelectionToReplAction extends EditorAction {
|
|
|
354
353
|
}
|
|
355
354
|
class SelectionToWatchExpressionsAction extends EditorAction {
|
|
356
355
|
static { this.ID = 'editor.debug.action.selectionToWatch'; }
|
|
357
|
-
static { this.LABEL = ( localize2(
|
|
356
|
+
static { this.LABEL = ( localize2(5967, "Add to Watch")); }
|
|
358
357
|
constructor() {
|
|
359
358
|
super({
|
|
360
359
|
id: SelectionToWatchExpressionsAction.ID,
|
|
@@ -403,13 +402,13 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
403
402
|
constructor() {
|
|
404
403
|
super({
|
|
405
404
|
id: 'editor.debug.action.showDebugHover',
|
|
406
|
-
label: ( localize(
|
|
405
|
+
label: ( localize(5968, "Debug: Show Hover")),
|
|
407
406
|
alias: 'Debug: Show Hover',
|
|
408
407
|
precondition: CONTEXT_IN_DEBUG_MODE,
|
|
409
408
|
kbOpts: {
|
|
410
409
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
411
|
-
primary: KeyChord(
|
|
412
|
-
weight:
|
|
410
|
+
primary: KeyChord(2048 | 41 , 2048 | 39 ),
|
|
411
|
+
weight: 100
|
|
413
412
|
}
|
|
414
413
|
});
|
|
415
414
|
}
|
|
@@ -421,10 +420,10 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
421
420
|
return editor.getContribution(EDITOR_CONTRIBUTION_ID)?.showHover(position, true);
|
|
422
421
|
}
|
|
423
422
|
}
|
|
424
|
-
const NO_TARGETS_MESSAGE = ( localize(
|
|
423
|
+
const NO_TARGETS_MESSAGE = ( localize(5969, "Step targets are not available here"));
|
|
425
424
|
class StepIntoTargetsAction extends EditorAction {
|
|
426
425
|
static { this.ID = 'editor.debug.action.stepIntoTargets'; }
|
|
427
|
-
static { this.LABEL = ( localize(
|
|
426
|
+
static { this.LABEL = ( localize(5970, "Step Into Target")); }
|
|
428
427
|
constructor() {
|
|
429
428
|
super({
|
|
430
429
|
id: StepIntoTargetsAction.ID,
|
|
@@ -536,7 +535,7 @@ class GoToNextBreakpointAction extends GoToBreakpointAction {
|
|
|
536
535
|
constructor() {
|
|
537
536
|
super(true, {
|
|
538
537
|
id: 'editor.debug.action.goToNextBreakpoint',
|
|
539
|
-
label: ( localize(
|
|
538
|
+
label: ( localize(5971, "Debug: Go to Next Breakpoint")),
|
|
540
539
|
alias: 'Debug: Go to Next Breakpoint',
|
|
541
540
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
542
541
|
});
|
|
@@ -546,7 +545,7 @@ class GoToPreviousBreakpointAction extends GoToBreakpointAction {
|
|
|
546
545
|
constructor() {
|
|
547
546
|
super(false, {
|
|
548
547
|
id: 'editor.debug.action.goToPreviousBreakpoint',
|
|
549
|
-
label: ( localize(
|
|
548
|
+
label: ( localize(5972, "Debug: Go to Previous Breakpoint")),
|
|
550
549
|
alias: 'Debug: Go to Previous Breakpoint',
|
|
551
550
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
552
551
|
});
|
|
@@ -556,12 +555,12 @@ class CloseExceptionWidgetAction extends EditorAction {
|
|
|
556
555
|
constructor() {
|
|
557
556
|
super({
|
|
558
557
|
id: 'editor.debug.action.closeExceptionWidget',
|
|
559
|
-
label: ( localize(
|
|
558
|
+
label: ( localize(5973, "Close Exception Widget")),
|
|
560
559
|
alias: 'Close Exception Widget',
|
|
561
560
|
precondition: CONTEXT_EXCEPTION_WIDGET_VISIBLE,
|
|
562
561
|
kbOpts: {
|
|
563
|
-
primary:
|
|
564
|
-
weight:
|
|
562
|
+
primary: 9 ,
|
|
563
|
+
weight: 100
|
|
565
564
|
}
|
|
566
565
|
});
|
|
567
566
|
}
|
|
@@ -9,30 +9,23 @@ import { onUnexpectedExternalError, illegalArgument } from 'vscode/vscode/vs/bas
|
|
|
9
9
|
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
10
10
|
import { visit } from 'vscode/vscode/vs/base/common/json';
|
|
11
11
|
import { setProperty } from 'vscode/vscode/vs/base/common/jsonEdit';
|
|
12
|
-
import { KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
13
12
|
import { MutableDisposable, DisposableStore, toDisposable, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
14
13
|
import { clamp } from 'vscode/vscode/vs/base/common/numbers';
|
|
15
14
|
import { basename } from 'vscode/vscode/vs/base/common/path';
|
|
16
15
|
import { isMacintosh } from 'vscode/vscode/vs/base/common/platform';
|
|
17
16
|
import { noBreakWhitespace, format } from 'vscode/vscode/vs/base/common/strings';
|
|
18
17
|
import { isDefined, assertType } from 'vscode/vscode/vs/base/common/types';
|
|
19
|
-
import { Constants } from 'vscode/vscode/vs/base/common/uint';
|
|
20
18
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
21
19
|
import { CoreEditingCommands } from 'vscode/vscode/vs/editor/browser/coreCommands';
|
|
22
|
-
import { MouseTargetType } from 'vscode/vscode/vs/editor/browser/editorBrowser';
|
|
23
|
-
import { EditorOption } from 'vscode/vscode/vs/editor/common/config/editorOptions';
|
|
24
20
|
import { EditOperation } from 'vscode/vscode/vs/editor/common/core/editOperation';
|
|
25
21
|
import { Position } from 'vscode/vscode/vs/editor/common/core/position';
|
|
26
22
|
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
27
23
|
import { DEFAULT_WORD_REGEXP } from 'vscode/vscode/vs/editor/common/core/wordHelper';
|
|
28
|
-
import { ScrollType } from 'vscode/vscode/vs/editor/common/editorCommon';
|
|
29
|
-
import { StandardTokenType } from 'vscode/vscode/vs/editor/common/encodedTokenAttributes';
|
|
30
24
|
import { InjectedTextCursorStops } from 'vscode/vscode/vs/editor/common/model';
|
|
31
25
|
import { ILanguageFeatureDebounceService } from 'vscode/vscode/vs/editor/common/services/languageFeatureDebounce';
|
|
32
26
|
import { ILanguageFeaturesService } from 'vscode/vscode/vs/editor/common/services/languageFeatures';
|
|
33
27
|
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
34
|
-
import { ContentHoverController } from 'vscode/vscode/vs/editor/contrib/hover/browser/
|
|
35
|
-
import { HoverStartMode, HoverStartSource } from 'vscode/vscode/vs/editor/contrib/hover/browser/hoverOperation';
|
|
28
|
+
import { ContentHoverController } from 'vscode/vscode/vs/editor/contrib/hover/browser/contentHoverController';
|
|
36
29
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
37
30
|
import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
38
31
|
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
@@ -51,9 +44,9 @@ import 'vscode/vscode/vs/platform/theme/common/colors/miscColors';
|
|
|
51
44
|
import 'vscode/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
52
45
|
import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
|
|
53
46
|
import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
54
|
-
import { DebugHoverWidget
|
|
47
|
+
import { DebugHoverWidget } from './debugHover.js';
|
|
55
48
|
import { ExceptionWidget } from './exceptionWidget.js';
|
|
56
|
-
import { CONTEXT_EXCEPTION_WIDGET_VISIBLE
|
|
49
|
+
import { CONTEXT_EXCEPTION_WIDGET_VISIBLE } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
57
50
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
58
51
|
import { Expression } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugModel';
|
|
59
52
|
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host.service';
|
|
@@ -67,15 +60,15 @@ registerColor('editor.inlineValuesForeground', {
|
|
|
67
60
|
light: '#00000080',
|
|
68
61
|
hcDark: '#ffffff80',
|
|
69
62
|
hcLight: '#00000080'
|
|
70
|
-
}, ( localize(
|
|
71
|
-
registerColor('editor.inlineValuesBackground', '#ffc80033', ( localize(
|
|
63
|
+
}, ( localize(5974, "Color for the debug inline value text.")));
|
|
64
|
+
registerColor('editor.inlineValuesBackground', '#ffc80033', ( localize(5975, "Color for the debug inline value background.")));
|
|
72
65
|
class InlineSegment {
|
|
73
66
|
constructor(column, text) {
|
|
74
67
|
this.column = column;
|
|
75
68
|
this.text = text;
|
|
76
69
|
}
|
|
77
70
|
}
|
|
78
|
-
function createInlineValueDecoration(lineNumber, contentText, column =
|
|
71
|
+
function createInlineValueDecoration(lineNumber, contentText, column = 1073741824 ) {
|
|
79
72
|
if (contentText.length > MAX_INLINE_DECORATOR_LENGTH) {
|
|
80
73
|
contentText = contentText.substring(0, MAX_INLINE_DECORATOR_LENGTH) + '...';
|
|
81
74
|
}
|
|
@@ -163,7 +156,7 @@ function getWordToLineNumbersMap(model, lineNumber, result) {
|
|
|
163
156
|
const lineTokens = model.tokenization.getLineTokens(lineNumber);
|
|
164
157
|
for (let tokenIndex = 0, tokenCount = lineTokens.getCount(); tokenIndex < tokenCount; tokenIndex++) {
|
|
165
158
|
const tokenType = lineTokens.getStandardTokenType(tokenIndex);
|
|
166
|
-
if (tokenType ===
|
|
159
|
+
if (tokenType === 0 ) {
|
|
167
160
|
DEFAULT_WORD_REGEXP.lastIndex = 0;
|
|
168
161
|
const tokenStartOffset = lineTokens.getStartOffset(tokenIndex);
|
|
169
162
|
const tokenEndOffset = lineTokens.getEndOffset(tokenIndex);
|
|
@@ -246,7 +239,7 @@ let DebugEditorContribution = class DebugEditorContribution {
|
|
|
246
239
|
}
|
|
247
240
|
}));
|
|
248
241
|
this.toDispose.push(this.debugService.onDidChangeState((state) => {
|
|
249
|
-
if (state !==
|
|
242
|
+
if (state !== 2 ) {
|
|
250
243
|
this.toggleExceptionWidget();
|
|
251
244
|
}
|
|
252
245
|
}));
|
|
@@ -276,7 +269,7 @@ let DebugEditorContribution = class DebugEditorContribution {
|
|
|
276
269
|
const ownerDocument = this.editor.getContainerDomNode().ownerDocument;
|
|
277
270
|
this.altListener.value = addDisposableListener(ownerDocument, 'keydown', keydownEvent => {
|
|
278
271
|
const standardKeyboardEvent = ( (new StandardKeyboardEvent(keydownEvent)));
|
|
279
|
-
if (standardKeyboardEvent.keyCode ===
|
|
272
|
+
if (standardKeyboardEvent.keyCode === 6 ) {
|
|
280
273
|
this.altPressed = true;
|
|
281
274
|
const debugHoverWasVisible = this.hoverWidget.isVisible();
|
|
282
275
|
this.hoverWidget.hide();
|
|
@@ -290,7 +283,7 @@ let DebugEditorContribution = class DebugEditorContribution {
|
|
|
290
283
|
if (isKeyboardEvent(keyupEvent)) {
|
|
291
284
|
standardKeyboardEvent = ( (new StandardKeyboardEvent(keyupEvent)));
|
|
292
285
|
}
|
|
293
|
-
if (!standardKeyboardEvent || standardKeyboardEvent.keyCode ===
|
|
286
|
+
if (!standardKeyboardEvent || standardKeyboardEvent.keyCode === 6 ) {
|
|
294
287
|
this.altPressed = false;
|
|
295
288
|
this.preventDefaultEditorHover();
|
|
296
289
|
listener.dispose();
|
|
@@ -306,7 +299,7 @@ let DebugEditorContribution = class DebugEditorContribution {
|
|
|
306
299
|
const model = this.editor.getModel();
|
|
307
300
|
if (sf && model && this.uriIdentityService.extUri.isEqual(sf.source.uri, model.uri)) {
|
|
308
301
|
const result = await this.hoverWidget.showAt(position, focus, mouseEvent);
|
|
309
|
-
if (result ===
|
|
302
|
+
if (result === 1 ) {
|
|
310
303
|
this.showEditorHover(position, focus);
|
|
311
304
|
}
|
|
312
305
|
}
|
|
@@ -333,7 +326,7 @@ let DebugEditorContribution = class DebugEditorContribution {
|
|
|
333
326
|
const hoverController = this.editor.getContribution(ContentHoverController.ID);
|
|
334
327
|
const range = ( (new Range(position.lineNumber, position.column, position.lineNumber, position.column)));
|
|
335
328
|
this.defaultHoverLockout.clear();
|
|
336
|
-
hoverController?.showContentHover(range,
|
|
329
|
+
hoverController?.showContentHover(range, 1 , 0 , focus);
|
|
337
330
|
}
|
|
338
331
|
async onFocusStackFrame(sf) {
|
|
339
332
|
const model = this.editor.getModel();
|
|
@@ -371,19 +364,19 @@ let DebugEditorContribution = class DebugEditorContribution {
|
|
|
371
364
|
}
|
|
372
365
|
onEditorMouseDown(mouseEvent) {
|
|
373
366
|
this.mouseDown = true;
|
|
374
|
-
if (mouseEvent.target.type ===
|
|
367
|
+
if (mouseEvent.target.type === 9 && mouseEvent.target.detail === DebugHoverWidget.ID) {
|
|
375
368
|
return;
|
|
376
369
|
}
|
|
377
370
|
this.hideHoverWidget();
|
|
378
371
|
}
|
|
379
372
|
onEditorMouseMove(mouseEvent) {
|
|
380
|
-
if (this.debugService.state !==
|
|
373
|
+
if (this.debugService.state !== 2 ) {
|
|
381
374
|
return;
|
|
382
375
|
}
|
|
383
376
|
const target = mouseEvent.target;
|
|
384
377
|
const stopKey = isMacintosh ? 'metaKey' : 'ctrlKey';
|
|
385
378
|
if (!this.altPressed) {
|
|
386
|
-
if (target.type ===
|
|
379
|
+
if (target.type === 2 ) {
|
|
387
380
|
this.defaultHoverLockout.clear();
|
|
388
381
|
this.gutterIsHovered = true;
|
|
389
382
|
}
|
|
@@ -392,13 +385,13 @@ let DebugEditorContribution = class DebugEditorContribution {
|
|
|
392
385
|
this.updateHoverConfiguration();
|
|
393
386
|
}
|
|
394
387
|
}
|
|
395
|
-
if (target.type ===
|
|
388
|
+
if (target.type === 9 && target.detail === DebugHoverWidget.ID && !mouseEvent.event[stopKey]) {
|
|
396
389
|
const sticky = this.editorHoverOptions?.sticky ?? true;
|
|
397
390
|
if (sticky || this.hoverWidget.isShowingComplexValue) {
|
|
398
391
|
return;
|
|
399
392
|
}
|
|
400
393
|
}
|
|
401
|
-
if (target.type ===
|
|
394
|
+
if (target.type === 6 ) {
|
|
402
395
|
if (target.position && !Position.equals(target.position, this.hoverPosition?.position || null) && !this.hoverWidget.isInSafeTriangle(mouseEvent.event.posx, mouseEvent.event.posy)) {
|
|
403
396
|
this.hoverPosition = { position: target.position, event: mouseEvent.event };
|
|
404
397
|
this.preventDefaultEditorHover();
|
|
@@ -410,8 +403,8 @@ let DebugEditorContribution = class DebugEditorContribution {
|
|
|
410
403
|
}
|
|
411
404
|
}
|
|
412
405
|
onKeyDown(e) {
|
|
413
|
-
const stopKey = isMacintosh ?
|
|
414
|
-
if (e.keyCode !== stopKey && e.keyCode !==
|
|
406
|
+
const stopKey = isMacintosh ? 57 : 5 ;
|
|
407
|
+
if (e.keyCode !== stopKey && e.keyCode !== 6 ) {
|
|
415
408
|
this.hideHoverWidget();
|
|
416
409
|
}
|
|
417
410
|
}
|
|
@@ -681,7 +674,7 @@ let DebugEditorContribution = class DebugEditorContribution {
|
|
|
681
674
|
return;
|
|
682
675
|
}
|
|
683
676
|
let preservePosition;
|
|
684
|
-
if (this.editor.getOption(
|
|
677
|
+
if (this.editor.getOption(135 ) !== 'off') {
|
|
685
678
|
const position = this.editor.getPosition();
|
|
686
679
|
if (position && ( (this.editor.getVisibleRanges().some(r => r.containsPosition(position))))) {
|
|
687
680
|
preservePosition = { position, top: this.editor.getTopForPosition(position.lineNumber, position.column) };
|
|
@@ -690,7 +683,7 @@ let DebugEditorContribution = class DebugEditorContribution {
|
|
|
690
683
|
this.oldDecorations.set(allDecorations);
|
|
691
684
|
if (preservePosition) {
|
|
692
685
|
const top = this.editor.getTopForPosition(preservePosition.position.lineNumber, preservePosition.position.column);
|
|
693
|
-
this.editor.setScrollTop(this.editor.getScrollTop() - (preservePosition.top - top),
|
|
686
|
+
this.editor.setScrollTop(this.editor.getScrollTop() - (preservePosition.top - top), 1 );
|
|
694
687
|
}
|
|
695
688
|
}
|
|
696
689
|
dispose() {
|
|
@@ -3,13 +3,9 @@ import { $ as $$1, append, addStandardDisposableListener, SafeTriangle, isAncest
|
|
|
3
3
|
import { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
|
|
4
4
|
import { coalesce } from 'vscode/vscode/vs/base/common/arrays';
|
|
5
5
|
import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
|
|
6
|
-
import { KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
7
6
|
import { DisposableStore, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
8
7
|
import { clamp } from 'vscode/vscode/vs/base/common/numbers';
|
|
9
8
|
import { isMacintosh } from 'vscode/vscode/vs/base/common/platform';
|
|
10
|
-
import { ScrollbarVisibility } from 'vscode/vscode/vs/base/common/scrollable';
|
|
11
|
-
import { ContentWidgetPositionPreference } from 'vscode/vscode/vs/editor/browser/editorBrowser';
|
|
12
|
-
import { EditorOption } from 'vscode/vscode/vs/editor/common/config/editorOptions';
|
|
13
9
|
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
14
10
|
import { ModelDecorationOptions } from 'vscode/vscode/vs/editor/common/model/textModel';
|
|
15
11
|
import { ILanguageFeaturesService } from 'vscode/vscode/vs/editor/common/services/languageFeatures';
|
|
@@ -18,7 +14,6 @@ import { MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
|
18
14
|
import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions.service';
|
|
19
15
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
20
16
|
import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
|
|
21
|
-
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
|
|
22
17
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
23
18
|
import { WorkbenchAsyncDataTree } from 'vscode/vscode/vs/platform/list/browser/listService';
|
|
24
19
|
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
@@ -33,21 +28,15 @@ import 'vscode/vscode/vs/platform/theme/common/colors/minimapColors';
|
|
|
33
28
|
import 'vscode/vscode/vs/platform/theme/common/colors/miscColors';
|
|
34
29
|
import 'vscode/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
35
30
|
import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
|
|
36
|
-
import { renderExpressionValue, AbstractExpressionDataSource } from 'vscode/vscode/vs/workbench/contrib/debug/browser/baseDebugView';
|
|
37
|
-
import { LinkDetector } from 'vscode/vscode/vs/workbench/contrib/debug/browser/linkDetector';
|
|
38
|
-
import { VariablesRenderer, VisualizedVariableRenderer, openContextMenuForVariableTreeElement } from './variablesView.js';
|
|
39
31
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
40
32
|
import { Variable, Expression, VisualizedExpression } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugModel';
|
|
41
33
|
import { getEvaluatableExpressionAtPosition } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugUtils';
|
|
34
|
+
import { AbstractExpressionDataSource } from './baseDebugView.js';
|
|
35
|
+
import { DebugExpressionRenderer } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugExpressionRenderer';
|
|
36
|
+
import { VariablesRenderer, VisualizedVariableRenderer, openContextMenuForVariableTreeElement } from './variablesView.js';
|
|
42
37
|
|
|
43
38
|
var DebugHoverWidget_1;
|
|
44
39
|
const $ = $$1;
|
|
45
|
-
var ShowDebugHoverResult;
|
|
46
|
-
( ((function(ShowDebugHoverResult) {
|
|
47
|
-
ShowDebugHoverResult[ShowDebugHoverResult["NOT_CHANGED"] = 0] = "NOT_CHANGED";
|
|
48
|
-
ShowDebugHoverResult[ShowDebugHoverResult["NOT_AVAILABLE"] = 1] = "NOT_AVAILABLE";
|
|
49
|
-
ShowDebugHoverResult[ShowDebugHoverResult["CANCELLED"] = 2] = "CANCELLED";
|
|
50
|
-
})(ShowDebugHoverResult || (ShowDebugHoverResult = {}))));
|
|
51
40
|
async function doFindExpression(container, namesToFind) {
|
|
52
41
|
if (!container) {
|
|
53
42
|
return null;
|
|
@@ -76,21 +65,21 @@ let DebugHoverWidget = class DebugHoverWidget {
|
|
|
76
65
|
get isShowingComplexValue() {
|
|
77
66
|
return this.complexValueContainer?.hidden === false;
|
|
78
67
|
}
|
|
79
|
-
constructor(editor, debugService, instantiationService, menuService, contextKeyService, contextMenuService
|
|
68
|
+
constructor(editor, debugService, instantiationService, menuService, contextKeyService, contextMenuService) {
|
|
80
69
|
this.editor = editor;
|
|
81
70
|
this.debugService = debugService;
|
|
82
71
|
this.instantiationService = instantiationService;
|
|
83
72
|
this.menuService = menuService;
|
|
84
73
|
this.contextKeyService = contextKeyService;
|
|
85
74
|
this.contextMenuService = contextMenuService;
|
|
86
|
-
this.hoverService = hoverService;
|
|
87
75
|
this.allowEditorOverflow = true;
|
|
88
76
|
this.highlightDecorations = this.editor.createDecorationsCollection();
|
|
89
77
|
this.isUpdatingTree = false;
|
|
90
78
|
this.toDispose = [];
|
|
91
79
|
this.showAtPosition = null;
|
|
92
|
-
this.positionPreference = [
|
|
80
|
+
this.positionPreference = [1 , 2 ];
|
|
93
81
|
this.debugHoverComputer = this.instantiationService.createInstance(DebugHoverComputer, this.editor);
|
|
82
|
+
this.expressionRenderer = this.instantiationService.createInstance(DebugExpressionRenderer);
|
|
94
83
|
}
|
|
95
84
|
create() {
|
|
96
85
|
this.domNode = $('.debug-hover-widget');
|
|
@@ -100,15 +89,14 @@ let DebugHoverWidget = class DebugHoverWidget {
|
|
|
100
89
|
this.treeContainer.setAttribute('role', 'tree');
|
|
101
90
|
const tip = append(this.complexValueContainer, $('.tip'));
|
|
102
91
|
tip.textContent = ( localize(
|
|
103
|
-
|
|
92
|
+
10340,
|
|
104
93
|
'Hold {0} key to switch to editor language hover',
|
|
105
94
|
isMacintosh ? 'Option' : 'Alt'
|
|
106
95
|
));
|
|
107
96
|
const dataSource = this.instantiationService.createInstance(DebugHoverDataSource);
|
|
108
|
-
const linkeDetector = this.instantiationService.createInstance(LinkDetector);
|
|
109
97
|
this.tree = this.instantiationService.createInstance(WorkbenchAsyncDataTree, 'DebugHover', this.treeContainer, ( (new DebugHoverDelegate())), [
|
|
110
|
-
this.instantiationService.createInstance(VariablesRenderer,
|
|
111
|
-
this.instantiationService.createInstance(VisualizedVariableRenderer,
|
|
98
|
+
this.instantiationService.createInstance(VariablesRenderer, this.expressionRenderer),
|
|
99
|
+
this.instantiationService.createInstance(VisualizedVariableRenderer, this.expressionRenderer),
|
|
112
100
|
], dataSource, {
|
|
113
101
|
accessibilityProvider: ( (new DebugHoverAccessibilityProvider())),
|
|
114
102
|
mouseSupport: false,
|
|
@@ -123,7 +111,7 @@ let DebugHoverWidget = class DebugHoverWidget {
|
|
|
123
111
|
this.valueContainer = $('.value');
|
|
124
112
|
this.valueContainer.tabIndex = 0;
|
|
125
113
|
this.valueContainer.setAttribute('role', 'tooltip');
|
|
126
|
-
this.scrollbar = ( (new DomScrollableElement(this.valueContainer, { horizontal:
|
|
114
|
+
this.scrollbar = ( (new DomScrollableElement(this.valueContainer, { horizontal: 2 })));
|
|
127
115
|
this.domNode.appendChild(this.scrollbar.getDomNode());
|
|
128
116
|
this.toDispose.push(this.scrollbar);
|
|
129
117
|
this.editor.applyFontInfo(this.domNode);
|
|
@@ -153,12 +141,12 @@ let DebugHoverWidget = class DebugHoverWidget {
|
|
|
153
141
|
}
|
|
154
142
|
registerListeners() {
|
|
155
143
|
this.toDispose.push(addStandardDisposableListener(this.domNode, 'keydown', (e) => {
|
|
156
|
-
if (e.equals(
|
|
144
|
+
if (e.equals(9 )) {
|
|
157
145
|
this.hide();
|
|
158
146
|
}
|
|
159
147
|
}));
|
|
160
148
|
this.toDispose.push(this.editor.onDidChangeConfiguration((e) => {
|
|
161
|
-
if (e.hasChanged(
|
|
149
|
+
if (e.hasChanged(52 )) {
|
|
162
150
|
this.editor.applyFontInfo(this.domNode);
|
|
163
151
|
}
|
|
164
152
|
}));
|
|
@@ -193,40 +181,40 @@ let DebugHoverWidget = class DebugHoverWidget {
|
|
|
193
181
|
const session = this.debugService.getViewModel().focusedSession;
|
|
194
182
|
if (!session || !this.editor.hasModel()) {
|
|
195
183
|
this.hide();
|
|
196
|
-
return
|
|
184
|
+
return 1 ;
|
|
197
185
|
}
|
|
198
186
|
const result = await this.debugHoverComputer.compute(position, cancellationSource.token);
|
|
199
187
|
if (cancellationSource.token.isCancellationRequested) {
|
|
200
188
|
this.hide();
|
|
201
|
-
return
|
|
189
|
+
return 2 ;
|
|
202
190
|
}
|
|
203
191
|
if (!result.range) {
|
|
204
192
|
this.hide();
|
|
205
|
-
return
|
|
193
|
+
return 1 ;
|
|
206
194
|
}
|
|
207
195
|
if (this.isVisible() && !result.rangeChanged) {
|
|
208
|
-
return
|
|
196
|
+
return 0 ;
|
|
209
197
|
}
|
|
210
198
|
const expression = await this.debugHoverComputer.evaluate(session);
|
|
211
199
|
if (cancellationSource.token.isCancellationRequested) {
|
|
212
200
|
this.hide();
|
|
213
|
-
return
|
|
201
|
+
return 2 ;
|
|
214
202
|
}
|
|
215
203
|
if (!expression || (expression instanceof Expression && !expression.available)) {
|
|
216
204
|
this.hide();
|
|
217
|
-
return
|
|
205
|
+
return 1 ;
|
|
218
206
|
}
|
|
219
207
|
this.highlightDecorations.set([{
|
|
220
208
|
range: result.range,
|
|
221
209
|
options: DebugHoverWidget_1._HOVER_HIGHLIGHT_DECORATION_OPTIONS
|
|
222
210
|
}]);
|
|
223
|
-
return this.doShow(result.range.getStartPosition(), expression, focus, mouseEvent);
|
|
211
|
+
return this.doShow(session, result.range.getStartPosition(), expression, focus, mouseEvent);
|
|
224
212
|
}
|
|
225
213
|
static { this._HOVER_HIGHLIGHT_DECORATION_OPTIONS = ModelDecorationOptions.register({
|
|
226
214
|
description: 'bdebug-hover-highlight',
|
|
227
215
|
className: 'hoverHighlight'
|
|
228
216
|
}); }
|
|
229
|
-
async doShow(position, expression, focus, mouseEvent) {
|
|
217
|
+
async doShow(session, position, expression, focus, mouseEvent) {
|
|
230
218
|
if (!this.domNode) {
|
|
231
219
|
this.create();
|
|
232
220
|
}
|
|
@@ -236,11 +224,12 @@ let DebugHoverWidget = class DebugHoverWidget {
|
|
|
236
224
|
if (!expression.hasChildren) {
|
|
237
225
|
this.complexValueContainer.hidden = true;
|
|
238
226
|
this.valueContainer.hidden = false;
|
|
239
|
-
|
|
227
|
+
store.add(this.expressionRenderer.renderValue(this.valueContainer, expression, {
|
|
240
228
|
showChanged: false,
|
|
241
229
|
colorize: true,
|
|
242
230
|
hover: false,
|
|
243
|
-
|
|
231
|
+
session,
|
|
232
|
+
}));
|
|
244
233
|
this.valueContainer.title = '';
|
|
245
234
|
this.editor.layoutContentWidget(this);
|
|
246
235
|
this.scrollbar.scanDomNode();
|
|
@@ -252,8 +241,7 @@ let DebugHoverWidget = class DebugHoverWidget {
|
|
|
252
241
|
}
|
|
253
242
|
this.valueContainer.hidden = true;
|
|
254
243
|
this.expressionToRender = expression;
|
|
255
|
-
this.complexValueTitle
|
|
256
|
-
this.complexValueTitle.title = expression.value;
|
|
244
|
+
store.add(this.expressionRenderer.renderValue(this.complexValueTitle, expression, { hover: false, session }));
|
|
257
245
|
this.editor.layoutContentWidget(this);
|
|
258
246
|
this.tree.scrollTop = 0;
|
|
259
247
|
this.tree.scrollLeft = 0;
|
|
@@ -317,7 +305,7 @@ let DebugHoverWidget = class DebugHoverWidget {
|
|
|
317
305
|
this._isVisible = undefined;
|
|
318
306
|
this.highlightDecorations.clear();
|
|
319
307
|
this.editor.layoutContentWidget(this);
|
|
320
|
-
this.positionPreference = [
|
|
308
|
+
this.positionPreference = [1 , 2 ];
|
|
321
309
|
}
|
|
322
310
|
getPosition() {
|
|
323
311
|
return this._isVisible ? {
|
|
@@ -334,15 +322,14 @@ DebugHoverWidget = DebugHoverWidget_1 = ( (__decorate([
|
|
|
334
322
|
( (__param(2, IInstantiationService))),
|
|
335
323
|
( (__param(3, IMenuService))),
|
|
336
324
|
( (__param(4, IContextKeyService))),
|
|
337
|
-
( (__param(5, IContextMenuService)))
|
|
338
|
-
( (__param(6, IHoverService)))
|
|
325
|
+
( (__param(5, IContextMenuService)))
|
|
339
326
|
], DebugHoverWidget)));
|
|
340
327
|
class DebugHoverAccessibilityProvider {
|
|
341
328
|
getWidgetAriaLabel() {
|
|
342
|
-
return ( localize(
|
|
329
|
+
return ( localize(10341, "Debug Hover"));
|
|
343
330
|
}
|
|
344
331
|
getAriaLabel(element) {
|
|
345
|
-
return ( localize(
|
|
332
|
+
return ( localize(10342, "{0}, value {1}, variables, debug", element.name, element.value));
|
|
346
333
|
}
|
|
347
334
|
}
|
|
348
335
|
class DebugHoverDataSource extends AbstractExpressionDataSource {
|
|
@@ -417,4 +404,4 @@ DebugHoverComputer = ( (__decorate([
|
|
|
417
404
|
( (__param(3, ILogService)))
|
|
418
405
|
], DebugHoverComputer)));
|
|
419
406
|
|
|
420
|
-
export { DebugHoverWidget,
|
|
407
|
+
export { DebugHoverWidget, findExpressionInStackFrame };
|