@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 { ExtensionsRegistry } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
|
|
2
|
-
import {
|
|
2
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { launchSchemaId } from 'vscode/vscode/vs/workbench/services/configuration/common/configuration';
|
|
4
4
|
import { inputsSchema } from 'vscode/vscode/vs/workbench/services/configurationResolver/common/configurationResolverSchema';
|
|
5
5
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
@@ -7,12 +7,11 @@ import { Extensions } from 'vscode/vscode/vs/workbench/services/extensionManagem
|
|
|
7
7
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
8
8
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
9
9
|
|
|
10
|
-
const _moduleId = "vs/workbench/contrib/debug/common/debugSchemas";
|
|
11
10
|
const debuggersExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
12
11
|
extensionPoint: 'debuggers',
|
|
13
12
|
defaultExtensionKind: ['workspace'],
|
|
14
13
|
jsonSchema: {
|
|
15
|
-
description: (
|
|
14
|
+
description: ( localize(10158, 'Contributes debug adapters.')),
|
|
16
15
|
type: 'array',
|
|
17
16
|
defaultSnippets: [{ body: [{ type: '' }] }],
|
|
18
17
|
items: {
|
|
@@ -21,138 +20,119 @@ const debuggersExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
21
20
|
defaultSnippets: [{ body: { type: '', program: '', runtime: '' } }],
|
|
22
21
|
properties: {
|
|
23
22
|
type: {
|
|
24
|
-
description: (
|
|
23
|
+
description: ( localize(10159, "Unique identifier for this debug adapter.")),
|
|
25
24
|
type: 'string'
|
|
26
25
|
},
|
|
27
26
|
label: {
|
|
28
|
-
description: (
|
|
27
|
+
description: ( localize(10160, "Display name for this debug adapter.")),
|
|
29
28
|
type: 'string'
|
|
30
29
|
},
|
|
31
30
|
program: {
|
|
32
|
-
description: (
|
|
33
|
-
|
|
34
|
-
3,
|
|
31
|
+
description: ( localize(
|
|
32
|
+
10161,
|
|
35
33
|
"Path to the debug adapter program. Path is either absolute or relative to the extension folder."
|
|
36
34
|
)),
|
|
37
35
|
type: 'string'
|
|
38
36
|
},
|
|
39
37
|
args: {
|
|
40
|
-
description: (
|
|
38
|
+
description: ( localize(10162, "Optional arguments to pass to the adapter.")),
|
|
41
39
|
type: 'array'
|
|
42
40
|
},
|
|
43
41
|
runtime: {
|
|
44
|
-
description: (
|
|
45
|
-
|
|
46
|
-
5,
|
|
42
|
+
description: ( localize(
|
|
43
|
+
10163,
|
|
47
44
|
"Optional runtime in case the program attribute is not an executable but requires a runtime."
|
|
48
45
|
)),
|
|
49
46
|
type: 'string'
|
|
50
47
|
},
|
|
51
48
|
runtimeArgs: {
|
|
52
|
-
description: (
|
|
49
|
+
description: ( localize(10164, "Optional runtime arguments.")),
|
|
53
50
|
type: 'array'
|
|
54
51
|
},
|
|
55
52
|
variables: {
|
|
56
|
-
description: (
|
|
57
|
-
|
|
58
|
-
7,
|
|
53
|
+
description: ( localize(
|
|
54
|
+
10165,
|
|
59
55
|
"Mapping from interactive variables (e.g. ${action.pickProcess}) in `launch.json` to a command."
|
|
60
56
|
)),
|
|
61
57
|
type: 'object'
|
|
62
58
|
},
|
|
63
59
|
initialConfigurations: {
|
|
64
|
-
description: (
|
|
60
|
+
description: ( localize(10166, "Configurations for generating the initial \'launch.json\'.")),
|
|
65
61
|
type: ['array', 'string'],
|
|
66
62
|
},
|
|
67
63
|
languages: {
|
|
68
|
-
description: (
|
|
69
|
-
|
|
70
|
-
9,
|
|
64
|
+
description: ( localize(
|
|
65
|
+
10167,
|
|
71
66
|
"List of languages for which the debug extension could be considered the \"default debugger\"."
|
|
72
67
|
)),
|
|
73
68
|
type: 'array'
|
|
74
69
|
},
|
|
75
70
|
configurationSnippets: {
|
|
76
|
-
description: (
|
|
77
|
-
_moduleId,
|
|
78
|
-
10,
|
|
79
|
-
"Snippets for adding new configurations in \'launch.json\'."
|
|
80
|
-
)),
|
|
71
|
+
description: ( localize(10168, "Snippets for adding new configurations in \'launch.json\'.")),
|
|
81
72
|
type: 'array'
|
|
82
73
|
},
|
|
83
74
|
configurationAttributes: {
|
|
84
|
-
description: (
|
|
85
|
-
_moduleId,
|
|
86
|
-
11,
|
|
87
|
-
"JSON schema configurations for validating \'launch.json\'."
|
|
88
|
-
)),
|
|
75
|
+
description: ( localize(10169, "JSON schema configurations for validating \'launch.json\'.")),
|
|
89
76
|
type: 'object'
|
|
90
77
|
},
|
|
91
78
|
when: {
|
|
92
|
-
description: (
|
|
93
|
-
|
|
94
|
-
12,
|
|
79
|
+
description: ( localize(
|
|
80
|
+
10170,
|
|
95
81
|
"Condition which must be true to enable this type of debugger. Consider using 'shellExecutionSupported', 'virtualWorkspace', 'resourceScheme' or an extension-defined context key as appropriate for this."
|
|
96
82
|
)),
|
|
97
83
|
type: 'string',
|
|
98
84
|
default: ''
|
|
99
85
|
},
|
|
100
86
|
hiddenWhen: {
|
|
101
|
-
description: (
|
|
102
|
-
|
|
103
|
-
13,
|
|
87
|
+
description: ( localize(
|
|
88
|
+
10171,
|
|
104
89
|
"When this condition is true, this debugger type is hidden from the debugger list, but is still enabled."
|
|
105
90
|
)),
|
|
106
91
|
type: 'string',
|
|
107
92
|
default: ''
|
|
108
93
|
},
|
|
109
94
|
deprecated: {
|
|
110
|
-
description: (
|
|
111
|
-
_moduleId,
|
|
112
|
-
14,
|
|
113
|
-
"Optional message to mark this debug type as being deprecated."
|
|
114
|
-
)),
|
|
95
|
+
description: ( localize(10172, "Optional message to mark this debug type as being deprecated.")),
|
|
115
96
|
type: 'string',
|
|
116
97
|
default: ''
|
|
117
98
|
},
|
|
118
99
|
windows: {
|
|
119
|
-
description: (
|
|
100
|
+
description: ( localize(10173, "Windows specific settings.")),
|
|
120
101
|
type: 'object',
|
|
121
102
|
properties: {
|
|
122
103
|
runtime: {
|
|
123
|
-
description: (
|
|
104
|
+
description: ( localize(10174, "Runtime used for Windows.")),
|
|
124
105
|
type: 'string'
|
|
125
106
|
}
|
|
126
107
|
}
|
|
127
108
|
},
|
|
128
109
|
osx: {
|
|
129
|
-
description: (
|
|
110
|
+
description: ( localize(10175, "macOS specific settings.")),
|
|
130
111
|
type: 'object',
|
|
131
112
|
properties: {
|
|
132
113
|
runtime: {
|
|
133
|
-
description: (
|
|
114
|
+
description: ( localize(10176, "Runtime used for macOS.")),
|
|
134
115
|
type: 'string'
|
|
135
116
|
}
|
|
136
117
|
}
|
|
137
118
|
},
|
|
138
119
|
linux: {
|
|
139
|
-
description: (
|
|
120
|
+
description: ( localize(10177, "Linux specific settings.")),
|
|
140
121
|
type: 'object',
|
|
141
122
|
properties: {
|
|
142
123
|
runtime: {
|
|
143
|
-
description: (
|
|
124
|
+
description: ( localize(10178, "Runtime used for Linux.")),
|
|
144
125
|
type: 'string'
|
|
145
126
|
}
|
|
146
127
|
}
|
|
147
128
|
},
|
|
148
129
|
strings: {
|
|
149
|
-
description: (
|
|
130
|
+
description: ( localize(10179, "UI strings contributed by this debug adapter.")),
|
|
150
131
|
type: 'object',
|
|
151
132
|
properties: {
|
|
152
133
|
unverifiedBreakpoints: {
|
|
153
|
-
description: (
|
|
154
|
-
|
|
155
|
-
22,
|
|
134
|
+
description: ( localize(
|
|
135
|
+
10180,
|
|
156
136
|
"When there are unverified breakpoints in a language supported by this debug adapter, this message will appear on the breakpoint hover and in the breakpoints view. Markdown and command links are supported."
|
|
157
137
|
)),
|
|
158
138
|
type: 'string'
|
|
@@ -166,7 +146,7 @@ const debuggersExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
166
146
|
const breakpointsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
167
147
|
extensionPoint: 'breakpoints',
|
|
168
148
|
jsonSchema: {
|
|
169
|
-
description: (
|
|
149
|
+
description: ( localize(10181, 'Contributes breakpoints.')),
|
|
170
150
|
type: 'array',
|
|
171
151
|
defaultSnippets: [{ body: [{ language: '' }] }],
|
|
172
152
|
items: {
|
|
@@ -175,13 +155,12 @@ const breakpointsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
175
155
|
defaultSnippets: [{ body: { language: '' } }],
|
|
176
156
|
properties: {
|
|
177
157
|
language: {
|
|
178
|
-
description: (
|
|
158
|
+
description: ( localize(10182, "Allow breakpoints for this language.")),
|
|
179
159
|
type: 'string'
|
|
180
160
|
},
|
|
181
161
|
when: {
|
|
182
|
-
description: (
|
|
183
|
-
|
|
184
|
-
25,
|
|
162
|
+
description: ( localize(
|
|
163
|
+
10183,
|
|
185
164
|
"Condition which must be true to enable breakpoints in this language. Consider matching this to the debugger when clause as appropriate."
|
|
186
165
|
)),
|
|
187
166
|
type: 'string',
|
|
@@ -193,36 +172,32 @@ const breakpointsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
193
172
|
});
|
|
194
173
|
const presentationSchema = {
|
|
195
174
|
type: 'object',
|
|
196
|
-
description: (
|
|
197
|
-
|
|
198
|
-
26,
|
|
175
|
+
description: ( localize(
|
|
176
|
+
10184,
|
|
199
177
|
"Presentation options on how to show this configuration in the debug configuration dropdown and the command palette."
|
|
200
178
|
)),
|
|
201
179
|
properties: {
|
|
202
180
|
hidden: {
|
|
203
181
|
type: 'boolean',
|
|
204
182
|
default: false,
|
|
205
|
-
description: (
|
|
206
|
-
|
|
207
|
-
27,
|
|
183
|
+
description: ( localize(
|
|
184
|
+
10185,
|
|
208
185
|
"Controls if this configuration should be shown in the configuration dropdown and the command palette."
|
|
209
186
|
))
|
|
210
187
|
},
|
|
211
188
|
group: {
|
|
212
189
|
type: 'string',
|
|
213
190
|
default: '',
|
|
214
|
-
description: (
|
|
215
|
-
|
|
216
|
-
28,
|
|
191
|
+
description: ( localize(
|
|
192
|
+
10186,
|
|
217
193
|
"Group that this configuration belongs to. Used for grouping and sorting in the configuration dropdown and the command palette."
|
|
218
194
|
))
|
|
219
195
|
},
|
|
220
196
|
order: {
|
|
221
197
|
type: 'number',
|
|
222
198
|
default: 1,
|
|
223
|
-
description: (
|
|
224
|
-
|
|
225
|
-
29,
|
|
199
|
+
description: ( localize(
|
|
200
|
+
10187,
|
|
226
201
|
"Order of this configuration within a group. Used for grouping and sorting in the configuration dropdown and the command palette."
|
|
227
202
|
))
|
|
228
203
|
}
|
|
@@ -237,7 +212,7 @@ const defaultCompound = { name: 'Compound', configurations: [] };
|
|
|
237
212
|
const launchSchema = {
|
|
238
213
|
id: launchSchemaId,
|
|
239
214
|
type: 'object',
|
|
240
|
-
title: (
|
|
215
|
+
title: ( localize(10188, "Launch")),
|
|
241
216
|
allowTrailingCommas: true,
|
|
242
217
|
allowComments: true,
|
|
243
218
|
required: [],
|
|
@@ -245,14 +220,13 @@ const launchSchema = {
|
|
|
245
220
|
properties: {
|
|
246
221
|
version: {
|
|
247
222
|
type: 'string',
|
|
248
|
-
description: (
|
|
223
|
+
description: ( localize(10189, "Version of this file format.")),
|
|
249
224
|
default: '0.2.0'
|
|
250
225
|
},
|
|
251
226
|
configurations: {
|
|
252
227
|
type: 'array',
|
|
253
|
-
description: (
|
|
254
|
-
|
|
255
|
-
32,
|
|
228
|
+
description: ( localize(
|
|
229
|
+
10190,
|
|
256
230
|
"List of configurations. Add new configurations or edit existing ones by using IntelliSense."
|
|
257
231
|
)),
|
|
258
232
|
items: {
|
|
@@ -263,9 +237,8 @@ const launchSchema = {
|
|
|
263
237
|
},
|
|
264
238
|
compounds: {
|
|
265
239
|
type: 'array',
|
|
266
|
-
description: (
|
|
267
|
-
|
|
268
|
-
33,
|
|
240
|
+
description: ( localize(
|
|
241
|
+
10191,
|
|
269
242
|
"List of compounds. Each compound references multiple configurations which will get launched together."
|
|
270
243
|
)),
|
|
271
244
|
items: {
|
|
@@ -274,9 +247,8 @@ const launchSchema = {
|
|
|
274
247
|
properties: {
|
|
275
248
|
name: {
|
|
276
249
|
type: 'string',
|
|
277
|
-
description: (
|
|
278
|
-
|
|
279
|
-
34,
|
|
250
|
+
description: ( localize(
|
|
251
|
+
10192,
|
|
280
252
|
"Name of compound. Appears in the launch configuration drop down menu."
|
|
281
253
|
))
|
|
282
254
|
},
|
|
@@ -287,49 +259,42 @@ const launchSchema = {
|
|
|
287
259
|
items: {
|
|
288
260
|
oneOf: [{
|
|
289
261
|
enum: [],
|
|
290
|
-
description: (
|
|
262
|
+
description: ( localize(10193, "Please use unique configuration names."))
|
|
291
263
|
}, {
|
|
292
264
|
type: 'object',
|
|
293
265
|
required: ['name'],
|
|
294
266
|
properties: {
|
|
295
267
|
name: {
|
|
296
268
|
enum: [],
|
|
297
|
-
description: (
|
|
298
|
-
|
|
299
|
-
34,
|
|
269
|
+
description: ( localize(
|
|
270
|
+
10193,
|
|
300
271
|
"Name of compound. Appears in the launch configuration drop down menu."
|
|
301
272
|
))
|
|
302
273
|
},
|
|
303
274
|
folder: {
|
|
304
275
|
enum: [],
|
|
305
|
-
description: (
|
|
276
|
+
description: ( localize(10194, "Name of folder in which the compound is located."))
|
|
306
277
|
}
|
|
307
278
|
}
|
|
308
279
|
}]
|
|
309
280
|
},
|
|
310
|
-
description: (
|
|
311
|
-
|
|
312
|
-
37,
|
|
281
|
+
description: ( localize(
|
|
282
|
+
10195,
|
|
313
283
|
"Names of configurations that will be started as part of this compound."
|
|
314
284
|
))
|
|
315
285
|
},
|
|
316
286
|
stopAll: {
|
|
317
287
|
type: 'boolean',
|
|
318
288
|
default: false,
|
|
319
|
-
description: (
|
|
320
|
-
|
|
321
|
-
38,
|
|
289
|
+
description: ( localize(
|
|
290
|
+
10196,
|
|
322
291
|
"Controls whether manually terminating one session will stop all of the compound sessions."
|
|
323
292
|
))
|
|
324
293
|
},
|
|
325
294
|
preLaunchTask: {
|
|
326
295
|
type: 'string',
|
|
327
296
|
default: '',
|
|
328
|
-
description: (
|
|
329
|
-
_moduleId,
|
|
330
|
-
39,
|
|
331
|
-
"Task to run before any of the compound configurations start."
|
|
332
|
-
))
|
|
297
|
+
description: ( localize(10197, "Task to run before any of the compound configurations start."))
|
|
333
298
|
}
|
|
334
299
|
},
|
|
335
300
|
default: defaultCompound
|
|
@@ -355,8 +320,8 @@ class DebuggersDataRenderer extends Disposable {
|
|
|
355
320
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
356
321
|
}
|
|
357
322
|
const headers = [
|
|
358
|
-
(
|
|
359
|
-
(
|
|
323
|
+
( localize(10198, "Name")),
|
|
324
|
+
( localize(10199, "Type")),
|
|
360
325
|
];
|
|
361
326
|
const rows = ( (contrib.map(d => {
|
|
362
327
|
return [
|
|
@@ -375,7 +340,7 @@ class DebuggersDataRenderer extends Disposable {
|
|
|
375
340
|
}
|
|
376
341
|
( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
377
342
|
id: 'debuggers',
|
|
378
|
-
label: (
|
|
343
|
+
label: ( localize(10200, "Debuggers")),
|
|
379
344
|
access: {
|
|
380
345
|
canToggle: false
|
|
381
346
|
},
|
|
@@ -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 { isObject } from 'vscode/vscode/vs/base/common/types';
|
|
4
4
|
import { DebugConfigurationProviderTriggerKind, debuggerDisabledMessage } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
5
5
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
@@ -16,7 +16,6 @@ import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/cont
|
|
|
16
16
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
17
17
|
import { filter } from 'vscode/vscode/vs/base/common/objects';
|
|
18
18
|
|
|
19
|
-
const _moduleId = "vs/workbench/contrib/debug/common/debugger";
|
|
20
19
|
let Debugger = class Debugger {
|
|
21
20
|
constructor(adapterManager, dbgContribution, extensionDescription, configurationService, resourcePropertiesService, configurationResolverService, environmentService, debugService, contextKeyService) {
|
|
22
21
|
this.adapterManager = adapterManager;
|
|
@@ -79,9 +78,7 @@ let Debugger = class Debugger {
|
|
|
79
78
|
if (da) {
|
|
80
79
|
return Promise.resolve(da);
|
|
81
80
|
}
|
|
82
|
-
throw ( (new Error(
|
|
83
|
-
localizeWithPath(_moduleId, 0, "Cannot find debug adapter for type '{0}'.", this.type)
|
|
84
|
-
)));
|
|
81
|
+
throw ( (new Error(localize(10147, "Cannot find debug adapter for type '{0}'.", this.type))));
|
|
85
82
|
}
|
|
86
83
|
async substituteVariables(folder, config) {
|
|
87
84
|
const substitutedConfig = await this.adapterManager.substituteVariables(this.type, folder, config);
|
|
@@ -142,11 +139,10 @@ let Debugger = class Debugger {
|
|
|
142
139
|
}
|
|
143
140
|
const eol = this.resourcePropertiesService.getEOL(( (URI.from({ scheme: Schemas.untitled, path: '1' })))) === '\r\n' ? '\r\n' : '\n';
|
|
144
141
|
const configs = ( (JSON.stringify(initialConfigurations, null, '\t').split('\n').map(line => '\t' + line))).join(eol).trim();
|
|
145
|
-
const comment1 = (
|
|
146
|
-
const comment2 = (
|
|
147
|
-
const comment3 = (
|
|
148
|
-
|
|
149
|
-
3,
|
|
142
|
+
const comment1 = ( localize(10148, "Use IntelliSense to learn about possible attributes."));
|
|
143
|
+
const comment2 = ( localize(10149, "Hover to view descriptions of existing attributes."));
|
|
144
|
+
const comment3 = ( localize(
|
|
145
|
+
10150,
|
|
150
146
|
"For more information, visit: {0}",
|
|
151
147
|
'https://go.microsoft.com/fwlink/?linkid=830387'
|
|
152
148
|
));
|
|
@@ -200,28 +196,22 @@ let Debugger = class Debugger {
|
|
|
200
196
|
properties['type'] = {
|
|
201
197
|
enum: [this.type],
|
|
202
198
|
enumDescriptions: [this.label],
|
|
203
|
-
description: (
|
|
199
|
+
description: ( localize(10151, "Type of configuration.")),
|
|
204
200
|
pattern: '^(?!node2)',
|
|
205
201
|
deprecationMessage: this.debuggerContribution.deprecated || (this.enabled ? undefined : debuggerDisabledMessage(this.type)),
|
|
206
202
|
doNotSuggest: !!this.debuggerContribution.deprecated,
|
|
207
|
-
errorMessage: (
|
|
208
|
-
|
|
209
|
-
5,
|
|
203
|
+
errorMessage: ( localize(
|
|
204
|
+
10152,
|
|
210
205
|
"The debug type is not recognized. Make sure that you have a corresponding debug extension installed and that it is enabled."
|
|
211
206
|
)),
|
|
212
|
-
patternErrorMessage: (
|
|
213
|
-
|
|
214
|
-
6,
|
|
207
|
+
patternErrorMessage: ( localize(
|
|
208
|
+
10153,
|
|
215
209
|
"\"node2\" is no longer supported, use \"node\" instead and set the \"protocol\" attribute to \"inspector\"."
|
|
216
210
|
))
|
|
217
211
|
};
|
|
218
212
|
properties['request'] = {
|
|
219
213
|
enum: [request],
|
|
220
|
-
description: (
|
|
221
|
-
_moduleId,
|
|
222
|
-
7,
|
|
223
|
-
"Request type of configuration. Can be \"launch\" or \"attach\"."
|
|
224
|
-
)),
|
|
214
|
+
description: ( localize(10154, "Request type of configuration. Can be \"launch\" or \"attach\".")),
|
|
225
215
|
};
|
|
226
216
|
for (const prop in definitions['common'].properties) {
|
|
227
217
|
properties[prop] = {
|
|
@@ -243,15 +233,15 @@ let Debugger = class Debugger {
|
|
|
243
233
|
...{
|
|
244
234
|
windows: {
|
|
245
235
|
$ref: `#/definitions/${platformSpecificDefinitionId}`,
|
|
246
|
-
description: (
|
|
236
|
+
description: ( localize(10155, "Windows specific launch configuration attributes.")),
|
|
247
237
|
},
|
|
248
238
|
osx: {
|
|
249
239
|
$ref: `#/definitions/${platformSpecificDefinitionId}`,
|
|
250
|
-
description: (
|
|
240
|
+
description: ( localize(10156, "OS X specific launch configuration attributes.")),
|
|
251
241
|
},
|
|
252
242
|
linux: {
|
|
253
243
|
$ref: `#/definitions/${platformSpecificDefinitionId}`,
|
|
254
|
-
description: (
|
|
244
|
+
description: ( localize(10157, "Linux specific launch configuration attributes.")),
|
|
255
245
|
}
|
|
256
246
|
}
|
|
257
247
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
+
import { IAccessibilityService } from 'vscode/vscode/vs/platform/accessibility/common/accessibility.service';
|
|
4
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
5
|
+
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
6
|
+
|
|
7
|
+
let ReplAccessibilityAnnouncer = class ReplAccessibilityAnnouncer extends Disposable {
|
|
8
|
+
static { this.ID = 'debug.replAccessibilityAnnouncer'; }
|
|
9
|
+
constructor(debugService, accessibilityService, logService) {
|
|
10
|
+
super();
|
|
11
|
+
const viewModel = debugService.getViewModel();
|
|
12
|
+
this._register(viewModel.onDidFocusSession((session) => {
|
|
13
|
+
if (!session) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
this._register(session.onDidChangeReplElements((element) => {
|
|
17
|
+
if (!element || !('originalExpression' in element)) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const value = ( element.toString());
|
|
21
|
+
accessibilityService.status(value);
|
|
22
|
+
logService.trace('ReplAccessibilityAnnouncer#onDidChangeReplElements', element.originalExpression + ': ' + value);
|
|
23
|
+
}));
|
|
24
|
+
}));
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
ReplAccessibilityAnnouncer = ( __decorate([
|
|
28
|
+
( __param(0, IDebugService)),
|
|
29
|
+
( __param(1, IAccessibilityService)),
|
|
30
|
+
( __param(2, ILogService))
|
|
31
|
+
], ReplAccessibilityAnnouncer));
|
|
32
|
+
|
|
33
|
+
export { ReplAccessibilityAnnouncer };
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
2
2
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
3
|
-
import {
|
|
3
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
4
4
|
import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
5
5
|
import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/clipboardService.service';
|
|
6
6
|
import { INotebookKernelService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
7
7
|
import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
8
8
|
|
|
9
|
-
const _moduleId = "vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands";
|
|
10
9
|
const COPY_NOTEBOOK_VARIABLE_VALUE_ID = 'workbench.debug.viewlet.action.copyWorkspaceVariableValue';
|
|
11
|
-
const COPY_NOTEBOOK_VARIABLE_VALUE_LABEL = (
|
|
10
|
+
const COPY_NOTEBOOK_VARIABLE_VALUE_LABEL = ( localize(6077, "Copy Value"));
|
|
12
11
|
registerAction2(class extends Action2 {
|
|
13
12
|
constructor() {
|
|
14
13
|
super({
|
|
@@ -28,7 +27,7 @@ registerAction2(class extends Action2 {
|
|
|
28
27
|
constructor() {
|
|
29
28
|
super({
|
|
30
29
|
id: '_executeNotebookVariableProvider',
|
|
31
|
-
title: (
|
|
30
|
+
title: ( localize(6078, "Execute Notebook Variable Provider")),
|
|
32
31
|
f1: false,
|
|
33
32
|
});
|
|
34
33
|
}
|