@codingame/monaco-vscode-debug-service-override 7.1.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +21 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +155 -174
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +32 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +16 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +7 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +2 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +25 -26
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +3 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +5 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +9 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +38 -73
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +69 -129
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSettingMigration.js +19 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +4 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +20 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +6 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +7 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +8 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +5 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +4 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +8 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +7 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +52 -23
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +104 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.js +122 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +7 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +128 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +8 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +25 -32
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +13 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +12 -17
- package/vscode/src/vs/workbench/contrib/debug/common/debugAccessibilityAnnouncer.js +47 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +4 -5
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +6 -9
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +63 -98
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +15 -25
- package/vscode/src/vs/workbench/contrib/debug/common/replAccessibilityAnnouncer.js +33 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +3 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
2
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
4
4
|
import { $ as $$1, append, addDisposableListener, EventType } from 'vscode/vscode/vs/base/browser/dom';
|
|
5
5
|
import { StandardKeyboardEvent } from 'vscode/vscode/vs/base/browser/keyboardEvent';
|
|
@@ -31,14 +31,16 @@ import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/
|
|
|
31
31
|
import { defaultSelectBoxStyles } from 'vscode/vscode/vs/platform/theme/browser/defaultStyles';
|
|
32
32
|
import { getDefaultHoverDelegate } from 'vscode/vscode/vs/base/browser/ui/hover/hoverDelegateFactory';
|
|
33
33
|
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
|
|
34
|
+
import { AccessibilityVerbositySettingId } from 'vscode/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
35
|
+
import { AccessibilityCommandId } from 'vscode/vscode/vs/workbench/contrib/accessibility/common/accessibilityCommands';
|
|
36
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
34
37
|
|
|
35
38
|
var StartDebugActionViewItem_1;
|
|
36
|
-
const _moduleId = "vs/workbench/contrib/debug/browser/debugActionViewItems";
|
|
37
39
|
const $ = $$1;
|
|
38
40
|
let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseActionViewItem {
|
|
39
41
|
static { StartDebugActionViewItem_1 = this; }
|
|
40
42
|
static { this.SEPARATOR = '\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500'; }
|
|
41
|
-
constructor(context, action, options, debugService, configurationService, commandService, contextService, contextViewService, keybindingService, hoverService) {
|
|
43
|
+
constructor(context, action, options, debugService, configurationService, commandService, contextService, contextViewService, keybindingService, hoverService, contextKeyService) {
|
|
42
44
|
super(context, action, options);
|
|
43
45
|
this.context = context;
|
|
44
46
|
this.debugService = debugService;
|
|
@@ -47,6 +49,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
47
49
|
this.contextService = contextService;
|
|
48
50
|
this.keybindingService = keybindingService;
|
|
49
51
|
this.hoverService = hoverService;
|
|
52
|
+
this.contextKeyService = contextKeyService;
|
|
50
53
|
this.debugOptions = [];
|
|
51
54
|
this.selected = 0;
|
|
52
55
|
this.providers = [];
|
|
@@ -56,7 +59,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
56
59
|
-1,
|
|
57
60
|
contextViewService,
|
|
58
61
|
defaultSelectBoxStyles,
|
|
59
|
-
{ ariaLabel: (
|
|
62
|
+
{ ariaLabel: ( localize(10234, 'Debug Launch Configurations')) }
|
|
60
63
|
)));
|
|
61
64
|
this.selectBox.setFocusable(false);
|
|
62
65
|
this.toDispose.push(this.selectBox);
|
|
@@ -81,7 +84,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
81
84
|
const title = this.action.label + keybindingLabel;
|
|
82
85
|
this.toDispose.push(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), this.start, title));
|
|
83
86
|
this.start.setAttribute('role', 'button');
|
|
84
|
-
this.
|
|
87
|
+
this._setAriaLabel(title);
|
|
85
88
|
this.toDispose.push(addDisposableListener(this.start, EventType.CLICK, () => {
|
|
86
89
|
this.start.blur();
|
|
87
90
|
if (this.debugService.state !== State.Initializing) {
|
|
@@ -214,7 +217,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
214
217
|
});
|
|
215
218
|
});
|
|
216
219
|
if (this.debugOptions.length === 0) {
|
|
217
|
-
this.debugOptions.push({ label: (
|
|
220
|
+
this.debugOptions.push({ label: ( localize(10235, "No Configurations")), handler: async () => false });
|
|
218
221
|
}
|
|
219
222
|
this.debugOptions.push({ label: StartDebugActionViewItem_1.SEPARATOR, handler: () => Promise.resolve(false) });
|
|
220
223
|
disabledIdxs.push(this.debugOptions.length - 1);
|
|
@@ -232,7 +235,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
232
235
|
});
|
|
233
236
|
});
|
|
234
237
|
manager.getLaunches().filter(l => !l.hidden).forEach(l => {
|
|
235
|
-
const label = inWorkspace ? (
|
|
238
|
+
const label = inWorkspace ? ( localize(10236, "Add Config ({0})...", l.name)) : ( localize(10237, "Add Configuration..."));
|
|
236
239
|
this.debugOptions.push({
|
|
237
240
|
label, handler: async () => {
|
|
238
241
|
await this.commandService.executeCommand(ADD_CONFIGURATION_ID, ( (l.uri.toString())));
|
|
@@ -244,6 +247,25 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
244
247
|
(data, index) => ({ text: data.label, isDisabled: disabledIdxs.indexOf(index) !== -1 })
|
|
245
248
|
))), this.selected);
|
|
246
249
|
}
|
|
250
|
+
_setAriaLabel(title) {
|
|
251
|
+
let ariaLabel = title;
|
|
252
|
+
let keybinding;
|
|
253
|
+
const verbose = this.configurationService.getValue(AccessibilityVerbositySettingId.Debug);
|
|
254
|
+
if (verbose) {
|
|
255
|
+
keybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp, this.contextKeyService)?.getLabel() ?? undefined;
|
|
256
|
+
}
|
|
257
|
+
if (keybinding) {
|
|
258
|
+
ariaLabel = ( localize(10238, "{0}, use ({1}) for accessibility help", ariaLabel, keybinding));
|
|
259
|
+
}
|
|
260
|
+
else {
|
|
261
|
+
ariaLabel = ( localize(
|
|
262
|
+
10239,
|
|
263
|
+
"{0}, run the command Open Accessibility Help which is currently not triggerable via keybinding.",
|
|
264
|
+
ariaLabel
|
|
265
|
+
));
|
|
266
|
+
}
|
|
267
|
+
this.start.ariaLabel = ariaLabel;
|
|
268
|
+
}
|
|
247
269
|
};
|
|
248
270
|
StartDebugActionViewItem = StartDebugActionViewItem_1 = ( (__decorate([
|
|
249
271
|
( (__param(3, IDebugService))),
|
|
@@ -252,11 +274,12 @@ StartDebugActionViewItem = StartDebugActionViewItem_1 = ( (__decorate([
|
|
|
252
274
|
( (__param(6, IWorkspaceContextService))),
|
|
253
275
|
( (__param(7, IContextViewService))),
|
|
254
276
|
( (__param(8, IKeybindingService))),
|
|
255
|
-
( (__param(9, IHoverService)))
|
|
277
|
+
( (__param(9, IHoverService))),
|
|
278
|
+
( (__param(10, IContextKeyService)))
|
|
256
279
|
], StartDebugActionViewItem)));
|
|
257
280
|
let FocusSessionActionViewItem = class FocusSessionActionViewItem extends SelectActionViewItem {
|
|
258
281
|
constructor(action, session, debugService, contextViewService, configurationService) {
|
|
259
|
-
super(null, action, [], -1, contextViewService, defaultSelectBoxStyles, { ariaLabel: (
|
|
282
|
+
super(null, action, [], -1, contextViewService, defaultSelectBoxStyles, { ariaLabel: ( localize(10240, 'Debug Session')) });
|
|
260
283
|
this.debugService = debugService;
|
|
261
284
|
this.configurationService = configurationService;
|
|
262
285
|
this._register(this.debugService.getViewModel().onDidFocusSession(() => {
|
|
@@ -5,7 +5,7 @@ import Severity$1 from 'vscode/vscode/vs/base/common/severity';
|
|
|
5
5
|
import { equalsIgnoreCase } from 'vscode/vscode/vs/base/common/strings';
|
|
6
6
|
import { isCodeEditor } from 'vscode/vscode/vs/editor/browser/editorBrowser';
|
|
7
7
|
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
8
|
-
import {
|
|
8
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
9
9
|
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
10
10
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
11
11
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
@@ -25,7 +25,6 @@ import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extension
|
|
|
25
25
|
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
26
26
|
import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
27
27
|
|
|
28
|
-
const _moduleId = "vs/workbench/contrib/debug/browser/debugAdapterManager";
|
|
29
28
|
const jsonRegistry = ( (Registry.as(Extensions.JSONContribution)));
|
|
30
29
|
let AdapterManager = class AdapterManager extends Disposable {
|
|
31
30
|
constructor(delegate, editorService, configurationService, quickInputService, instantiationService, commandService, extensionService, contextKeyService, languageService, dialogService, lifecycleService) {
|
|
@@ -73,11 +72,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
73
72
|
delta.added.forEach(added => {
|
|
74
73
|
added.value.forEach(rawAdapter => {
|
|
75
74
|
if (!rawAdapter.type || (typeof rawAdapter.type !== 'string')) {
|
|
76
|
-
added.collector.error((
|
|
77
|
-
_moduleId,
|
|
78
|
-
0,
|
|
79
|
-
"Debugger 'type' can not be omitted and must be of type 'string'."
|
|
80
|
-
)));
|
|
75
|
+
added.collector.error(( localize(5702, "Debugger 'type' can not be omitted and must be of type 'string'.")));
|
|
81
76
|
}
|
|
82
77
|
if (rawAdapter.type !== '*') {
|
|
83
78
|
const existing = this.getDebugger(rawAdapter.type);
|
|
@@ -120,18 +115,16 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
120
115
|
properties: {
|
|
121
116
|
'name': {
|
|
122
117
|
type: 'string',
|
|
123
|
-
description: (
|
|
124
|
-
|
|
125
|
-
1,
|
|
118
|
+
description: ( localize(
|
|
119
|
+
5703,
|
|
126
120
|
"Name of configuration; appears in the launch configuration dropdown menu."
|
|
127
121
|
)),
|
|
128
122
|
default: 'Launch'
|
|
129
123
|
},
|
|
130
124
|
'debugServer': {
|
|
131
125
|
type: 'number',
|
|
132
|
-
description: (
|
|
133
|
-
|
|
134
|
-
2,
|
|
126
|
+
description: ( localize(
|
|
127
|
+
5704,
|
|
135
128
|
"For debug extension development only: if a port is specified VS Code tries to connect to a debug adapter running in server mode"
|
|
136
129
|
)),
|
|
137
130
|
default: 4711
|
|
@@ -142,7 +135,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
142
135
|
}],
|
|
143
136
|
default: '',
|
|
144
137
|
defaultSnippets: [{ body: { task: '', type: '' } }],
|
|
145
|
-
description: (
|
|
138
|
+
description: ( localize(5705, "Task to run before debug session starts."))
|
|
146
139
|
},
|
|
147
140
|
'postDebugTask': {
|
|
148
141
|
anyOf: [taskSchema, {
|
|
@@ -150,15 +143,14 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
150
143
|
}],
|
|
151
144
|
default: '',
|
|
152
145
|
defaultSnippets: [{ body: { task: '', type: '' } }],
|
|
153
|
-
description: (
|
|
146
|
+
description: ( localize(5706, "Task to run after debug session ends."))
|
|
154
147
|
},
|
|
155
148
|
'presentation': presentationSchema,
|
|
156
149
|
'internalConsoleOptions': INTERNAL_CONSOLE_OPTIONS_SCHEMA,
|
|
157
150
|
'suppressMultipleSessionWarning': {
|
|
158
151
|
type: 'boolean',
|
|
159
|
-
description: (
|
|
160
|
-
|
|
161
|
-
5,
|
|
152
|
+
description: ( localize(
|
|
153
|
+
5707,
|
|
162
154
|
"Disable the warning when trying to start the same debug configuration more than once."
|
|
163
155
|
)),
|
|
164
156
|
default: true
|
|
@@ -313,13 +305,12 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
313
305
|
}
|
|
314
306
|
const { confirmed } = await this.dialogService.confirm({
|
|
315
307
|
type: Severity$1.Warning,
|
|
316
|
-
message: (
|
|
317
|
-
|
|
318
|
-
6,
|
|
308
|
+
message: ( localize(
|
|
309
|
+
5708,
|
|
319
310
|
"You don't have an extension for debugging {0}. Should we find a {0} extension in the Marketplace?",
|
|
320
311
|
languageLabel
|
|
321
312
|
)),
|
|
322
|
-
primaryButton: (
|
|
313
|
+
primaryButton: ( localize(5709, "&&Find {0} extension", languageLabel))
|
|
323
314
|
});
|
|
324
315
|
if (confirmed) {
|
|
325
316
|
await this.commandService.executeCommand('debug.installAdditionalDebuggers', languageLabel);
|
|
@@ -345,7 +336,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
345
336
|
});
|
|
346
337
|
const picks = [];
|
|
347
338
|
if (suggestedCandidates.length > 0) {
|
|
348
|
-
picks.push({ type: 'separator', label: (
|
|
339
|
+
picks.push({ type: 'separator', label: ( localize(5710, "Suggested")) }, ...( (suggestedCandidates.map(c => ({ label: c.label, debugger: c })))));
|
|
349
340
|
}
|
|
350
341
|
if (otherCandidates.length > 0) {
|
|
351
342
|
if (picks.length > 0) {
|
|
@@ -353,8 +344,8 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
353
344
|
}
|
|
354
345
|
picks.push(...( (otherCandidates.map(c => ({ label: c.label, debugger: c })))));
|
|
355
346
|
}
|
|
356
|
-
picks.push({ type: 'separator', label: '' }, { label: languageLabel ? (
|
|
357
|
-
const placeHolder = (
|
|
347
|
+
picks.push({ type: 'separator', label: '' }, { label: languageLabel ? ( localize(5711, "Install an extension for {0}...", languageLabel)) : ( localize(5712, "Install extension...")) });
|
|
348
|
+
const placeHolder = ( localize(5713, "Select debugger"));
|
|
358
349
|
return this.quickInputService.pick(picks, { activeItem: picks[0], placeHolder })
|
|
359
350
|
.then(picked => {
|
|
360
351
|
if (picked && picked.debugger) {
|
|
@@ -9,7 +9,7 @@ import { deepClone } from 'vscode/vscode/vs/base/common/objects';
|
|
|
9
9
|
import { joinPath } from 'vscode/vscode/vs/base/common/resources';
|
|
10
10
|
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
11
11
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
12
|
-
import {
|
|
12
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
13
13
|
import { ConfigurationTarget } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
14
14
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
15
15
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
@@ -35,7 +35,6 @@ import { IHistoryService } from 'vscode/vscode/vs/workbench/services/history/com
|
|
|
35
35
|
import { IPreferencesService } from 'vscode/vscode/vs/workbench/services/preferences/common/preferences.service';
|
|
36
36
|
import { ITextFileService } from 'vscode/vscode/vs/workbench/services/textfile/common/textfiles.service';
|
|
37
37
|
|
|
38
|
-
const _moduleId = "vs/workbench/contrib/debug/browser/debugConfigurationManager";
|
|
39
38
|
const jsonRegistry = ( (Registry.as(Extensions.JSONContribution)));
|
|
40
39
|
jsonRegistry.registerSchema(launchSchemaId, launchSchema);
|
|
41
40
|
const DEBUG_SELECTED_CONFIG_NAME_KEY = 'debug.selectedconfigname';
|
|
@@ -192,7 +191,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
192
191
|
config,
|
|
193
192
|
buttons: [{
|
|
194
193
|
iconClass: ThemeIcon.asClassName(debugConfigure),
|
|
195
|
-
tooltip: (
|
|
194
|
+
tooltip: ( localize(5748, "Edit Debug Configuration in launch.json"))
|
|
196
195
|
}],
|
|
197
196
|
launch
|
|
198
197
|
}))))));
|
|
@@ -201,7 +200,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
201
200
|
const disposables = ( (new DisposableStore()));
|
|
202
201
|
const input = disposables.add(this.quickInputService.createQuickPick());
|
|
203
202
|
input.busy = true;
|
|
204
|
-
input.placeholder = (
|
|
203
|
+
input.placeholder = ( localize(5749, "Select Launch Configuration"));
|
|
205
204
|
const chosenPromise = ( (new Promise(resolve => {
|
|
206
205
|
disposables.add(input.onDidAccept(() => resolve(input.activeItems[0])));
|
|
207
206
|
disposables.add(input.onDidTriggerItemButton(async (context) => {
|
|
@@ -522,9 +521,8 @@ let Launch = class Launch extends AbstractLaunch {
|
|
|
522
521
|
await this.textFileService.write(resource, content);
|
|
523
522
|
}
|
|
524
523
|
catch (error) {
|
|
525
|
-
throw ( (new Error(
|
|
526
|
-
|
|
527
|
-
2,
|
|
524
|
+
throw ( (new Error(localize(
|
|
525
|
+
5750,
|
|
528
526
|
"Unable to create 'launch.json' file inside the '.vscode' folder ({0}).",
|
|
529
527
|
error.message
|
|
530
528
|
))));
|
|
@@ -581,7 +579,7 @@ let WorkspaceLaunch = class WorkspaceLaunch extends AbstractLaunch {
|
|
|
581
579
|
return this.contextService.getWorkspace().configuration;
|
|
582
580
|
}
|
|
583
581
|
get name() {
|
|
584
|
-
return (
|
|
582
|
+
return ( localize(5751, "workspace"));
|
|
585
583
|
}
|
|
586
584
|
getConfig() {
|
|
587
585
|
return this.configurationService.inspect('launch').workspaceValue;
|
|
@@ -625,7 +623,7 @@ let UserLaunch = class UserLaunch extends AbstractLaunch {
|
|
|
625
623
|
return this.preferencesService.userSettingsResource;
|
|
626
624
|
}
|
|
627
625
|
get name() {
|
|
628
|
-
return (
|
|
626
|
+
return ( localize(5752, "user settings"));
|
|
629
627
|
}
|
|
630
628
|
get hidden() {
|
|
631
629
|
return true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { matchesFuzzy } from 'vscode/vscode/vs/base/common/filters';
|
|
3
|
-
import {
|
|
3
|
+
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';
|
|
@@ -8,7 +8,6 @@ import { DEBUG_CONSOLE_QUICK_ACCESS_PREFIX, SELECT_AND_START_ID } from 'vscode/v
|
|
|
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
|
|
|
11
|
-
const _moduleId = "vs/workbench/contrib/debug/browser/debugConsoleQuickAccess";
|
|
12
11
|
let DebugConsoleQuickAccess = class DebugConsoleQuickAccess extends PickerQuickAccessProvider {
|
|
13
12
|
constructor(_debugService, _viewsService, _commandService) {
|
|
14
13
|
super(DEBUG_CONSOLE_QUICK_ACCESS_PREFIX, { canAcceptInBackground: true });
|
|
@@ -27,7 +26,7 @@ let DebugConsoleQuickAccess = class DebugConsoleQuickAccess extends PickerQuickA
|
|
|
27
26
|
if (debugConsolePicks.length > 0) {
|
|
28
27
|
debugConsolePicks.push({ type: 'separator' });
|
|
29
28
|
}
|
|
30
|
-
const createTerminalLabel = (
|
|
29
|
+
const createTerminalLabel = ( localize(5910, "Start a New Debug Session"));
|
|
31
30
|
debugConsolePicks.push({
|
|
32
31
|
label: `$(plus) ${createTerminalLabel}`,
|
|
33
32
|
ariaLabel: createTerminalLabel,
|
|
@@ -7,7 +7,7 @@ import { Position } from 'vscode/vscode/vs/editor/common/core/position';
|
|
|
7
7
|
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
8
8
|
import { ILanguageFeaturesService } from 'vscode/vscode/vs/editor/common/services/languageFeatures';
|
|
9
9
|
import { MessageController } from 'vscode/vscode/vs/editor/contrib/message/browser/messageController';
|
|
10
|
-
import {
|
|
10
|
+
import { localize2, localize } from 'vscode/vscode/vs/nls';
|
|
11
11
|
import { Action2, MenuId, registerAction2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
12
12
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
13
13
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
@@ -24,14 +24,13 @@ import { DisassemblyViewInput } from 'vscode/vscode/vs/workbench/contrib/debug/c
|
|
|
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
|
|
|
27
|
-
const _moduleId = "vs/workbench/contrib/debug/browser/debugEditorActions";
|
|
28
27
|
class ToggleBreakpointAction extends Action2 {
|
|
29
28
|
constructor() {
|
|
30
29
|
super({
|
|
31
30
|
id: 'editor.debug.action.toggleBreakpoint',
|
|
32
31
|
title: {
|
|
33
|
-
...(
|
|
34
|
-
mnemonicTitle: (
|
|
32
|
+
...( localize2(5911, "Debug: Toggle Breakpoint")),
|
|
33
|
+
mnemonicTitle: ( localize(5912, "Toggle &&Breakpoint")),
|
|
35
34
|
},
|
|
36
35
|
f1: true,
|
|
37
36
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -90,12 +89,12 @@ class ConditionalBreakpointAction extends EditorAction {
|
|
|
90
89
|
constructor() {
|
|
91
90
|
super({
|
|
92
91
|
id: 'editor.debug.action.conditionalBreakpoint',
|
|
93
|
-
label: (
|
|
92
|
+
label: ( localize(5913, "Debug: Add Conditional Breakpoint...")),
|
|
94
93
|
alias: 'Debug: Add Conditional Breakpoint...',
|
|
95
94
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
96
95
|
menuOpts: {
|
|
97
96
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
98
|
-
title: (
|
|
97
|
+
title: ( localize(5914, "&&Conditional Breakpoint...")),
|
|
99
98
|
group: '1_breakpoints',
|
|
100
99
|
order: 1,
|
|
101
100
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -114,13 +113,13 @@ class LogPointAction extends EditorAction {
|
|
|
114
113
|
constructor() {
|
|
115
114
|
super({
|
|
116
115
|
id: 'editor.debug.action.addLogPoint',
|
|
117
|
-
label: (
|
|
116
|
+
label: ( localize(5915, "Debug: Add Logpoint...")),
|
|
118
117
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
119
118
|
alias: 'Debug: Add Logpoint...',
|
|
120
119
|
menuOpts: [
|
|
121
120
|
{
|
|
122
121
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
123
|
-
title: (
|
|
122
|
+
title: ( localize(5916, "&&Logpoint...")),
|
|
124
123
|
group: '1_breakpoints',
|
|
125
124
|
order: 4,
|
|
126
125
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -140,13 +139,13 @@ class TriggerByBreakpointAction extends EditorAction {
|
|
|
140
139
|
constructor() {
|
|
141
140
|
super({
|
|
142
141
|
id: 'editor.debug.action.triggerByBreakpoint',
|
|
143
|
-
label: (
|
|
142
|
+
label: ( localize(5917, "Debug: Add Triggered Breakpoint...")),
|
|
144
143
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
145
144
|
alias: 'Debug: Triggered Breakpoint...',
|
|
146
145
|
menuOpts: [
|
|
147
146
|
{
|
|
148
147
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
149
|
-
title: (
|
|
148
|
+
title: ( localize(5918, "&&Triggered Breakpoint...")),
|
|
150
149
|
group: '1_breakpoints',
|
|
151
150
|
order: 4,
|
|
152
151
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -166,12 +165,12 @@ class EditBreakpointAction extends EditorAction {
|
|
|
166
165
|
constructor() {
|
|
167
166
|
super({
|
|
168
167
|
id: 'editor.debug.action.editBreakpoint',
|
|
169
|
-
label: (
|
|
168
|
+
label: ( localize(5919, "Debug: Edit Breakpoint")),
|
|
170
169
|
alias: 'Debug: Edit Existing Breakpoint',
|
|
171
170
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
172
171
|
menuOpts: {
|
|
173
172
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
174
|
-
title: (
|
|
173
|
+
title: ( localize(5920, "&&Edit Breakpoint")),
|
|
175
174
|
group: '1_breakpoints',
|
|
176
175
|
order: 1,
|
|
177
176
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -206,8 +205,8 @@ class OpenDisassemblyViewAction extends Action2 {
|
|
|
206
205
|
super({
|
|
207
206
|
id: OpenDisassemblyViewAction.ID,
|
|
208
207
|
title: {
|
|
209
|
-
...(
|
|
210
|
-
mnemonicTitle: (
|
|
208
|
+
...( localize2(5921, "Open Disassembly View")),
|
|
209
|
+
mnemonicTitle: ( localize(5922, "&&DisassemblyView")),
|
|
211
210
|
},
|
|
212
211
|
precondition: CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE,
|
|
213
212
|
menu: [
|
|
@@ -258,11 +257,11 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
258
257
|
super({
|
|
259
258
|
id: ToggleDisassemblyViewSourceCodeAction.ID,
|
|
260
259
|
title: {
|
|
261
|
-
...(
|
|
262
|
-
mnemonicTitle: (
|
|
260
|
+
...( localize2(5923, "Toggle Source Code in Disassembly View")),
|
|
261
|
+
mnemonicTitle: ( localize(5924, "&&ToggleSource")),
|
|
263
262
|
},
|
|
264
263
|
metadata: {
|
|
265
|
-
description: (
|
|
264
|
+
description: ( localize2(5925, 'Shows or hides source code in disassembly'))
|
|
266
265
|
},
|
|
267
266
|
f1: true,
|
|
268
267
|
});
|
|
@@ -277,7 +276,7 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
277
276
|
}
|
|
278
277
|
class RunToCursorAction extends EditorAction {
|
|
279
278
|
static { this.ID = 'editor.debug.action.runToCursor'; }
|
|
280
|
-
static { this.LABEL = (
|
|
279
|
+
static { this.LABEL = ( localize2(5926, "Run to Cursor")); }
|
|
281
280
|
constructor() {
|
|
282
281
|
super({
|
|
283
282
|
id: RunToCursorAction.ID,
|
|
@@ -314,7 +313,7 @@ class RunToCursorAction extends EditorAction {
|
|
|
314
313
|
}
|
|
315
314
|
class SelectionToReplAction extends EditorAction {
|
|
316
315
|
static { this.ID = 'editor.debug.action.selectionToRepl'; }
|
|
317
|
-
static { this.LABEL = (
|
|
316
|
+
static { this.LABEL = ( localize2(5927, "Evaluate in Debug Console")); }
|
|
318
317
|
constructor() {
|
|
319
318
|
super({
|
|
320
319
|
id: SelectionToReplAction.ID,
|
|
@@ -349,7 +348,7 @@ class SelectionToReplAction extends EditorAction {
|
|
|
349
348
|
}
|
|
350
349
|
class SelectionToWatchExpressionsAction extends EditorAction {
|
|
351
350
|
static { this.ID = 'editor.debug.action.selectionToWatch'; }
|
|
352
|
-
static { this.LABEL = (
|
|
351
|
+
static { this.LABEL = ( localize2(5928, "Add to Watch")); }
|
|
353
352
|
constructor() {
|
|
354
353
|
super({
|
|
355
354
|
id: SelectionToWatchExpressionsAction.ID,
|
|
@@ -394,7 +393,7 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
394
393
|
constructor() {
|
|
395
394
|
super({
|
|
396
395
|
id: 'editor.debug.action.showDebugHover',
|
|
397
|
-
label: (
|
|
396
|
+
label: ( localize(5929, "Debug: Show Hover")),
|
|
398
397
|
alias: 'Debug: Show Hover',
|
|
399
398
|
precondition: CONTEXT_IN_DEBUG_MODE,
|
|
400
399
|
kbOpts: {
|
|
@@ -412,10 +411,10 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
412
411
|
return editor.getContribution(EDITOR_CONTRIBUTION_ID)?.showHover(position, true);
|
|
413
412
|
}
|
|
414
413
|
}
|
|
415
|
-
const NO_TARGETS_MESSAGE = (
|
|
414
|
+
const NO_TARGETS_MESSAGE = ( localize(5930, "Step targets are not available here"));
|
|
416
415
|
class StepIntoTargetsAction extends EditorAction {
|
|
417
416
|
static { this.ID = 'editor.debug.action.stepIntoTargets'; }
|
|
418
|
-
static { this.LABEL = (
|
|
417
|
+
static { this.LABEL = ( localize(5931, "Step Into Target")); }
|
|
419
418
|
constructor() {
|
|
420
419
|
super({
|
|
421
420
|
id: StepIntoTargetsAction.ID,
|
|
@@ -527,7 +526,7 @@ class GoToNextBreakpointAction extends GoToBreakpointAction {
|
|
|
527
526
|
constructor() {
|
|
528
527
|
super(true, {
|
|
529
528
|
id: 'editor.debug.action.goToNextBreakpoint',
|
|
530
|
-
label: (
|
|
529
|
+
label: ( localize(5932, "Debug: Go to Next Breakpoint")),
|
|
531
530
|
alias: 'Debug: Go to Next Breakpoint',
|
|
532
531
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
533
532
|
});
|
|
@@ -537,7 +536,7 @@ class GoToPreviousBreakpointAction extends GoToBreakpointAction {
|
|
|
537
536
|
constructor() {
|
|
538
537
|
super(false, {
|
|
539
538
|
id: 'editor.debug.action.goToPreviousBreakpoint',
|
|
540
|
-
label: (
|
|
539
|
+
label: ( localize(5933, "Debug: Go to Previous Breakpoint")),
|
|
541
540
|
alias: 'Debug: Go to Previous Breakpoint',
|
|
542
541
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
543
542
|
});
|
|
@@ -547,7 +546,7 @@ class CloseExceptionWidgetAction extends EditorAction {
|
|
|
547
546
|
constructor() {
|
|
548
547
|
super({
|
|
549
548
|
id: 'editor.debug.action.closeExceptionWidget',
|
|
550
|
-
label: (
|
|
549
|
+
label: ( localize(5934, "Close Exception Widget")),
|
|
551
550
|
alias: 'Close Exception Widget',
|
|
552
551
|
precondition: CONTEXT_EXCEPTION_WIDGET_VISIBLE,
|
|
553
552
|
kbOpts: {
|
|
@@ -33,7 +33,7 @@ import { ILanguageFeaturesService } from 'vscode/vscode/vs/editor/common/service
|
|
|
33
33
|
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
34
34
|
import { HoverController } from 'vscode/vscode/vs/editor/contrib/hover/browser/hoverController';
|
|
35
35
|
import { HoverStartMode, HoverStartSource } from 'vscode/vscode/vs/editor/contrib/hover/browser/hoverOperation';
|
|
36
|
-
import {
|
|
36
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
37
37
|
import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
38
38
|
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
39
39
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
@@ -58,7 +58,6 @@ import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/d
|
|
|
58
58
|
import { Expression } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugModel';
|
|
59
59
|
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host.service';
|
|
60
60
|
|
|
61
|
-
const _moduleId = "vs/workbench/contrib/debug/browser/debugEditorContribution";
|
|
62
61
|
const MAX_NUM_INLINE_VALUES = 100;
|
|
63
62
|
const MAX_INLINE_DECORATOR_LENGTH = 150;
|
|
64
63
|
const MAX_TOKENIZATION_LINE_LEN = 500;
|
|
@@ -68,8 +67,8 @@ registerColor('editor.inlineValuesForeground', {
|
|
|
68
67
|
light: '#00000080',
|
|
69
68
|
hcDark: '#ffffff80',
|
|
70
69
|
hcLight: '#00000080'
|
|
71
|
-
}, (
|
|
72
|
-
registerColor('editor.inlineValuesBackground', '#ffc80033', (
|
|
70
|
+
}, ( localize(5935, "Color for the debug inline value text.")));
|
|
71
|
+
registerColor('editor.inlineValuesBackground', '#ffc80033', ( localize(5936, "Color for the debug inline value background.")));
|
|
73
72
|
class InlineSegment {
|
|
74
73
|
constructor(column, text) {
|
|
75
74
|
this.column = column;
|
|
@@ -13,7 +13,7 @@ import { EditorOption } from 'vscode/vscode/vs/editor/common/config/editorOption
|
|
|
13
13
|
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
14
14
|
import { ModelDecorationOptions } from 'vscode/vscode/vs/editor/common/model/textModel';
|
|
15
15
|
import { ILanguageFeaturesService } from 'vscode/vscode/vs/editor/common/services/languageFeatures';
|
|
16
|
-
import {
|
|
16
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
17
17
|
import { MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
18
18
|
import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions.service';
|
|
19
19
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
@@ -41,7 +41,6 @@ import { Variable, Expression, VisualizedExpression } from 'vscode/vscode/vs/wor
|
|
|
41
41
|
import { getEvaluatableExpressionAtPosition } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugUtils';
|
|
42
42
|
|
|
43
43
|
var DebugHoverWidget_1;
|
|
44
|
-
const _moduleId = "vs/workbench/contrib/debug/browser/debugHover";
|
|
45
44
|
const $ = $$1;
|
|
46
45
|
var ShowDebugHoverResult;
|
|
47
46
|
( ((function(ShowDebugHoverResult) {
|
|
@@ -101,9 +100,8 @@ let DebugHoverWidget = class DebugHoverWidget {
|
|
|
101
100
|
this.treeContainer = append(this.complexValueContainer, $('.debug-hover-tree'));
|
|
102
101
|
this.treeContainer.setAttribute('role', 'tree');
|
|
103
102
|
const tip = append(this.complexValueContainer, $('.tip'));
|
|
104
|
-
tip.textContent = (
|
|
105
|
-
|
|
106
|
-
0,
|
|
103
|
+
tip.textContent = ( localize(
|
|
104
|
+
10226,
|
|
107
105
|
'Hold {0} key to switch to editor language hover',
|
|
108
106
|
isMacintosh ? 'Option' : 'Alt'
|
|
109
107
|
));
|
|
@@ -339,16 +337,10 @@ DebugHoverWidget = DebugHoverWidget_1 = ( (__decorate([
|
|
|
339
337
|
], DebugHoverWidget)));
|
|
340
338
|
class DebugHoverAccessibilityProvider {
|
|
341
339
|
getWidgetAriaLabel() {
|
|
342
|
-
return (
|
|
340
|
+
return ( localize(10227, "Debug Hover"));
|
|
343
341
|
}
|
|
344
342
|
getAriaLabel(element) {
|
|
345
|
-
return (
|
|
346
|
-
_moduleId,
|
|
347
|
-
2,
|
|
348
|
-
"{0}, value {1}, variables, debug",
|
|
349
|
-
element.name,
|
|
350
|
-
element.value
|
|
351
|
-
));
|
|
343
|
+
return ( localize(10228, "{0}, value {1}, variables, debug", element.name, element.value));
|
|
352
344
|
}
|
|
353
345
|
}
|
|
354
346
|
class DebugHoverDataSource extends AbstractExpressionDataSource {
|