@codingame/monaco-vscode-debug-service-override 16.1.0 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +17 -15
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +29 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +130 -112
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +13 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +28 -27
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +23 -23
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.d.ts +11 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +54 -54
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +17 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.d.ts +23 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +48 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +21 -21
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +46 -46
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.d.ts +6 -5
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +2 -2
|
@@ -27,7 +27,7 @@ import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs
|
|
|
27
27
|
import { dispose } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
28
28
|
import { ADD_CONFIGURATION_ID } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
29
29
|
import { BaseActionViewItem, SelectActionViewItem } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionViewItems';
|
|
30
|
-
import { debugStart } from '@codingame/monaco-vscode-
|
|
30
|
+
import { debugStart } from '@codingame/monaco-vscode-fc42f049-7883-579d-bb0b-2aa1010a19a8-common/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
31
31
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
32
32
|
import { defaultSelectBoxStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
|
|
33
33
|
import { getDefaultHoverDelegate } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hoverDelegateFactory';
|
|
@@ -60,7 +60,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
60
60
|
-1,
|
|
61
61
|
contextViewService,
|
|
62
62
|
defaultSelectBoxStyles,
|
|
63
|
-
{ ariaLabel: ( localize(
|
|
63
|
+
{ ariaLabel: ( localize(5656, 'Debug Launch Configurations')) }
|
|
64
64
|
));
|
|
65
65
|
this.selectBox.setFocusable(false);
|
|
66
66
|
this.toDispose.push(this.selectBox);
|
|
@@ -219,7 +219,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
219
219
|
});
|
|
220
220
|
});
|
|
221
221
|
if (this.debugOptions.length === 0) {
|
|
222
|
-
this.debugOptions.push({ label: ( localize(
|
|
222
|
+
this.debugOptions.push({ label: ( localize(5657, "No Configurations")), handler: async () => false });
|
|
223
223
|
}
|
|
224
224
|
this.debugOptions.push({ label: StartDebugActionViewItem_1.SEPARATOR, handler: () => Promise.resolve(false) });
|
|
225
225
|
disabledIdxs.push(this.debugOptions.length - 1);
|
|
@@ -237,7 +237,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
237
237
|
});
|
|
238
238
|
});
|
|
239
239
|
manager.getLaunches().filter(l => !l.hidden).forEach(l => {
|
|
240
|
-
const label = inWorkspace ? ( localize(
|
|
240
|
+
const label = inWorkspace ? ( localize(5658, "Add Config ({0})...", l.name)) : ( localize(5659, "Add Configuration..."));
|
|
241
241
|
this.debugOptions.push({
|
|
242
242
|
label, handler: async () => {
|
|
243
243
|
await this.commandService.executeCommand(ADD_CONFIGURATION_ID, ( l.uri.toString()));
|
|
@@ -257,11 +257,11 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
257
257
|
keybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp, this.contextKeyService)?.getLabel() ?? undefined;
|
|
258
258
|
}
|
|
259
259
|
if (keybinding) {
|
|
260
|
-
ariaLabel = ( localize(
|
|
260
|
+
ariaLabel = ( localize(5660, "{0}, use ({1}) for accessibility help", ariaLabel, keybinding));
|
|
261
261
|
}
|
|
262
262
|
else {
|
|
263
263
|
ariaLabel = ( localize(
|
|
264
|
-
|
|
264
|
+
5661,
|
|
265
265
|
"{0}, run the command Open Accessibility Help which is currently not triggerable via keybinding.",
|
|
266
266
|
ariaLabel
|
|
267
267
|
));
|
|
@@ -281,7 +281,7 @@ StartDebugActionViewItem = StartDebugActionViewItem_1 = ( __decorate([
|
|
|
281
281
|
], StartDebugActionViewItem));
|
|
282
282
|
let FocusSessionActionViewItem = class FocusSessionActionViewItem extends SelectActionViewItem {
|
|
283
283
|
constructor(action, session, debugService, contextViewService, configurationService) {
|
|
284
|
-
super(null, action, [], -1, contextViewService, defaultSelectBoxStyles, { ariaLabel: ( localize(
|
|
284
|
+
super(null, action, [], -1, contextViewService, defaultSelectBoxStyles, { ariaLabel: ( localize(5662, 'Debug Session')) });
|
|
285
285
|
this.debugService = debugService;
|
|
286
286
|
this.configurationService = configurationService;
|
|
287
287
|
this._register(this.debugService.getViewModel().onDidFocusSession(() => {
|
|
@@ -24,7 +24,7 @@ import { Debugger } from '../common/debugger.js';
|
|
|
24
24
|
import { debuggersExtPoint, breakpointsExtPoint, launchSchema, presentationSchema } from '../common/debugSchemas.js';
|
|
25
25
|
import { TaskDefinitionRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/tasks/common/taskDefinitionRegistry';
|
|
26
26
|
import { ITaskService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/tasks/common/taskService.service';
|
|
27
|
-
import { launchSchemaId } from '@codingame/monaco-vscode-
|
|
27
|
+
import { launchSchemaId } from '@codingame/monaco-vscode-4a0e04a7-c3bd-5fb7-9d3b-4fd047cc9e59-common/vscode/vs/workbench/services/configuration/common/configuration';
|
|
28
28
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
29
29
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
30
30
|
import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
@@ -87,7 +87,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
87
87
|
delta.added.forEach(added => {
|
|
88
88
|
added.value.forEach(rawAdapter => {
|
|
89
89
|
if (!rawAdapter.type || (typeof rawAdapter.type !== 'string')) {
|
|
90
|
-
added.collector.error(( localize(
|
|
90
|
+
added.collector.error(( localize(5663, "Debugger 'type' can not be omitted and must be of type 'string'.")));
|
|
91
91
|
}
|
|
92
92
|
if (rawAdapter.type !== '*') {
|
|
93
93
|
const existing = this.getDebugger(rawAdapter.type);
|
|
@@ -137,7 +137,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
137
137
|
'name': {
|
|
138
138
|
type: 'string',
|
|
139
139
|
description: ( localize(
|
|
140
|
-
|
|
140
|
+
5664,
|
|
141
141
|
"Name of configuration; appears in the launch configuration dropdown menu."
|
|
142
142
|
)),
|
|
143
143
|
default: 'Launch'
|
|
@@ -145,7 +145,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
145
145
|
'debugServer': {
|
|
146
146
|
type: 'number',
|
|
147
147
|
description: ( localize(
|
|
148
|
-
|
|
148
|
+
5665,
|
|
149
149
|
"For debug extension development only: if a port is specified VS Code tries to connect to a debug adapter running in server mode"
|
|
150
150
|
)),
|
|
151
151
|
default: 4711
|
|
@@ -156,7 +156,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
156
156
|
}],
|
|
157
157
|
default: '',
|
|
158
158
|
defaultSnippets: [{ body: { task: '', type: '' } }],
|
|
159
|
-
description: ( localize(
|
|
159
|
+
description: ( localize(5666, "Task to run before debug session starts.")),
|
|
160
160
|
examples: this.taskLabels,
|
|
161
161
|
},
|
|
162
162
|
'postDebugTask': {
|
|
@@ -165,7 +165,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
165
165
|
}],
|
|
166
166
|
default: '',
|
|
167
167
|
defaultSnippets: [{ body: { task: '', type: '' } }],
|
|
168
|
-
description: ( localize(
|
|
168
|
+
description: ( localize(5667, "Task to run after debug session ends.")),
|
|
169
169
|
examples: this.taskLabels,
|
|
170
170
|
},
|
|
171
171
|
'presentation': presentationSchema,
|
|
@@ -173,7 +173,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
173
173
|
'suppressMultipleSessionWarning': {
|
|
174
174
|
type: 'boolean',
|
|
175
175
|
description: ( localize(
|
|
176
|
-
|
|
176
|
+
5668,
|
|
177
177
|
"Disable the warning when trying to start the same debug configuration more than once."
|
|
178
178
|
)),
|
|
179
179
|
default: true
|
|
@@ -327,11 +327,11 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
327
327
|
const { confirmed } = await this.dialogService.confirm({
|
|
328
328
|
type: Severity.Warning,
|
|
329
329
|
message: ( localize(
|
|
330
|
-
|
|
330
|
+
5669,
|
|
331
331
|
"You don't have an extension for debugging {0}. Should we find a {0} extension in the Marketplace?",
|
|
332
332
|
languageLabel
|
|
333
333
|
)),
|
|
334
|
-
primaryButton: ( localize(
|
|
334
|
+
primaryButton: ( localize(5670, "&&Find {0} extension", languageLabel))
|
|
335
335
|
});
|
|
336
336
|
if (confirmed) {
|
|
337
337
|
await this.commandService.executeCommand('debug.installAdditionalDebuggers', languageLabel);
|
|
@@ -358,7 +358,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
358
358
|
const picks = [];
|
|
359
359
|
const dynamic = await this.delegate.configurationManager().getDynamicProviders();
|
|
360
360
|
if (suggestedCandidates.length > 0) {
|
|
361
|
-
picks.push({ type: 'separator', label: ( localize(
|
|
361
|
+
picks.push({ type: 'separator', label: ( localize(5671, "Suggested")) }, ...( suggestedCandidates.map(c => ({ label: c.label, pick: () => ({ debugger: c }) }))));
|
|
362
362
|
}
|
|
363
363
|
if (otherCandidates.length > 0) {
|
|
364
364
|
if (picks.length > 0) {
|
|
@@ -372,7 +372,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
372
372
|
}
|
|
373
373
|
for (const d of dynamic) {
|
|
374
374
|
picks.push({
|
|
375
|
-
label: ( localize(
|
|
375
|
+
label: ( localize(5672, "More {0} options...", d.label)),
|
|
376
376
|
pick: async () => {
|
|
377
377
|
const cfg = await d.pick();
|
|
378
378
|
if (!cfg) {
|
|
@@ -383,14 +383,14 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
picks.push({ type: 'separator', label: '' }, { label: languageLabel ? ( localize(
|
|
386
|
+
picks.push({ type: 'separator', label: '' }, { label: languageLabel ? ( localize(5673, "Install an extension for {0}...", languageLabel)) : ( localize(5674, "Install extension...")) });
|
|
387
387
|
const contributed = this.menuService.getMenuActions(MenuId.DebugCreateConfiguration, this.contextKeyService);
|
|
388
388
|
for (const [, action] of contributed) {
|
|
389
389
|
for (const item of action) {
|
|
390
390
|
picks.push(item);
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
|
-
const placeHolder = ( localize(
|
|
393
|
+
const placeHolder = ( localize(5675, "Select debugger"));
|
|
394
394
|
return this.quickInputService.pick(picks, { activeItem: picks[0], placeHolder }).then(async (picked) => {
|
|
395
395
|
if (picked && 'pick' in picked && typeof picked.pick === 'function') {
|
|
396
396
|
return await picked.pick();
|
|
@@ -24,7 +24,7 @@ import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
24
24
|
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
25
25
|
import { WorkbenchState } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace';
|
|
26
26
|
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
27
|
-
import { launchSchemaId } from '@codingame/monaco-vscode-
|
|
27
|
+
import { launchSchemaId } from '@codingame/monaco-vscode-4a0e04a7-c3bd-5fb7-9d3b-4fd047cc9e59-common/vscode/vs/workbench/services/configuration/common/configuration';
|
|
28
28
|
import { ACTIVE_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService';
|
|
29
29
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
30
30
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
@@ -34,7 +34,7 @@ import { ITextFileService } from '@codingame/monaco-vscode-api/vscode/vs/workben
|
|
|
34
34
|
import { CONTEXT_DEBUG_CONFIGURATION_TYPE, DebugConfigurationProviderTriggerKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
35
35
|
import { launchSchema } from '../common/debugSchemas.js';
|
|
36
36
|
import { getVisibleAndSorted } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debugUtils';
|
|
37
|
-
import { debugConfigure } from '@codingame/monaco-vscode-
|
|
37
|
+
import { debugConfigure } from '@codingame/monaco-vscode-fc42f049-7883-579d-bb0b-2aa1010a19a8-common/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
38
38
|
|
|
39
39
|
const jsonRegistry = ( Registry.as(Extensions.JSONContribution));
|
|
40
40
|
jsonRegistry.registerSchema(launchSchemaId, launchSchema);
|
|
@@ -186,7 +186,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
186
186
|
disposables.add(token);
|
|
187
187
|
const input = disposables.add(this.quickInputService.createQuickPick());
|
|
188
188
|
input.busy = true;
|
|
189
|
-
input.placeholder = ( localize(
|
|
189
|
+
input.placeholder = ( localize(5723, "Select Launch Configuration"));
|
|
190
190
|
const chosenPromise = ( new Promise(resolve => {
|
|
191
191
|
disposables.add(input.onDidAccept(() => resolve(input.activeItems[0])));
|
|
192
192
|
disposables.add(input.onDidTriggerItemButton(async (context) => {
|
|
@@ -230,7 +230,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
230
230
|
config,
|
|
231
231
|
buttons: [{
|
|
232
232
|
iconClass: ThemeIcon.asClassName(debugConfigure),
|
|
233
|
-
tooltip: ( localize(
|
|
233
|
+
tooltip: ( localize(5724, "Edit Debug Configuration in launch.json"))
|
|
234
234
|
}],
|
|
235
235
|
launch
|
|
236
236
|
})))));
|
|
@@ -548,7 +548,7 @@ let Launch = class Launch extends AbstractLaunch {
|
|
|
548
548
|
}
|
|
549
549
|
catch (error) {
|
|
550
550
|
throw ( new Error(( localize(
|
|
551
|
-
|
|
551
|
+
5725,
|
|
552
552
|
"Unable to create 'launch.json' file inside the '.vscode' folder ({0}).",
|
|
553
553
|
error.message
|
|
554
554
|
))));
|
|
@@ -602,7 +602,7 @@ let WorkspaceLaunch = class WorkspaceLaunch extends AbstractLaunch {
|
|
|
602
602
|
return this.contextService.getWorkspace().configuration;
|
|
603
603
|
}
|
|
604
604
|
get name() {
|
|
605
|
-
return localize(
|
|
605
|
+
return localize(5726, "workspace");
|
|
606
606
|
}
|
|
607
607
|
getConfig() {
|
|
608
608
|
return this.configurationService.inspect('launch').workspaceValue;
|
|
@@ -646,7 +646,7 @@ let UserLaunch = class UserLaunch extends AbstractLaunch {
|
|
|
646
646
|
return this.preferencesService.userSettingsResource;
|
|
647
647
|
}
|
|
648
648
|
get name() {
|
|
649
|
-
return localize(
|
|
649
|
+
return localize(5727, "user settings");
|
|
650
650
|
}
|
|
651
651
|
get hidden() {
|
|
652
652
|
return true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
2
2
|
import { DisposableStore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
3
|
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
4
|
-
import { FastAndSlowPicks, IPickerQuickAccessItem, PickerQuickAccessProvider, Picks } from "@codingame/monaco-vscode-
|
|
4
|
+
import { FastAndSlowPicks, IPickerQuickAccessItem, PickerQuickAccessProvider, Picks } from "@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common/vscode/vs/platform/quickinput/browser/pickerQuickAccess";
|
|
5
5
|
import { IViewsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service";
|
|
6
6
|
import { IDebugService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service";
|
|
7
7
|
export declare class DebugConsoleQuickAccess extends PickerQuickAccessProvider<IPickerQuickAccessItem> {
|
|
@@ -3,7 +3,7 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { matchesFuzzy } from '@codingame/monaco-vscode-api/vscode/vs/base/common/filters';
|
|
4
4
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
5
5
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
6
|
-
import { PickerQuickAccessProvider } from '@codingame/monaco-vscode-
|
|
6
|
+
import { PickerQuickAccessProvider } from '@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
|
|
7
7
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
8
8
|
import { DEBUG_CONSOLE_QUICK_ACCESS_PREFIX, SELECT_AND_START_ID } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
9
9
|
import { REPL_VIEW_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
@@ -27,7 +27,7 @@ let DebugConsoleQuickAccess = class DebugConsoleQuickAccess extends PickerQuickA
|
|
|
27
27
|
if (debugConsolePicks.length > 0) {
|
|
28
28
|
debugConsolePicks.push({ type: 'separator' });
|
|
29
29
|
}
|
|
30
|
-
const createTerminalLabel = ( localize(
|
|
30
|
+
const createTerminalLabel = ( localize(5728, "Start a New Debug Session"));
|
|
31
31
|
debugConsolePicks.push({
|
|
32
32
|
label: `$(plus) ${createTerminalLabel}`,
|
|
33
33
|
ariaLabel: createTerminalLabel,
|
|
@@ -25,14 +25,15 @@ import { getEvaluatableExpressionAtPosition } from '@codingame/monaco-vscode-api
|
|
|
25
25
|
import { DisassemblyViewInput } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/disassemblyViewInput';
|
|
26
26
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
27
27
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
28
|
+
import { TOGGLE_BREAKPOINT_ID } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
28
29
|
|
|
29
30
|
class ToggleBreakpointAction extends Action2 {
|
|
30
31
|
constructor() {
|
|
31
32
|
super({
|
|
32
|
-
id:
|
|
33
|
+
id: TOGGLE_BREAKPOINT_ID,
|
|
33
34
|
title: {
|
|
34
|
-
...( localize2(
|
|
35
|
-
mnemonicTitle: ( localize(
|
|
35
|
+
...( localize2(5729, "Debug: Toggle Breakpoint")),
|
|
36
|
+
mnemonicTitle: ( localize(5730, "Toggle &&Breakpoint")),
|
|
36
37
|
},
|
|
37
38
|
f1: true,
|
|
38
39
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -49,12 +50,12 @@ class ToggleBreakpointAction extends Action2 {
|
|
|
49
50
|
}
|
|
50
51
|
});
|
|
51
52
|
}
|
|
52
|
-
async run(accessor) {
|
|
53
|
+
async run(accessor, entry) {
|
|
53
54
|
const editorService = accessor.get(IEditorService);
|
|
54
55
|
const debugService = accessor.get(IDebugService);
|
|
55
56
|
const activePane = editorService.activeEditorPane;
|
|
56
57
|
if (activePane instanceof DisassemblyView) {
|
|
57
|
-
const location = activePane.focusedAddressAndOffset;
|
|
58
|
+
const location = entry ? activePane.getAddressAndOffset(entry) : activePane.focusedAddressAndOffset;
|
|
58
59
|
if (location) {
|
|
59
60
|
const bps = debugService.getModel().getInstructionBreakpoints();
|
|
60
61
|
const toRemove = bps.find(bp => bp.address === location.address);
|
|
@@ -89,11 +90,11 @@ class ConditionalBreakpointAction extends EditorAction {
|
|
|
89
90
|
constructor() {
|
|
90
91
|
super({
|
|
91
92
|
id: 'editor.debug.action.conditionalBreakpoint',
|
|
92
|
-
label: ( localize2(
|
|
93
|
+
label: ( localize2(5731, "Debug: Add Conditional Breakpoint...")),
|
|
93
94
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
94
95
|
menuOpts: {
|
|
95
96
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
96
|
-
title: ( localize(
|
|
97
|
+
title: ( localize(5732, "&&Conditional Breakpoint...")),
|
|
97
98
|
group: '1_breakpoints',
|
|
98
99
|
order: 1,
|
|
99
100
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -112,12 +113,12 @@ class LogPointAction extends EditorAction {
|
|
|
112
113
|
constructor() {
|
|
113
114
|
super({
|
|
114
115
|
id: 'editor.debug.action.addLogPoint',
|
|
115
|
-
label: ( localize2(
|
|
116
|
+
label: ( localize2(5733, "Debug: Add Logpoint...")),
|
|
116
117
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
117
118
|
menuOpts: [
|
|
118
119
|
{
|
|
119
120
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
120
|
-
title: ( localize(
|
|
121
|
+
title: ( localize(5734, "&&Logpoint...")),
|
|
121
122
|
group: '1_breakpoints',
|
|
122
123
|
order: 4,
|
|
123
124
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -137,13 +138,13 @@ class TriggerByBreakpointAction extends EditorAction {
|
|
|
137
138
|
constructor() {
|
|
138
139
|
super({
|
|
139
140
|
id: 'editor.debug.action.triggerByBreakpoint',
|
|
140
|
-
label: ( localize(
|
|
141
|
+
label: ( localize(5735, "Debug: Add Triggered Breakpoint...")),
|
|
141
142
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
142
143
|
alias: 'Debug: Triggered Breakpoint...',
|
|
143
144
|
menuOpts: [
|
|
144
145
|
{
|
|
145
146
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
146
|
-
title: ( localize(
|
|
147
|
+
title: ( localize(5736, "&&Triggered Breakpoint...")),
|
|
147
148
|
group: '1_breakpoints',
|
|
148
149
|
order: 4,
|
|
149
150
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -163,12 +164,12 @@ class EditBreakpointAction extends EditorAction {
|
|
|
163
164
|
constructor() {
|
|
164
165
|
super({
|
|
165
166
|
id: 'editor.debug.action.editBreakpoint',
|
|
166
|
-
label: ( localize(
|
|
167
|
+
label: ( localize(5737, "Debug: Edit Breakpoint")),
|
|
167
168
|
alias: 'Debug: Edit Existing Breakpoint',
|
|
168
169
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
169
170
|
menuOpts: {
|
|
170
171
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
171
|
-
title: ( localize(
|
|
172
|
+
title: ( localize(5738, "&&Edit Breakpoint")),
|
|
172
173
|
group: '1_breakpoints',
|
|
173
174
|
order: 1,
|
|
174
175
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -203,8 +204,8 @@ class OpenDisassemblyViewAction extends Action2 {
|
|
|
203
204
|
super({
|
|
204
205
|
id: OpenDisassemblyViewAction.ID,
|
|
205
206
|
title: {
|
|
206
|
-
...( localize2(
|
|
207
|
-
mnemonicTitle: ( localize(
|
|
207
|
+
...( localize2(5739, "Open Disassembly View")),
|
|
208
|
+
mnemonicTitle: ( localize(5740, "&&DisassemblyView")),
|
|
208
209
|
},
|
|
209
210
|
precondition: CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE,
|
|
210
211
|
menu: [
|
|
@@ -239,11 +240,11 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
239
240
|
super({
|
|
240
241
|
id: ToggleDisassemblyViewSourceCodeAction.ID,
|
|
241
242
|
title: {
|
|
242
|
-
...( localize2(
|
|
243
|
-
mnemonicTitle: ( localize(
|
|
243
|
+
...( localize2(5741, "Toggle Source Code in Disassembly View")),
|
|
244
|
+
mnemonicTitle: ( localize(5742, "&&ToggleSource")),
|
|
244
245
|
},
|
|
245
246
|
metadata: {
|
|
246
|
-
description: ( localize2(
|
|
247
|
+
description: ( localize2(5743, 'Shows or hides source code in disassembly'))
|
|
247
248
|
},
|
|
248
249
|
f1: true,
|
|
249
250
|
});
|
|
@@ -258,7 +259,7 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
258
259
|
}
|
|
259
260
|
class RunToCursorAction extends EditorAction {
|
|
260
261
|
static { this.ID = 'editor.debug.action.runToCursor'; }
|
|
261
|
-
static { this.LABEL = ( localize2(
|
|
262
|
+
static { this.LABEL = ( localize2(5744, "Run to Cursor")); }
|
|
262
263
|
constructor() {
|
|
263
264
|
super({
|
|
264
265
|
id: RunToCursorAction.ID,
|
|
@@ -291,7 +292,7 @@ class RunToCursorAction extends EditorAction {
|
|
|
291
292
|
}
|
|
292
293
|
class SelectionToReplAction extends EditorAction {
|
|
293
294
|
static { this.ID = 'editor.debug.action.selectionToRepl'; }
|
|
294
|
-
static { this.LABEL = ( localize2(
|
|
295
|
+
static { this.LABEL = ( localize2(5745, "Evaluate in Debug Console")); }
|
|
295
296
|
constructor() {
|
|
296
297
|
super({
|
|
297
298
|
id: SelectionToReplAction.ID,
|
|
@@ -326,7 +327,7 @@ class SelectionToReplAction extends EditorAction {
|
|
|
326
327
|
}
|
|
327
328
|
class SelectionToWatchExpressionsAction extends EditorAction {
|
|
328
329
|
static { this.ID = 'editor.debug.action.selectionToWatch'; }
|
|
329
|
-
static { this.LABEL = ( localize2(
|
|
330
|
+
static { this.LABEL = ( localize2(5746, "Add to Watch")); }
|
|
330
331
|
constructor() {
|
|
331
332
|
super({
|
|
332
333
|
id: SelectionToWatchExpressionsAction.ID,
|
|
@@ -371,7 +372,7 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
371
372
|
constructor() {
|
|
372
373
|
super({
|
|
373
374
|
id: 'editor.debug.action.showDebugHover',
|
|
374
|
-
label: ( localize2(
|
|
375
|
+
label: ( localize2(5747, "Debug: Show Hover")),
|
|
375
376
|
precondition: CONTEXT_IN_DEBUG_MODE,
|
|
376
377
|
kbOpts: {
|
|
377
378
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -388,10 +389,10 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
388
389
|
return editor.getContribution(EDITOR_CONTRIBUTION_ID)?.showHover(position, true);
|
|
389
390
|
}
|
|
390
391
|
}
|
|
391
|
-
const NO_TARGETS_MESSAGE = ( localize(
|
|
392
|
+
const NO_TARGETS_MESSAGE = ( localize(5748, "Step targets are not available here"));
|
|
392
393
|
class StepIntoTargetsAction extends EditorAction {
|
|
393
394
|
static { this.ID = 'editor.debug.action.stepIntoTargets'; }
|
|
394
|
-
static { this.LABEL = ( localize(
|
|
395
|
+
static { this.LABEL = ( localize(5749, "Step Into Target")); }
|
|
395
396
|
constructor() {
|
|
396
397
|
super({
|
|
397
398
|
id: StepIntoTargetsAction.ID,
|
|
@@ -496,7 +497,7 @@ class GoToNextBreakpointAction extends GoToBreakpointAction {
|
|
|
496
497
|
constructor() {
|
|
497
498
|
super(true, {
|
|
498
499
|
id: 'editor.debug.action.goToNextBreakpoint',
|
|
499
|
-
label: ( localize2(
|
|
500
|
+
label: ( localize2(5750, "Debug: Go to Next Breakpoint")),
|
|
500
501
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
501
502
|
});
|
|
502
503
|
}
|
|
@@ -505,7 +506,7 @@ class GoToPreviousBreakpointAction extends GoToBreakpointAction {
|
|
|
505
506
|
constructor() {
|
|
506
507
|
super(false, {
|
|
507
508
|
id: 'editor.debug.action.goToPreviousBreakpoint',
|
|
508
|
-
label: ( localize2(
|
|
509
|
+
label: ( localize2(5751, "Debug: Go to Previous Breakpoint")),
|
|
509
510
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
510
511
|
});
|
|
511
512
|
}
|
|
@@ -514,7 +515,7 @@ class CloseExceptionWidgetAction extends EditorAction {
|
|
|
514
515
|
constructor() {
|
|
515
516
|
super({
|
|
516
517
|
id: 'editor.debug.action.closeExceptionWidget',
|
|
517
|
-
label: ( localize2(
|
|
518
|
+
label: ( localize2(5752, "Close Exception Widget")),
|
|
518
519
|
precondition: CONTEXT_EXCEPTION_WIDGET_VISIBLE,
|
|
519
520
|
kbOpts: {
|
|
520
521
|
primary: KeyCode.Escape,
|
|
@@ -183,8 +183,8 @@ class MemoryRegionView extends Disposable {
|
|
|
183
183
|
this.range = range;
|
|
184
184
|
this.invalidateEmitter = ( new Emitter());
|
|
185
185
|
this.onDidInvalidate = this.invalidateEmitter.event;
|
|
186
|
-
this.width = this.range.toOffset - this.range.fromOffset;
|
|
187
186
|
this.writable = parent.writable;
|
|
187
|
+
this.width = range.toOffset - range.fromOffset;
|
|
188
188
|
this._register(parent);
|
|
189
189
|
this._register(parent.onDidInvalidate(e => {
|
|
190
190
|
const fromOffset = clamp(e.fromOffset - range.fromOffset, 0, this.width);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IQuickPickSeparator } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput";
|
|
2
|
-
import { PickerQuickAccessProvider, IPickerQuickAccessItem } from "@codingame/monaco-vscode-
|
|
2
|
+
import { PickerQuickAccessProvider, IPickerQuickAccessItem } from "@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common/vscode/vs/platform/quickinput/browser/pickerQuickAccess";
|
|
3
3
|
import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
|
|
4
4
|
import { IDebugService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service";
|
|
5
5
|
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { PickerQuickAccessProvider, TriggerAction } from '@codingame/monaco-vscode-
|
|
3
|
+
import { PickerQuickAccessProvider, TriggerAction } from '@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
|
|
4
4
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
5
5
|
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
6
6
|
import { IDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
@@ -9,14 +9,14 @@ import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs
|
|
|
9
9
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
10
10
|
import { matchesFuzzy } from '@codingame/monaco-vscode-api/vscode/vs/base/common/filters';
|
|
11
11
|
import { DEBUG_QUICK_ACCESS_PREFIX, ADD_CONFIGURATION_ID } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
12
|
-
import { debugConfigure, debugRemoveConfig } from '@codingame/monaco-vscode-
|
|
12
|
+
import { debugConfigure, debugRemoveConfig } from '@codingame/monaco-vscode-fc42f049-7883-579d-bb0b-2aa1010a19a8-common/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
13
13
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
14
14
|
|
|
15
15
|
let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends PickerQuickAccessProvider {
|
|
16
16
|
constructor(debugService, contextService, commandService, notificationService) {
|
|
17
17
|
super(DEBUG_QUICK_ACCESS_PREFIX, {
|
|
18
18
|
noResultsPick: {
|
|
19
|
-
label: ( localize(
|
|
19
|
+
label: ( localize(5815, "No matching launch configurations"))
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
this.debugService = debugService;
|
|
@@ -42,7 +42,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
42
42
|
highlights: { label: highlights },
|
|
43
43
|
buttons: [{
|
|
44
44
|
iconClass: ThemeIcon.asClassName(debugConfigure),
|
|
45
|
-
tooltip: ( localize(
|
|
45
|
+
tooltip: ( localize(5816, "Configure Launch Configuration"))
|
|
46
46
|
}],
|
|
47
47
|
trigger: () => {
|
|
48
48
|
config.launch.openConfigFile({ preserveFocus: false });
|
|
@@ -59,7 +59,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
if (selectedConfiguration.name === config.name && selectedConfiguration.launch === config.launch) {
|
|
62
|
-
const separator = { type: 'separator', label: ( localize(
|
|
62
|
+
const separator = { type: 'separator', label: ( localize(5817, 'Most Recent')) };
|
|
63
63
|
picks.unshift(separator, pick);
|
|
64
64
|
continue;
|
|
65
65
|
}
|
|
@@ -73,7 +73,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
73
73
|
const dynamicProviders = await configManager.getDynamicProviders();
|
|
74
74
|
if (dynamicProviders.length > 0) {
|
|
75
75
|
picks.push({
|
|
76
|
-
type: 'separator', label: ( localize(
|
|
76
|
+
type: 'separator', label: ( localize(5818, "contributed"))
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
configManager.getRecentDynamicConfigurations().forEach(({ name, type }) => {
|
|
@@ -84,7 +84,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
84
84
|
highlights: { label: highlights },
|
|
85
85
|
buttons: [{
|
|
86
86
|
iconClass: ThemeIcon.asClassName(debugRemoveConfig),
|
|
87
|
-
tooltip: ( localize(
|
|
87
|
+
tooltip: ( localize(5819, "Remove Launch Configuration"))
|
|
88
88
|
}],
|
|
89
89
|
trigger: () => {
|
|
90
90
|
configManager.removeRecentDynamicConfigurations(name, type);
|
|
@@ -107,7 +107,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
107
107
|
dynamicProviders.forEach(provider => {
|
|
108
108
|
picks.push({
|
|
109
109
|
label: `$(folder) ${provider.label}...`,
|
|
110
|
-
ariaLabel: ( localize(
|
|
110
|
+
ariaLabel: ( localize(5820, "{0} contributed configurations", provider.label)),
|
|
111
111
|
accept: async () => {
|
|
112
112
|
const pick = await provider.pick();
|
|
113
113
|
if (pick) {
|
|
@@ -119,12 +119,12 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
119
119
|
});
|
|
120
120
|
const visibleLaunches = configManager.getLaunches().filter(launch => !launch.hidden);
|
|
121
121
|
if (visibleLaunches.length > 0) {
|
|
122
|
-
picks.push({ type: 'separator', label: ( localize(
|
|
122
|
+
picks.push({ type: 'separator', label: ( localize(5821, "configure")) });
|
|
123
123
|
}
|
|
124
124
|
for (const launch of visibleLaunches) {
|
|
125
125
|
const label = this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE ?
|
|
126
|
-
( localize(
|
|
127
|
-
( localize(
|
|
126
|
+
( localize(5822, "Add Config ({0})...", launch.name)) :
|
|
127
|
+
( localize(5823, "Add Configuration..."));
|
|
128
128
|
picks.push({
|
|
129
129
|
label,
|
|
130
130
|
description: this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE ? launch.name : '',
|