@codingame/monaco-vscode-debug-service-override 26.2.2 → 27.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/platform/debug/common/extensionHostDebugIpc.d.ts +1 -1
- package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +6 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +104 -104
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +14 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/debugChatIntegration.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +9 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +25 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +25 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +52 -42
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +15 -15
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +14 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css +1 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +27 -27
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +107 -38
- 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 +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +43 -43
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +10 -8
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.d.ts +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
|
@@ -62,8 +62,8 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
62
62
|
this.tasksService = tasksService;
|
|
63
63
|
this.menuService = menuService;
|
|
64
64
|
this.debugAdapterFactories = ( new Map());
|
|
65
|
-
this._onDidRegisterDebugger = ( new Emitter());
|
|
66
|
-
this._onDidDebuggersExtPointRead = ( new Emitter());
|
|
65
|
+
this._onDidRegisterDebugger = this._register(( new Emitter()));
|
|
66
|
+
this._onDidDebuggersExtPointRead = this._register(( new Emitter()));
|
|
67
67
|
this.breakpointContributions = [];
|
|
68
68
|
this.debuggerWhenKeys = ( new Set());
|
|
69
69
|
this.taskLabels = [];
|
|
@@ -102,7 +102,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
102
102
|
delta.added.forEach(added => {
|
|
103
103
|
added.value.forEach(rawAdapter => {
|
|
104
104
|
if (!rawAdapter.type || (typeof rawAdapter.type !== "string")) {
|
|
105
|
-
added.collector.error(( localize(
|
|
105
|
+
added.collector.error(( localize(7808, "Debugger 'type' can not be omitted and must be of type 'string'.")));
|
|
106
106
|
}
|
|
107
107
|
if (rawAdapter.type !== "*") {
|
|
108
108
|
const existing = this.getDebugger(rawAdapter.type);
|
|
@@ -151,7 +151,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
151
151
|
"name": {
|
|
152
152
|
type: "string",
|
|
153
153
|
description: ( localize(
|
|
154
|
-
|
|
154
|
+
7809,
|
|
155
155
|
"Name of configuration; appears in the launch configuration dropdown menu."
|
|
156
156
|
)),
|
|
157
157
|
default: "Launch"
|
|
@@ -159,7 +159,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
159
159
|
"debugServer": {
|
|
160
160
|
type: "number",
|
|
161
161
|
description: ( localize(
|
|
162
|
-
|
|
162
|
+
7810,
|
|
163
163
|
"For debug extension development only: if a port is specified VS Code tries to connect to a debug adapter running in server mode"
|
|
164
164
|
)),
|
|
165
165
|
default: 4711
|
|
@@ -175,7 +175,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
175
175
|
type: ""
|
|
176
176
|
}
|
|
177
177
|
}],
|
|
178
|
-
description: ( localize(
|
|
178
|
+
description: ( localize(7811, "Task to run before debug session starts.")),
|
|
179
179
|
examples: this.taskLabels
|
|
180
180
|
},
|
|
181
181
|
"postDebugTask": {
|
|
@@ -189,7 +189,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
189
189
|
type: ""
|
|
190
190
|
}
|
|
191
191
|
}],
|
|
192
|
-
description: ( localize(
|
|
192
|
+
description: ( localize(7812, "Task to run after debug session ends.")),
|
|
193
193
|
examples: this.taskLabels
|
|
194
194
|
},
|
|
195
195
|
"presentation": presentationSchema,
|
|
@@ -197,7 +197,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
197
197
|
"suppressMultipleSessionWarning": {
|
|
198
198
|
type: "boolean",
|
|
199
199
|
description: ( localize(
|
|
200
|
-
|
|
200
|
+
7813,
|
|
201
201
|
"Disable the warning when trying to start the same debug configuration more than once."
|
|
202
202
|
)),
|
|
203
203
|
default: true
|
|
@@ -353,11 +353,11 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
353
353
|
} = await this.dialogService.confirm({
|
|
354
354
|
type: Severity.Warning,
|
|
355
355
|
message: ( localize(
|
|
356
|
-
|
|
356
|
+
7814,
|
|
357
357
|
"You don't have an extension for debugging {0}. Should we find a {0} extension in the Marketplace?",
|
|
358
358
|
languageLabel
|
|
359
359
|
)),
|
|
360
|
-
primaryButton: ( localize(
|
|
360
|
+
primaryButton: ( localize(7815, "&&Find {0} extension", languageLabel))
|
|
361
361
|
});
|
|
362
362
|
if (confirmed) {
|
|
363
363
|
await this.commandService.executeCommand("debug.installAdditionalDebuggers", languageLabel);
|
|
@@ -384,7 +384,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
384
384
|
if (suggestedCandidates.length > 0) {
|
|
385
385
|
picks.push({
|
|
386
386
|
type: "separator",
|
|
387
|
-
label: ( localize(
|
|
387
|
+
label: ( localize(7816, "Suggested"))
|
|
388
388
|
}, ...( suggestedCandidates.map(c => ({
|
|
389
389
|
label: c.label,
|
|
390
390
|
pick: () => ({
|
|
@@ -415,7 +415,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
415
415
|
}
|
|
416
416
|
for (const d of dynamic) {
|
|
417
417
|
picks.push({
|
|
418
|
-
label: ( localize(
|
|
418
|
+
label: ( localize(7817, "More {0} options...", d.label)),
|
|
419
419
|
pick: async () => {
|
|
420
420
|
const cfg = await d.pick();
|
|
421
421
|
if (!cfg) {
|
|
@@ -433,7 +433,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
433
433
|
type: "separator",
|
|
434
434
|
label: ""
|
|
435
435
|
}, {
|
|
436
|
-
label: languageLabel ? ( localize(
|
|
436
|
+
label: languageLabel ? ( localize(7818, "Install an extension for {0}...", languageLabel)) : ( localize(7819, "Install extension..."))
|
|
437
437
|
});
|
|
438
438
|
const contributed = this.menuService.getMenuActions(MenuId.DebugCreateConfiguration, this.contextKeyService);
|
|
439
439
|
for (const [, action] of contributed) {
|
|
@@ -441,7 +441,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
441
441
|
picks.push(item);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
const placeHolder = ( localize(
|
|
444
|
+
const placeHolder = ( localize(7820, "Select debugger"));
|
|
445
445
|
return this.quickInputService.pick(picks, {
|
|
446
446
|
activeItem: picks[0],
|
|
447
447
|
placeHolder
|
|
@@ -31,7 +31,7 @@ let DebugSessionContextPick = class DebugSessionContextPick {
|
|
|
31
31
|
constructor(debugService) {
|
|
32
32
|
this.debugService = debugService;
|
|
33
33
|
this.type = "pickerPick";
|
|
34
|
-
this.label = ( localize(
|
|
34
|
+
this.label = ( localize(7821, "Debug Session..."));
|
|
35
35
|
this.icon = Codicon.debug;
|
|
36
36
|
this.ordinal = -200;
|
|
37
37
|
}
|
|
@@ -46,7 +46,7 @@ let DebugSessionContextPick = class DebugSessionContextPick {
|
|
|
46
46
|
const query = observableValue("debugPicker.query", "");
|
|
47
47
|
const picksObservable = this.createPicksObservable(mode, query, store);
|
|
48
48
|
return {
|
|
49
|
-
placeholder: ( localize(
|
|
49
|
+
placeholder: ( localize(7822, "Select debug data to attach")),
|
|
50
50
|
picks: (_queryObs, token) => {
|
|
51
51
|
store.add(autorun(reader => {
|
|
52
52
|
query.set(_queryObs.read(reader), undefined);
|
|
@@ -97,7 +97,7 @@ let DebugSessionContextPick = class DebugSessionContextPick {
|
|
|
97
97
|
return picks;
|
|
98
98
|
}
|
|
99
99
|
picks.push({
|
|
100
|
-
label: ( localize(
|
|
100
|
+
label: ( localize(7823, "Expression Value...")),
|
|
101
101
|
iconClass: ThemeIcon.asClassName(Codicon.symbolVariable),
|
|
102
102
|
asAttachment: () => {
|
|
103
103
|
mode.set(PickerMode.Expression, undefined);
|
|
@@ -108,7 +108,7 @@ let DebugSessionContextPick = class DebugSessionContextPick {
|
|
|
108
108
|
if (watches.length > 0) {
|
|
109
109
|
picks.push({
|
|
110
110
|
type: "separator",
|
|
111
|
-
label: ( localize(
|
|
111
|
+
label: ( localize(7824, "Watch Expressions"))
|
|
112
112
|
});
|
|
113
113
|
for (const watch of watches) {
|
|
114
114
|
picks.push({
|
|
@@ -135,7 +135,7 @@ let DebugSessionContextPick = class DebugSessionContextPick {
|
|
|
135
135
|
const variables = await scope.getChildren();
|
|
136
136
|
if (variables.length > 1) {
|
|
137
137
|
picks.push({
|
|
138
|
-
label: ( localize(
|
|
138
|
+
label: ( localize(7825, "All variables in {0}", scope.name)),
|
|
139
139
|
iconClass: ThemeIcon.asClassName(Codicon.symbolNamespace),
|
|
140
140
|
asAttachment: () => createDebugAttachments(stackFrame, createScopeEntry(scope, variables))
|
|
141
141
|
});
|
|
@@ -170,7 +170,7 @@ let DebugSessionContextPick = class DebugSessionContextPick {
|
|
|
170
170
|
async evaluateExpression(expression, token) {
|
|
171
171
|
if (!expression.trim()) {
|
|
172
172
|
return [{
|
|
173
|
-
label: ( localize(
|
|
173
|
+
label: ( localize(7826, "Type an expression to evaluate...")),
|
|
174
174
|
disabled: true,
|
|
175
175
|
asAttachment: () => "noop"
|
|
176
176
|
}];
|
|
@@ -180,7 +180,7 @@ let DebugSessionContextPick = class DebugSessionContextPick {
|
|
|
180
180
|
const stackFrame = viewModel.focusedStackFrame;
|
|
181
181
|
if (!session || !stackFrame) {
|
|
182
182
|
return [{
|
|
183
|
-
label: ( localize(
|
|
183
|
+
label: ( localize(7827, "No active debug session")),
|
|
184
184
|
disabled: true,
|
|
185
185
|
asAttachment: () => "noop"
|
|
186
186
|
}];
|
|
@@ -212,7 +212,7 @@ let DebugSessionContextPick = class DebugSessionContextPick {
|
|
|
212
212
|
} else {
|
|
213
213
|
return [{
|
|
214
214
|
label: expression,
|
|
215
|
-
description: ( localize(
|
|
215
|
+
description: ( localize(7828, "No result")),
|
|
216
216
|
disabled: true,
|
|
217
217
|
asAttachment: () => "noop"
|
|
218
218
|
}];
|
|
@@ -220,7 +220,7 @@ let DebugSessionContextPick = class DebugSessionContextPick {
|
|
|
220
220
|
} catch (err) {
|
|
221
221
|
return [{
|
|
222
222
|
label: expression,
|
|
223
|
-
description: err instanceof Error ? err.message : ( localize(
|
|
223
|
+
description: err instanceof Error ? err.message : ( localize(7829, "Evaluation error")),
|
|
224
224
|
disabled: true,
|
|
225
225
|
asAttachment: () => "noop"
|
|
226
226
|
}];
|
|
@@ -313,7 +313,7 @@ registerAction2(class extends Action2 {
|
|
|
313
313
|
constructor() {
|
|
314
314
|
super({
|
|
315
315
|
id: "workbench.debug.action.addVariableToChat",
|
|
316
|
-
title: ( localize(
|
|
316
|
+
title: ( localize(7830, "Add to Chat")),
|
|
317
317
|
f1: false,
|
|
318
318
|
menu: {
|
|
319
319
|
id: MenuId.DebugVariablesContext,
|
|
@@ -344,7 +344,7 @@ registerAction2(class extends Action2 {
|
|
|
344
344
|
constructor() {
|
|
345
345
|
super({
|
|
346
346
|
id: "workbench.debug.action.addWatchExpressionToChat",
|
|
347
|
-
title: ( localize(
|
|
347
|
+
title: ( localize(7830, "Add to Chat")),
|
|
348
348
|
f1: false,
|
|
349
349
|
menu: {
|
|
350
350
|
id: MenuId.DebugWatchContext,
|
|
@@ -372,7 +372,7 @@ registerAction2(class extends Action2 {
|
|
|
372
372
|
constructor() {
|
|
373
373
|
super({
|
|
374
374
|
id: "workbench.debug.action.addScopeToChat",
|
|
375
|
-
title: ( localize(
|
|
375
|
+
title: ( localize(7830, "Add to Chat")),
|
|
376
376
|
f1: false,
|
|
377
377
|
menu: {
|
|
378
378
|
id: MenuId.DebugScopesContext,
|
|
@@ -73,7 +73,10 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
73
73
|
this._onDidChangeConfigurationProviders = ( new Emitter());
|
|
74
74
|
this.onDidChangeConfigurationProviders = this._onDidChangeConfigurationProviders.event;
|
|
75
75
|
this.configProviders = [];
|
|
76
|
-
this.toDispose = [
|
|
76
|
+
this.toDispose = [
|
|
77
|
+
this._onDidChangeConfigurationProviders,
|
|
78
|
+
this._onDidSelectConfigurationName
|
|
79
|
+
];
|
|
77
80
|
this.initLaunches();
|
|
78
81
|
this.setCompoundSchemaValues();
|
|
79
82
|
this.registerListeners();
|
|
@@ -209,7 +212,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
209
212
|
disposables.add(token);
|
|
210
213
|
const input = disposables.add(this.quickInputService.createQuickPick());
|
|
211
214
|
input.busy = true;
|
|
212
|
-
input.placeholder = ( localize(
|
|
215
|
+
input.placeholder = ( localize(7881, "Select Launch Configuration"));
|
|
213
216
|
const chosenPromise = ( new Promise(resolve => {
|
|
214
217
|
disposables.add(input.onDidAccept(() => resolve(input.activeItems[0])));
|
|
215
218
|
disposables.add(input.onDidTriggerItemButton(async context => {
|
|
@@ -262,7 +265,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
262
265
|
config,
|
|
263
266
|
buttons: [{
|
|
264
267
|
iconClass: ThemeIcon.asClassName(debugConfigure),
|
|
265
|
-
tooltip: ( localize(
|
|
268
|
+
tooltip: ( localize(7882, "Edit Debug Configuration in launch.json"))
|
|
266
269
|
}],
|
|
267
270
|
launch
|
|
268
271
|
}))))
|
|
@@ -630,7 +633,7 @@ let Launch = class Launch extends AbstractLaunch {
|
|
|
630
633
|
await this.textFileService.write(resource, content);
|
|
631
634
|
} catch (error) {
|
|
632
635
|
throw ( new Error(( localize(
|
|
633
|
-
|
|
636
|
+
7883,
|
|
634
637
|
"Unable to create 'launch.json' file inside the '.vscode' folder ({0}).",
|
|
635
638
|
error.message
|
|
636
639
|
))));
|
|
@@ -692,7 +695,7 @@ let WorkspaceLaunch = class WorkspaceLaunch extends AbstractLaunch {
|
|
|
692
695
|
return this.contextService.getWorkspace().configuration;
|
|
693
696
|
}
|
|
694
697
|
get name() {
|
|
695
|
-
return localize(
|
|
698
|
+
return localize(7884, "workspace");
|
|
696
699
|
}
|
|
697
700
|
getConfig() {
|
|
698
701
|
return this.configurationService.inspect("launch").workspaceValue;
|
|
@@ -748,7 +751,7 @@ let UserLaunch = class UserLaunch extends AbstractLaunch {
|
|
|
748
751
|
return this.preferencesService.userSettingsResource;
|
|
749
752
|
}
|
|
750
753
|
get name() {
|
|
751
|
-
return localize(
|
|
754
|
+
return localize(7885, "user settings");
|
|
752
755
|
}
|
|
753
756
|
get hidden() {
|
|
754
757
|
return true;
|
|
@@ -31,7 +31,7 @@ let DebugConsoleQuickAccess = class DebugConsoleQuickAccess extends PickerQuickA
|
|
|
31
31
|
type: "separator"
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
const createTerminalLabel = ( localize(
|
|
34
|
+
const createTerminalLabel = ( localize(7886, "Start a New Debug Session"));
|
|
35
35
|
debugConsolePicks.push({
|
|
36
36
|
label: `$(plus) ${createTerminalLabel}`,
|
|
37
37
|
ariaLabel: createTerminalLabel,
|
|
@@ -32,10 +32,10 @@ class ToggleBreakpointAction extends Action2 {
|
|
|
32
32
|
super({
|
|
33
33
|
id: TOGGLE_BREAKPOINT_ID,
|
|
34
34
|
title: {
|
|
35
|
-
...( localize2(
|
|
36
|
-
mnemonicTitle: ( localize(
|
|
35
|
+
...( localize2(7887, "Toggle Breakpoint")),
|
|
36
|
+
mnemonicTitle: ( localize(7888, "Toggle &&Breakpoint"))
|
|
37
37
|
},
|
|
38
|
-
category: ( localize2(
|
|
38
|
+
category: ( localize2(7889, "Debug")),
|
|
39
39
|
f1: true,
|
|
40
40
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
41
41
|
keybinding: {
|
|
@@ -99,11 +99,11 @@ class ConditionalBreakpointAction extends EditorAction {
|
|
|
99
99
|
constructor() {
|
|
100
100
|
super({
|
|
101
101
|
id: "editor.debug.action.conditionalBreakpoint",
|
|
102
|
-
label: ( localize2(
|
|
102
|
+
label: ( localize2(7890, "Debug: Add Conditional Breakpoint...")),
|
|
103
103
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
104
104
|
menuOpts: {
|
|
105
105
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
106
|
-
title: ( localize(
|
|
106
|
+
title: ( localize(7891, "&&Conditional Breakpoint...")),
|
|
107
107
|
group: "1_breakpoints",
|
|
108
108
|
order: 1,
|
|
109
109
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -122,11 +122,11 @@ class LogPointAction extends EditorAction {
|
|
|
122
122
|
constructor() {
|
|
123
123
|
super({
|
|
124
124
|
id: "editor.debug.action.addLogPoint",
|
|
125
|
-
label: ( localize2(
|
|
125
|
+
label: ( localize2(7892, "Debug: Add Logpoint...")),
|
|
126
126
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
127
127
|
menuOpts: [{
|
|
128
128
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
129
|
-
title: ( localize(
|
|
129
|
+
title: ( localize(7893, "&&Logpoint...")),
|
|
130
130
|
group: "1_breakpoints",
|
|
131
131
|
order: 4,
|
|
132
132
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -145,12 +145,12 @@ class TriggerByBreakpointAction extends EditorAction {
|
|
|
145
145
|
constructor() {
|
|
146
146
|
super({
|
|
147
147
|
id: "editor.debug.action.triggerByBreakpoint",
|
|
148
|
-
label: ( localize(
|
|
148
|
+
label: ( localize(7894, "Debug: Add Triggered Breakpoint...")),
|
|
149
149
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
150
150
|
alias: "Debug: Triggered Breakpoint...",
|
|
151
151
|
menuOpts: [{
|
|
152
152
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
153
|
-
title: ( localize(
|
|
153
|
+
title: ( localize(7895, "&&Triggered Breakpoint...")),
|
|
154
154
|
group: "1_breakpoints",
|
|
155
155
|
order: 4,
|
|
156
156
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -173,12 +173,12 @@ class EditBreakpointAction extends EditorAction {
|
|
|
173
173
|
constructor() {
|
|
174
174
|
super({
|
|
175
175
|
id: "editor.debug.action.editBreakpoint",
|
|
176
|
-
label: ( localize(
|
|
176
|
+
label: ( localize(7896, "Debug: Edit Breakpoint")),
|
|
177
177
|
alias: "Debug: Edit Existing Breakpoint",
|
|
178
178
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
179
179
|
menuOpts: {
|
|
180
180
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
181
|
-
title: ( localize(
|
|
181
|
+
title: ( localize(7897, "&&Edit Breakpoint")),
|
|
182
182
|
group: "1_breakpoints",
|
|
183
183
|
order: 1,
|
|
184
184
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -217,8 +217,8 @@ class OpenDisassemblyViewAction extends Action2 {
|
|
|
217
217
|
super({
|
|
218
218
|
id: OpenDisassemblyViewAction.ID,
|
|
219
219
|
title: {
|
|
220
|
-
...( localize2(
|
|
221
|
-
mnemonicTitle: ( localize(
|
|
220
|
+
...( localize2(7898, "Open Disassembly View")),
|
|
221
|
+
mnemonicTitle: ( localize(7899, "&&DisassemblyView"))
|
|
222
222
|
},
|
|
223
223
|
precondition: CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE,
|
|
224
224
|
menu: [{
|
|
@@ -256,11 +256,11 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
256
256
|
super({
|
|
257
257
|
id: ToggleDisassemblyViewSourceCodeAction.ID,
|
|
258
258
|
title: {
|
|
259
|
-
...( localize2(
|
|
260
|
-
mnemonicTitle: ( localize(
|
|
259
|
+
...( localize2(7900, "Toggle Source Code in Disassembly View")),
|
|
260
|
+
mnemonicTitle: ( localize(7901, "&&ToggleSource"))
|
|
261
261
|
},
|
|
262
262
|
metadata: {
|
|
263
|
-
description: ( localize2(
|
|
263
|
+
description: ( localize2(7902, "Shows or hides source code in disassembly"))
|
|
264
264
|
},
|
|
265
265
|
f1: true
|
|
266
266
|
});
|
|
@@ -278,7 +278,7 @@ class RunToCursorAction extends EditorAction {
|
|
|
278
278
|
this.ID = "editor.debug.action.runToCursor";
|
|
279
279
|
}
|
|
280
280
|
static {
|
|
281
|
-
this.LABEL = ( localize2(
|
|
281
|
+
this.LABEL = ( localize2(7903, "Run to Cursor"));
|
|
282
282
|
}
|
|
283
283
|
constructor() {
|
|
284
284
|
super({
|
|
@@ -315,7 +315,7 @@ class SelectionToReplAction extends EditorAction {
|
|
|
315
315
|
this.ID = "editor.debug.action.selectionToRepl";
|
|
316
316
|
}
|
|
317
317
|
static {
|
|
318
|
-
this.LABEL = ( localize2(
|
|
318
|
+
this.LABEL = ( localize2(7904, "Evaluate in Debug Console"));
|
|
319
319
|
}
|
|
320
320
|
constructor() {
|
|
321
321
|
super({
|
|
@@ -353,7 +353,7 @@ class SelectionToWatchExpressionsAction extends EditorAction {
|
|
|
353
353
|
this.ID = "editor.debug.action.selectionToWatch";
|
|
354
354
|
}
|
|
355
355
|
static {
|
|
356
|
-
this.LABEL = ( localize2(
|
|
356
|
+
this.LABEL = ( localize2(7905, "Add to Watch"));
|
|
357
357
|
}
|
|
358
358
|
constructor() {
|
|
359
359
|
super({
|
|
@@ -398,7 +398,7 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
398
398
|
constructor() {
|
|
399
399
|
super({
|
|
400
400
|
id: "editor.debug.action.showDebugHover",
|
|
401
|
-
label: ( localize2(
|
|
401
|
+
label: ( localize2(7906, "Debug: Show Hover")),
|
|
402
402
|
precondition: CONTEXT_IN_DEBUG_MODE,
|
|
403
403
|
kbOpts: {
|
|
404
404
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -415,13 +415,13 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
415
415
|
return editor.getContribution(EDITOR_CONTRIBUTION_ID)?.showHover(position, true);
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
const NO_TARGETS_MESSAGE = ( localize(
|
|
418
|
+
const NO_TARGETS_MESSAGE = ( localize(7907, "Step targets are not available here"));
|
|
419
419
|
class StepIntoTargetsAction extends EditorAction {
|
|
420
420
|
static {
|
|
421
421
|
this.ID = "editor.debug.action.stepIntoTargets";
|
|
422
422
|
}
|
|
423
423
|
static {
|
|
424
|
-
this.LABEL = ( localize(
|
|
424
|
+
this.LABEL = ( localize(7908, "Step Into Target"));
|
|
425
425
|
}
|
|
426
426
|
constructor() {
|
|
427
427
|
super({
|
|
@@ -535,7 +535,7 @@ class GoToNextBreakpointAction extends GoToBreakpointAction {
|
|
|
535
535
|
constructor() {
|
|
536
536
|
super(true, {
|
|
537
537
|
id: "editor.debug.action.goToNextBreakpoint",
|
|
538
|
-
label: ( localize2(
|
|
538
|
+
label: ( localize2(7909, "Debug: Go to Next Breakpoint")),
|
|
539
539
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
540
540
|
});
|
|
541
541
|
}
|
|
@@ -544,7 +544,7 @@ class GoToPreviousBreakpointAction extends GoToBreakpointAction {
|
|
|
544
544
|
constructor() {
|
|
545
545
|
super(false, {
|
|
546
546
|
id: "editor.debug.action.goToPreviousBreakpoint",
|
|
547
|
-
label: ( localize2(
|
|
547
|
+
label: ( localize2(7910, "Debug: Go to Previous Breakpoint")),
|
|
548
548
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
549
549
|
});
|
|
550
550
|
}
|
|
@@ -553,7 +553,7 @@ class CloseExceptionWidgetAction extends EditorAction {
|
|
|
553
553
|
constructor() {
|
|
554
554
|
super({
|
|
555
555
|
id: "editor.debug.action.closeExceptionWidget",
|
|
556
|
-
label: ( localize2(
|
|
556
|
+
label: ( localize2(7911, "Close Exception Widget")),
|
|
557
557
|
precondition: CONTEXT_EXCEPTION_WIDGET_VISIBLE,
|
|
558
558
|
kbOpts: {
|
|
559
559
|
primary: KeyCode.Escape,
|
|
@@ -14,7 +14,7 @@ class DebugMemoryFileSystemProvider extends Disposable {
|
|
|
14
14
|
this.debugService = debugService;
|
|
15
15
|
this.memoryFdCounter = 0;
|
|
16
16
|
this.fdMemory = ( new Map());
|
|
17
|
-
this.changeEmitter = ( new Emitter());
|
|
17
|
+
this.changeEmitter = this._register(( new Emitter()));
|
|
18
18
|
this.onDidChangeCapabilities = Event.None;
|
|
19
19
|
this.onDidChangeFile = this.changeEmitter.event;
|
|
20
20
|
this.capabilities = 0 | FileSystemProviderCapabilities.PathCaseSensitive | FileSystemProviderCapabilities.FileOpenReadWriteClose;
|
|
@@ -226,7 +226,7 @@ class MemoryRegionView extends Disposable {
|
|
|
226
226
|
super();
|
|
227
227
|
this.parent = parent;
|
|
228
228
|
this.range = range;
|
|
229
|
-
this.invalidateEmitter = ( new Emitter());
|
|
229
|
+
this.invalidateEmitter = this._register(( new Emitter()));
|
|
230
230
|
this.onDidInvalidate = this.invalidateEmitter.event;
|
|
231
231
|
this.writable = parent.writable;
|
|
232
232
|
this.width = range.toOffset - range.fromOffset;
|
|
@@ -16,7 +16,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
16
16
|
constructor(debugService, contextService, commandService, notificationService) {
|
|
17
17
|
super(DEBUG_QUICK_ACCESS_PREFIX, {
|
|
18
18
|
noResultsPick: {
|
|
19
|
-
label: ( localize(
|
|
19
|
+
label: ( localize(7974, "No matching launch configurations"))
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
this.debugService = debugService;
|
|
@@ -47,7 +47,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
47
47
|
},
|
|
48
48
|
buttons: [{
|
|
49
49
|
iconClass: ThemeIcon.asClassName(debugConfigure),
|
|
50
|
-
tooltip: ( localize(
|
|
50
|
+
tooltip: ( localize(7975, "Configure Launch Configuration"))
|
|
51
51
|
}],
|
|
52
52
|
trigger: () => {
|
|
53
53
|
config.launch.openConfigFile({
|
|
@@ -69,7 +69,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
69
69
|
if (selectedConfiguration.name === config.name && selectedConfiguration.launch === config.launch) {
|
|
70
70
|
const separator = {
|
|
71
71
|
type: "separator",
|
|
72
|
-
label: ( localize(
|
|
72
|
+
label: ( localize(7976, "Most Recent"))
|
|
73
73
|
};
|
|
74
74
|
picks.unshift(separator, pick);
|
|
75
75
|
continue;
|
|
@@ -87,7 +87,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
87
87
|
if (dynamicProviders.length > 0) {
|
|
88
88
|
picks.push({
|
|
89
89
|
type: "separator",
|
|
90
|
-
label: ( localize(
|
|
90
|
+
label: ( localize(7977, "contributed"))
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
configManager.getRecentDynamicConfigurations().forEach((
|
|
@@ -105,7 +105,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
105
105
|
},
|
|
106
106
|
buttons: [{
|
|
107
107
|
iconClass: ThemeIcon.asClassName(debugRemoveConfig),
|
|
108
|
-
tooltip: ( localize(
|
|
108
|
+
tooltip: ( localize(7978, "Remove Launch Configuration"))
|
|
109
109
|
}],
|
|
110
110
|
trigger: () => {
|
|
111
111
|
configManager.removeRecentDynamicConfigurations(name, type);
|
|
@@ -134,7 +134,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
134
134
|
dynamicProviders.forEach(provider => {
|
|
135
135
|
picks.push({
|
|
136
136
|
label: `$(folder) ${provider.label}...`,
|
|
137
|
-
ariaLabel: ( localize(
|
|
137
|
+
ariaLabel: ( localize(7979, "{0} contributed configurations", provider.label)),
|
|
138
138
|
accept: async () => {
|
|
139
139
|
const pick = await provider.pick();
|
|
140
140
|
if (pick) {
|
|
@@ -152,11 +152,11 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
152
152
|
if (visibleLaunches.length > 0) {
|
|
153
153
|
picks.push({
|
|
154
154
|
type: "separator",
|
|
155
|
-
label: ( localize(
|
|
155
|
+
label: ( localize(7980, "configure"))
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
for (const launch of visibleLaunches) {
|
|
159
|
-
const label = this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE ? ( localize(
|
|
159
|
+
const label = this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE ? ( localize(7981, "Add Config ({0})...", launch.name)) : ( localize(7982, "Add Configuration..."));
|
|
160
160
|
picks.push({
|
|
161
161
|
label,
|
|
162
162
|
description: this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE ? launch.name : "",
|