@codingame/monaco-vscode-debug-service-override 10.1.4 → 11.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 +3 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +18 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +119 -111
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +26 -26
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +28 -25
- 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 +42 -39
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +58 -51
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.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 +22 -21
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +12 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/common/debugAccessibilityAnnouncer.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +4 -4
- 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 +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +1 -1
- 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
|
@@ -21,7 +21,7 @@ import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
|
|
|
21
21
|
import { IContextViewService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
|
|
22
22
|
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
23
23
|
import { dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
24
|
-
import { ADD_CONFIGURATION_ID } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
24
|
+
import { ADD_CONFIGURATION_ID } from '@codingame/monaco-vscode-debug-notebook-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
25
25
|
import { BaseActionViewItem, SelectActionViewItem } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionViewItems';
|
|
26
26
|
import { debugStart } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
27
27
|
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
@@ -54,7 +54,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
54
54
|
-1,
|
|
55
55
|
contextViewService,
|
|
56
56
|
defaultSelectBoxStyles,
|
|
57
|
-
{ ariaLabel: ( localize(
|
|
57
|
+
{ ariaLabel: ( localize(10450, 'Debug Launch Configurations')) }
|
|
58
58
|
)));
|
|
59
59
|
this.selectBox.setFocusable(false);
|
|
60
60
|
this.toDispose.push(this.selectBox);
|
|
@@ -212,7 +212,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
212
212
|
});
|
|
213
213
|
});
|
|
214
214
|
if (this.debugOptions.length === 0) {
|
|
215
|
-
this.debugOptions.push({ label: ( localize(
|
|
215
|
+
this.debugOptions.push({ label: ( localize(10451, "No Configurations")), handler: async () => false });
|
|
216
216
|
}
|
|
217
217
|
this.debugOptions.push({ label: StartDebugActionViewItem_1.SEPARATOR, handler: () => Promise.resolve(false) });
|
|
218
218
|
disabledIdxs.push(this.debugOptions.length - 1);
|
|
@@ -230,7 +230,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
230
230
|
});
|
|
231
231
|
});
|
|
232
232
|
manager.getLaunches().filter(l => !l.hidden).forEach(l => {
|
|
233
|
-
const label = inWorkspace ? ( localize(
|
|
233
|
+
const label = inWorkspace ? ( localize(10452, "Add Config ({0})...", l.name)) : ( localize(10453, "Add Configuration..."));
|
|
234
234
|
this.debugOptions.push({
|
|
235
235
|
label, handler: async () => {
|
|
236
236
|
await this.commandService.executeCommand(ADD_CONFIGURATION_ID, ( (l.uri.toString())));
|
|
@@ -250,11 +250,11 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
250
250
|
keybinding = this.keybindingService.lookupKeybinding("editor.action.accessibilityHelp" , this.contextKeyService)?.getLabel() ?? undefined;
|
|
251
251
|
}
|
|
252
252
|
if (keybinding) {
|
|
253
|
-
ariaLabel = ( localize(
|
|
253
|
+
ariaLabel = ( localize(10454, "{0}, use ({1}) for accessibility help", ariaLabel, keybinding));
|
|
254
254
|
}
|
|
255
255
|
else {
|
|
256
256
|
ariaLabel = ( localize(
|
|
257
|
-
|
|
257
|
+
10455,
|
|
258
258
|
"{0}, run the command Open Accessibility Help which is currently not triggerable via keybinding.",
|
|
259
259
|
ariaLabel
|
|
260
260
|
));
|
|
@@ -274,7 +274,7 @@ StartDebugActionViewItem = StartDebugActionViewItem_1 = ( (__decorate([
|
|
|
274
274
|
], StartDebugActionViewItem)));
|
|
275
275
|
let FocusSessionActionViewItem = class FocusSessionActionViewItem extends SelectActionViewItem {
|
|
276
276
|
constructor(action, session, debugService, contextViewService, configurationService) {
|
|
277
|
-
super(null, action, [], -1, contextViewService, defaultSelectBoxStyles, { ariaLabel: ( localize(
|
|
277
|
+
super(null, action, [], -1, contextViewService, defaultSelectBoxStyles, { ariaLabel: ( localize(10456, 'Debug Session')) });
|
|
278
278
|
this.debugService = debugService;
|
|
279
279
|
this.configurationService = configurationService;
|
|
280
280
|
this._register(this.debugService.getViewModel().onDidFocusSession(() => {
|
|
@@ -84,7 +84,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
84
84
|
delta.added.forEach(added => {
|
|
85
85
|
added.value.forEach(rawAdapter => {
|
|
86
86
|
if (!rawAdapter.type || (typeof rawAdapter.type !== 'string')) {
|
|
87
|
-
added.collector.error(( localize(
|
|
87
|
+
added.collector.error(( localize(5741, "Debugger 'type' can not be omitted and must be of type 'string'.")));
|
|
88
88
|
}
|
|
89
89
|
if (rawAdapter.type !== '*') {
|
|
90
90
|
const existing = this.getDebugger(rawAdapter.type);
|
|
@@ -134,7 +134,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
134
134
|
'name': {
|
|
135
135
|
type: 'string',
|
|
136
136
|
description: ( localize(
|
|
137
|
-
|
|
137
|
+
5742,
|
|
138
138
|
"Name of configuration; appears in the launch configuration dropdown menu."
|
|
139
139
|
)),
|
|
140
140
|
default: 'Launch'
|
|
@@ -142,7 +142,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
142
142
|
'debugServer': {
|
|
143
143
|
type: 'number',
|
|
144
144
|
description: ( localize(
|
|
145
|
-
|
|
145
|
+
5743,
|
|
146
146
|
"For debug extension development only: if a port is specified VS Code tries to connect to a debug adapter running in server mode"
|
|
147
147
|
)),
|
|
148
148
|
default: 4711
|
|
@@ -153,7 +153,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
153
153
|
}],
|
|
154
154
|
default: '',
|
|
155
155
|
defaultSnippets: [{ body: { task: '', type: '' } }],
|
|
156
|
-
description: ( localize(
|
|
156
|
+
description: ( localize(5744, "Task to run before debug session starts.")),
|
|
157
157
|
examples: this.taskLabels,
|
|
158
158
|
},
|
|
159
159
|
'postDebugTask': {
|
|
@@ -162,7 +162,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
162
162
|
}],
|
|
163
163
|
default: '',
|
|
164
164
|
defaultSnippets: [{ body: { task: '', type: '' } }],
|
|
165
|
-
description: ( localize(
|
|
165
|
+
description: ( localize(5745, "Task to run after debug session ends.")),
|
|
166
166
|
examples: this.taskLabels,
|
|
167
167
|
},
|
|
168
168
|
'presentation': presentationSchema,
|
|
@@ -170,7 +170,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
170
170
|
'suppressMultipleSessionWarning': {
|
|
171
171
|
type: 'boolean',
|
|
172
172
|
description: ( localize(
|
|
173
|
-
|
|
173
|
+
5746,
|
|
174
174
|
"Disable the warning when trying to start the same debug configuration more than once."
|
|
175
175
|
)),
|
|
176
176
|
default: true
|
|
@@ -326,11 +326,11 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
326
326
|
const { confirmed } = await this.dialogService.confirm({
|
|
327
327
|
type: Severity$1.Warning,
|
|
328
328
|
message: ( localize(
|
|
329
|
-
|
|
329
|
+
5747,
|
|
330
330
|
"You don't have an extension for debugging {0}. Should we find a {0} extension in the Marketplace?",
|
|
331
331
|
languageLabel
|
|
332
332
|
)),
|
|
333
|
-
primaryButton: ( localize(
|
|
333
|
+
primaryButton: ( localize(5748, "&&Find {0} extension", languageLabel))
|
|
334
334
|
});
|
|
335
335
|
if (confirmed) {
|
|
336
336
|
await this.commandService.executeCommand('debug.installAdditionalDebuggers', languageLabel);
|
|
@@ -356,7 +356,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
356
356
|
});
|
|
357
357
|
const picks = [];
|
|
358
358
|
if (suggestedCandidates.length > 0) {
|
|
359
|
-
picks.push({ type: 'separator', label: ( localize(
|
|
359
|
+
picks.push({ type: 'separator', label: ( localize(5749, "Suggested")) }, ...( (suggestedCandidates.map(c => ({ label: c.label, debugger: c })))));
|
|
360
360
|
}
|
|
361
361
|
if (otherCandidates.length > 0) {
|
|
362
362
|
if (picks.length > 0) {
|
|
@@ -364,14 +364,14 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
364
364
|
}
|
|
365
365
|
picks.push(...( (otherCandidates.map(c => ({ label: c.label, debugger: c })))));
|
|
366
366
|
}
|
|
367
|
-
picks.push({ type: 'separator', label: '' }, { label: languageLabel ? ( localize(
|
|
367
|
+
picks.push({ type: 'separator', label: '' }, { label: languageLabel ? ( localize(5750, "Install an extension for {0}...", languageLabel)) : ( localize(5751, "Install extension...")) });
|
|
368
368
|
const contributed = this.menuService.getMenuActions(MenuId.DebugCreateConfiguration, this.contextKeyService);
|
|
369
369
|
for (const [, action] of contributed) {
|
|
370
370
|
for (const item of action) {
|
|
371
371
|
picks.push(item);
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
const placeHolder = ( localize(
|
|
374
|
+
const placeHolder = ( localize(5752, "Select debugger"));
|
|
375
375
|
return this.quickInputService.pick(picks, { activeItem: picks[0], placeHolder })
|
|
376
376
|
.then(async (picked) => {
|
|
377
377
|
if (picked && 'debugger' in picked && picked.debugger) {
|
|
@@ -190,7 +190,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
190
190
|
config,
|
|
191
191
|
buttons: [{
|
|
192
192
|
iconClass: ThemeIcon.asClassName(debugConfigure),
|
|
193
|
-
tooltip: ( localize(
|
|
193
|
+
tooltip: ( localize(5787, "Edit Debug Configuration in launch.json"))
|
|
194
194
|
}],
|
|
195
195
|
launch
|
|
196
196
|
}))))));
|
|
@@ -199,7 +199,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
199
199
|
const disposables = ( (new DisposableStore()));
|
|
200
200
|
const input = disposables.add(this.quickInputService.createQuickPick());
|
|
201
201
|
input.busy = true;
|
|
202
|
-
input.placeholder = ( localize(
|
|
202
|
+
input.placeholder = ( localize(5788, "Select Launch Configuration"));
|
|
203
203
|
const chosenPromise = ( (new Promise(resolve => {
|
|
204
204
|
disposables.add(input.onDidAccept(() => resolve(input.activeItems[0])));
|
|
205
205
|
disposables.add(input.onDidTriggerItemButton(async (context) => {
|
|
@@ -530,7 +530,7 @@ let Launch = class Launch extends AbstractLaunch {
|
|
|
530
530
|
}
|
|
531
531
|
catch (error) {
|
|
532
532
|
throw ( (new Error(localize(
|
|
533
|
-
|
|
533
|
+
5789,
|
|
534
534
|
"Unable to create 'launch.json' file inside the '.vscode' folder ({0}).",
|
|
535
535
|
error.message
|
|
536
536
|
))));
|
|
@@ -587,7 +587,7 @@ let WorkspaceLaunch = class WorkspaceLaunch extends AbstractLaunch {
|
|
|
587
587
|
return this.contextService.getWorkspace().configuration;
|
|
588
588
|
}
|
|
589
589
|
get name() {
|
|
590
|
-
return ( localize(
|
|
590
|
+
return ( localize(5790, "workspace"));
|
|
591
591
|
}
|
|
592
592
|
getConfig() {
|
|
593
593
|
return this.configurationService.inspect('launch').workspaceValue;
|
|
@@ -631,7 +631,7 @@ let UserLaunch = class UserLaunch extends AbstractLaunch {
|
|
|
631
631
|
return this.preferencesService.userSettingsResource;
|
|
632
632
|
}
|
|
633
633
|
get name() {
|
|
634
|
-
return ( localize(
|
|
634
|
+
return ( localize(5791, "user settings"));
|
|
635
635
|
}
|
|
636
636
|
get hidden() {
|
|
637
637
|
return true;
|
|
@@ -4,7 +4,7 @@ import { localize } from 'vscode/vscode/vs/nls';
|
|
|
4
4
|
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
5
5
|
import { PickerQuickAccessProvider } from 'vscode/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
|
|
6
6
|
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
7
|
-
import { DEBUG_CONSOLE_QUICK_ACCESS_PREFIX, SELECT_AND_START_ID } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
7
|
+
import { DEBUG_CONSOLE_QUICK_ACCESS_PREFIX, SELECT_AND_START_ID } from '@codingame/monaco-vscode-debug-notebook-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
8
8
|
import { REPL_VIEW_ID } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
9
9
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
10
10
|
|
|
@@ -26,7 +26,7 @@ let DebugConsoleQuickAccess = class DebugConsoleQuickAccess extends PickerQuickA
|
|
|
26
26
|
if (debugConsolePicks.length > 0) {
|
|
27
27
|
debugConsolePicks.push({ type: 'separator' });
|
|
28
28
|
}
|
|
29
|
-
const createTerminalLabel = ( localize(
|
|
29
|
+
const createTerminalLabel = ( localize(5951, "Start a New Debug Session"));
|
|
30
30
|
debugConsolePicks.push({
|
|
31
31
|
label: `$(plus) ${createTerminalLabel}`,
|
|
32
32
|
ariaLabel: createTerminalLabel,
|
|
@@ -15,12 +15,12 @@ import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/brows
|
|
|
15
15
|
import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
16
16
|
import { PanelFocusContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
17
17
|
import { CONTEXT_IN_CHAT_SESSION } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
18
|
-
import { openBreakpointSource } from 'vscode/vscode/vs/workbench/contrib/debug/browser/breakpointsView';
|
|
18
|
+
import { openBreakpointSource } from '@codingame/monaco-vscode-debug-notebook-common/vscode/vs/workbench/contrib/debug/browser/breakpointsView';
|
|
19
19
|
import { DisassemblyView } from './disassemblyView.js';
|
|
20
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';
|
|
21
21
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
22
22
|
import { getEvaluatableExpressionAtPosition } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugUtils';
|
|
23
|
-
import { DisassemblyViewInput } from 'vscode/vscode/vs/workbench/contrib/debug/common/disassemblyViewInput';
|
|
23
|
+
import { DisassemblyViewInput } from '@codingame/monaco-vscode-debug-notebook-common/vscode/vs/workbench/contrib/debug/common/disassemblyViewInput';
|
|
24
24
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
25
25
|
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
26
26
|
|
|
@@ -29,8 +29,8 @@ class ToggleBreakpointAction extends Action2 {
|
|
|
29
29
|
super({
|
|
30
30
|
id: 'editor.debug.action.toggleBreakpoint',
|
|
31
31
|
title: {
|
|
32
|
-
...( localize2(
|
|
33
|
-
mnemonicTitle: ( localize(
|
|
32
|
+
...( localize2(5952, "Debug: Toggle Breakpoint")),
|
|
33
|
+
mnemonicTitle: ( localize(5953, "Toggle &&Breakpoint")),
|
|
34
34
|
},
|
|
35
35
|
f1: true,
|
|
36
36
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -89,12 +89,12 @@ class ConditionalBreakpointAction extends EditorAction {
|
|
|
89
89
|
constructor() {
|
|
90
90
|
super({
|
|
91
91
|
id: 'editor.debug.action.conditionalBreakpoint',
|
|
92
|
-
label: ( localize(
|
|
92
|
+
label: ( localize(5954, "Debug: Add Conditional Breakpoint...")),
|
|
93
93
|
alias: 'Debug: Add Conditional Breakpoint...',
|
|
94
94
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
95
95
|
menuOpts: {
|
|
96
96
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
97
|
-
title: ( localize(
|
|
97
|
+
title: ( localize(5955, "&&Conditional Breakpoint...")),
|
|
98
98
|
group: '1_breakpoints',
|
|
99
99
|
order: 1,
|
|
100
100
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -113,13 +113,13 @@ class LogPointAction extends EditorAction {
|
|
|
113
113
|
constructor() {
|
|
114
114
|
super({
|
|
115
115
|
id: 'editor.debug.action.addLogPoint',
|
|
116
|
-
label: ( localize(
|
|
116
|
+
label: ( localize(5956, "Debug: Add Logpoint...")),
|
|
117
117
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
118
118
|
alias: 'Debug: Add Logpoint...',
|
|
119
119
|
menuOpts: [
|
|
120
120
|
{
|
|
121
121
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
122
|
-
title: ( localize(
|
|
122
|
+
title: ( localize(5957, "&&Logpoint...")),
|
|
123
123
|
group: '1_breakpoints',
|
|
124
124
|
order: 4,
|
|
125
125
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -139,13 +139,13 @@ class TriggerByBreakpointAction extends EditorAction {
|
|
|
139
139
|
constructor() {
|
|
140
140
|
super({
|
|
141
141
|
id: 'editor.debug.action.triggerByBreakpoint',
|
|
142
|
-
label: ( localize(
|
|
142
|
+
label: ( localize(5958, "Debug: Add Triggered Breakpoint...")),
|
|
143
143
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
144
144
|
alias: 'Debug: Triggered Breakpoint...',
|
|
145
145
|
menuOpts: [
|
|
146
146
|
{
|
|
147
147
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
148
|
-
title: ( localize(
|
|
148
|
+
title: ( localize(5959, "&&Triggered Breakpoint...")),
|
|
149
149
|
group: '1_breakpoints',
|
|
150
150
|
order: 4,
|
|
151
151
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -165,12 +165,12 @@ class EditBreakpointAction extends EditorAction {
|
|
|
165
165
|
constructor() {
|
|
166
166
|
super({
|
|
167
167
|
id: 'editor.debug.action.editBreakpoint',
|
|
168
|
-
label: ( localize(
|
|
168
|
+
label: ( localize(5960, "Debug: Edit Breakpoint")),
|
|
169
169
|
alias: 'Debug: Edit Existing Breakpoint',
|
|
170
170
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
171
171
|
menuOpts: {
|
|
172
172
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
173
|
-
title: ( localize(
|
|
173
|
+
title: ( localize(5961, "&&Edit Breakpoint")),
|
|
174
174
|
group: '1_breakpoints',
|
|
175
175
|
order: 1,
|
|
176
176
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -205,8 +205,8 @@ class OpenDisassemblyViewAction extends Action2 {
|
|
|
205
205
|
super({
|
|
206
206
|
id: OpenDisassemblyViewAction.ID,
|
|
207
207
|
title: {
|
|
208
|
-
...( localize2(
|
|
209
|
-
mnemonicTitle: ( localize(
|
|
208
|
+
...( localize2(5962, "Open Disassembly View")),
|
|
209
|
+
mnemonicTitle: ( localize(5963, "&&DisassemblyView")),
|
|
210
210
|
},
|
|
211
211
|
precondition: CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE,
|
|
212
212
|
menu: [
|
|
@@ -257,11 +257,11 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
257
257
|
super({
|
|
258
258
|
id: ToggleDisassemblyViewSourceCodeAction.ID,
|
|
259
259
|
title: {
|
|
260
|
-
...( localize2(
|
|
261
|
-
mnemonicTitle: ( localize(
|
|
260
|
+
...( localize2(5964, "Toggle Source Code in Disassembly View")),
|
|
261
|
+
mnemonicTitle: ( localize(5965, "&&ToggleSource")),
|
|
262
262
|
},
|
|
263
263
|
metadata: {
|
|
264
|
-
description: ( localize2(
|
|
264
|
+
description: ( localize2(5966, 'Shows or hides source code in disassembly'))
|
|
265
265
|
},
|
|
266
266
|
f1: true,
|
|
267
267
|
});
|
|
@@ -276,7 +276,7 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
276
276
|
}
|
|
277
277
|
class RunToCursorAction extends EditorAction {
|
|
278
278
|
static { this.ID = 'editor.debug.action.runToCursor'; }
|
|
279
|
-
static { this.LABEL = ( localize2(
|
|
279
|
+
static { this.LABEL = ( localize2(5967, "Run to Cursor")); }
|
|
280
280
|
constructor() {
|
|
281
281
|
super({
|
|
282
282
|
id: RunToCursorAction.ID,
|
|
@@ -314,7 +314,7 @@ class RunToCursorAction extends EditorAction {
|
|
|
314
314
|
}
|
|
315
315
|
class SelectionToReplAction extends EditorAction {
|
|
316
316
|
static { this.ID = 'editor.debug.action.selectionToRepl'; }
|
|
317
|
-
static { this.LABEL = ( localize2(
|
|
317
|
+
static { this.LABEL = ( localize2(5968, "Evaluate in Debug Console")); }
|
|
318
318
|
constructor() {
|
|
319
319
|
super({
|
|
320
320
|
id: SelectionToReplAction.ID,
|
|
@@ -353,7 +353,7 @@ class SelectionToReplAction extends EditorAction {
|
|
|
353
353
|
}
|
|
354
354
|
class SelectionToWatchExpressionsAction extends EditorAction {
|
|
355
355
|
static { this.ID = 'editor.debug.action.selectionToWatch'; }
|
|
356
|
-
static { this.LABEL = ( localize2(
|
|
356
|
+
static { this.LABEL = ( localize2(5969, "Add to Watch")); }
|
|
357
357
|
constructor() {
|
|
358
358
|
super({
|
|
359
359
|
id: SelectionToWatchExpressionsAction.ID,
|
|
@@ -402,7 +402,7 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
402
402
|
constructor() {
|
|
403
403
|
super({
|
|
404
404
|
id: 'editor.debug.action.showDebugHover',
|
|
405
|
-
label: ( localize(
|
|
405
|
+
label: ( localize(5970, "Debug: Show Hover")),
|
|
406
406
|
alias: 'Debug: Show Hover',
|
|
407
407
|
precondition: CONTEXT_IN_DEBUG_MODE,
|
|
408
408
|
kbOpts: {
|
|
@@ -420,10 +420,10 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
420
420
|
return editor.getContribution(EDITOR_CONTRIBUTION_ID)?.showHover(position, true);
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
const NO_TARGETS_MESSAGE = ( localize(
|
|
423
|
+
const NO_TARGETS_MESSAGE = ( localize(5971, "Step targets are not available here"));
|
|
424
424
|
class StepIntoTargetsAction extends EditorAction {
|
|
425
425
|
static { this.ID = 'editor.debug.action.stepIntoTargets'; }
|
|
426
|
-
static { this.LABEL = ( localize(
|
|
426
|
+
static { this.LABEL = ( localize(5972, "Step Into Target")); }
|
|
427
427
|
constructor() {
|
|
428
428
|
super({
|
|
429
429
|
id: StepIntoTargetsAction.ID,
|
|
@@ -535,7 +535,7 @@ class GoToNextBreakpointAction extends GoToBreakpointAction {
|
|
|
535
535
|
constructor() {
|
|
536
536
|
super(true, {
|
|
537
537
|
id: 'editor.debug.action.goToNextBreakpoint',
|
|
538
|
-
label: ( localize(
|
|
538
|
+
label: ( localize(5973, "Debug: Go to Next Breakpoint")),
|
|
539
539
|
alias: 'Debug: Go to Next Breakpoint',
|
|
540
540
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
541
541
|
});
|
|
@@ -545,7 +545,7 @@ class GoToPreviousBreakpointAction extends GoToBreakpointAction {
|
|
|
545
545
|
constructor() {
|
|
546
546
|
super(false, {
|
|
547
547
|
id: 'editor.debug.action.goToPreviousBreakpoint',
|
|
548
|
-
label: ( localize(
|
|
548
|
+
label: ( localize(5974, "Debug: Go to Previous Breakpoint")),
|
|
549
549
|
alias: 'Debug: Go to Previous Breakpoint',
|
|
550
550
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
551
551
|
});
|
|
@@ -555,7 +555,7 @@ class CloseExceptionWidgetAction extends EditorAction {
|
|
|
555
555
|
constructor() {
|
|
556
556
|
super({
|
|
557
557
|
id: 'editor.debug.action.closeExceptionWidget',
|
|
558
|
-
label: ( localize(
|
|
558
|
+
label: ( localize(5975, "Close Exception Widget")),
|
|
559
559
|
alias: 'Close Exception Widget',
|
|
560
560
|
precondition: CONTEXT_EXCEPTION_WIDGET_VISIBLE,
|
|
561
561
|
kbOpts: {
|
|
@@ -48,7 +48,7 @@ import { DebugHoverWidget } from './debugHover.js';
|
|
|
48
48
|
import { ExceptionWidget } from './exceptionWidget.js';
|
|
49
49
|
import { CONTEXT_EXCEPTION_WIDGET_VISIBLE } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
50
50
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
51
|
-
import { Expression } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugModel';
|
|
51
|
+
import { Expression } from '@codingame/monaco-vscode-debug-notebook-common/vscode/vs/workbench/contrib/debug/common/debugModel';
|
|
52
52
|
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host.service';
|
|
53
53
|
|
|
54
54
|
const MAX_NUM_INLINE_VALUES = 100;
|
|
@@ -60,8 +60,8 @@ registerColor('editor.inlineValuesForeground', {
|
|
|
60
60
|
light: '#00000080',
|
|
61
61
|
hcDark: '#ffffff80',
|
|
62
62
|
hcLight: '#00000080'
|
|
63
|
-
}, ( localize(
|
|
64
|
-
registerColor('editor.inlineValuesBackground', '#ffc80033', ( localize(
|
|
63
|
+
}, ( localize(5976, "Color for the debug inline value text.")));
|
|
64
|
+
registerColor('editor.inlineValuesBackground', '#ffc80033', ( localize(5977, "Color for the debug inline value background.")));
|
|
65
65
|
class InlineSegment {
|
|
66
66
|
constructor(column, text) {
|
|
67
67
|
this.column = column;
|
|
@@ -29,10 +29,10 @@ import 'vscode/vscode/vs/platform/theme/common/colors/miscColors';
|
|
|
29
29
|
import 'vscode/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
30
30
|
import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
|
|
31
31
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
32
|
-
import { Variable, Expression, VisualizedExpression } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugModel';
|
|
32
|
+
import { Variable, Expression, VisualizedExpression } from '@codingame/monaco-vscode-debug-notebook-common/vscode/vs/workbench/contrib/debug/common/debugModel';
|
|
33
33
|
import { getEvaluatableExpressionAtPosition } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugUtils';
|
|
34
34
|
import { AbstractExpressionDataSource } from './baseDebugView.js';
|
|
35
|
-
import { DebugExpressionRenderer } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugExpressionRenderer';
|
|
35
|
+
import { DebugExpressionRenderer } from '@codingame/monaco-vscode-debug-notebook-common/vscode/vs/workbench/contrib/debug/browser/debugExpressionRenderer';
|
|
36
36
|
import { VariablesRenderer, VisualizedVariableRenderer, openContextMenuForVariableTreeElement } from './variablesView.js';
|
|
37
37
|
|
|
38
38
|
var DebugHoverWidget_1;
|
|
@@ -89,7 +89,7 @@ let DebugHoverWidget = class DebugHoverWidget {
|
|
|
89
89
|
this.treeContainer.setAttribute('role', 'tree');
|
|
90
90
|
const tip = append(this.complexValueContainer, $('.tip'));
|
|
91
91
|
tip.textContent = ( localize(
|
|
92
|
-
|
|
92
|
+
10442,
|
|
93
93
|
'Hold {0} key to switch to editor language hover',
|
|
94
94
|
isMacintosh ? 'Option' : 'Alt'
|
|
95
95
|
));
|
|
@@ -326,10 +326,10 @@ DebugHoverWidget = DebugHoverWidget_1 = ( (__decorate([
|
|
|
326
326
|
], DebugHoverWidget)));
|
|
327
327
|
class DebugHoverAccessibilityProvider {
|
|
328
328
|
getWidgetAriaLabel() {
|
|
329
|
-
return ( localize(
|
|
329
|
+
return ( localize(10443, "Debug Hover"));
|
|
330
330
|
}
|
|
331
331
|
getAriaLabel(element) {
|
|
332
|
-
return ( localize(
|
|
332
|
+
return ( localize(10444, "{0}, value {1}, variables, debug", element.name, element.value));
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
335
|
class DebugHoverDataSource extends AbstractExpressionDataSource {
|
|
@@ -6,7 +6,7 @@ import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/d
|
|
|
6
6
|
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
7
7
|
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
8
8
|
import { matchesFuzzy } from 'vscode/vscode/vs/base/common/filters';
|
|
9
|
-
import { DEBUG_QUICK_ACCESS_PREFIX, ADD_CONFIGURATION_ID } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
9
|
+
import { DEBUG_QUICK_ACCESS_PREFIX, ADD_CONFIGURATION_ID } from '@codingame/monaco-vscode-debug-notebook-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
10
10
|
import { debugConfigure, debugRemoveConfig } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
11
11
|
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
14
14
|
constructor(debugService, contextService, commandService, notificationService) {
|
|
15
15
|
super(DEBUG_QUICK_ACCESS_PREFIX, {
|
|
16
16
|
noResultsPick: {
|
|
17
|
-
label: ( localize(
|
|
17
|
+
label: ( localize(6035, "No matching launch configurations"))
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
this.debugService = debugService;
|
|
@@ -43,7 +43,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
43
43
|
highlights: { label: highlights },
|
|
44
44
|
buttons: [{
|
|
45
45
|
iconClass: ThemeIcon.asClassName(debugConfigure),
|
|
46
|
-
tooltip: ( localize(
|
|
46
|
+
tooltip: ( localize(6036, "Configure Launch Configuration"))
|
|
47
47
|
}],
|
|
48
48
|
trigger: () => {
|
|
49
49
|
config.launch.openConfigFile({ preserveFocus: false });
|
|
@@ -64,7 +64,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
64
64
|
const dynamicProviders = await configManager.getDynamicProviders();
|
|
65
65
|
if (dynamicProviders.length > 0) {
|
|
66
66
|
picks.push({
|
|
67
|
-
type: 'separator', label: ( localize(
|
|
67
|
+
type: 'separator', label: ( localize(6037, "contributed"))
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
configManager.getRecentDynamicConfigurations().forEach(({ name, type }) => {
|
|
@@ -75,7 +75,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
75
75
|
highlights: { label: highlights },
|
|
76
76
|
buttons: [{
|
|
77
77
|
iconClass: ThemeIcon.asClassName(debugRemoveConfig),
|
|
78
|
-
tooltip: ( localize(
|
|
78
|
+
tooltip: ( localize(6038, "Remove Launch Configuration"))
|
|
79
79
|
}],
|
|
80
80
|
trigger: () => {
|
|
81
81
|
configManager.removeRecentDynamicConfigurations(name, type);
|
|
@@ -98,7 +98,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
98
98
|
dynamicProviders.forEach(provider => {
|
|
99
99
|
picks.push({
|
|
100
100
|
label: `$(folder) ${provider.label}...`,
|
|
101
|
-
ariaLabel: ( localize(
|
|
101
|
+
ariaLabel: ( localize(6039, "{0} contributed configurations", provider.label)),
|
|
102
102
|
accept: async () => {
|
|
103
103
|
const pick = await provider.pick();
|
|
104
104
|
if (pick) {
|
|
@@ -110,12 +110,12 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
110
110
|
});
|
|
111
111
|
const visibleLaunches = configManager.getLaunches().filter(launch => !launch.hidden);
|
|
112
112
|
if (visibleLaunches.length > 0) {
|
|
113
|
-
picks.push({ type: 'separator', label: ( localize(
|
|
113
|
+
picks.push({ type: 'separator', label: ( localize(6040, "configure")) });
|
|
114
114
|
}
|
|
115
115
|
for (const launch of visibleLaunches) {
|
|
116
116
|
const label = this.contextService.getWorkbenchState() === 3 ?
|
|
117
|
-
( localize(
|
|
118
|
-
( localize(
|
|
117
|
+
( localize(6041, "Add Config ({0})...", launch.name)) :
|
|
118
|
+
( localize(6042, "Add Configuration..."));
|
|
119
119
|
picks.push({
|
|
120
120
|
label,
|
|
121
121
|
description: this.contextService.getWorkbenchState() === 3 ? launch.name : '',
|