@codingame/monaco-vscode-debug-service-override 25.1.2 → 26.0.1

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.
Files changed (43) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +41 -29
  3. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +379 -255
  4. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +606 -325
  5. package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +132 -91
  6. package/vscode/src/vs/workbench/contrib/debug/browser/debugChatIntegration.js +105 -103
  7. package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +258 -147
  8. package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +14 -10
  9. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +163 -121
  10. package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +92 -41
  11. package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +13 -12
  12. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +68 -39
  13. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +290 -214
  14. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +409 -260
  15. package/vscode/src/vs/workbench/contrib/debug/browser/debugSettingMigration.js +14 -12
  16. package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +19 -21
  17. package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +126 -100
  18. package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.js +8 -9
  19. package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +160 -89
  20. package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +87 -71
  21. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +270 -181
  22. package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +79 -48
  23. package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +149 -113
  24. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css +24 -3
  25. package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +201 -189
  26. package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +28 -35
  27. package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.js +10 -12
  28. package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +66 -86
  29. package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +24 -31
  30. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +177 -138
  31. package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +55 -33
  32. package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +2 -4
  33. package/vscode/src/vs/workbench/contrib/debug/common/debugAccessibilityAnnouncer.js +8 -12
  34. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +23 -19
  35. package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +9 -15
  36. package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +156 -133
  37. package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +81 -52
  38. package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +3 -5
  39. package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +22 -14
  40. package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +46 -30
  41. package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +74 -52
  42. package/vscode/src/vs/workbench/contrib/debug/common/replAccessibilityAnnouncer.js +11 -10
  43. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +7 -7
@@ -9,134 +9,144 @@ import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/
9
9
  import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
10
10
 
11
11
  const debuggersExtPoint = ExtensionsRegistry.registerExtensionPoint({
12
- extensionPoint: 'debuggers',
13
- defaultExtensionKind: ['workspace'],
12
+ extensionPoint: "debuggers",
13
+ defaultExtensionKind: ["workspace"],
14
14
  jsonSchema: {
15
- description: ( localize(7117, 'Contributes debug adapters.')),
16
- type: 'array',
17
- defaultSnippets: [{ body: [{ type: '' }] }],
15
+ description: ( localize(7428, "Contributes debug adapters.")),
16
+ type: "array",
17
+ defaultSnippets: [{
18
+ body: [{
19
+ type: ""
20
+ }]
21
+ }],
18
22
  items: {
19
23
  additionalProperties: false,
20
- type: 'object',
21
- defaultSnippets: [{ body: { type: '', program: '', runtime: '' } }],
24
+ type: "object",
25
+ defaultSnippets: [{
26
+ body: {
27
+ type: "",
28
+ program: "",
29
+ runtime: ""
30
+ }
31
+ }],
22
32
  properties: {
23
33
  type: {
24
- description: ( localize(7118, "Unique identifier for this debug adapter.")),
25
- type: 'string'
34
+ description: ( localize(7429, "Unique identifier for this debug adapter.")),
35
+ type: "string"
26
36
  },
27
37
  label: {
28
- description: ( localize(7119, "Display name for this debug adapter.")),
29
- type: 'string'
38
+ description: ( localize(7430, "Display name for this debug adapter.")),
39
+ type: "string"
30
40
  },
31
41
  program: {
32
42
  description: ( localize(
33
- 7120,
43
+ 7431,
34
44
  "Path to the debug adapter program. Path is either absolute or relative to the extension folder."
35
45
  )),
36
- type: 'string'
46
+ type: "string"
37
47
  },
38
48
  args: {
39
- description: ( localize(7121, "Optional arguments to pass to the adapter.")),
40
- type: 'array'
49
+ description: ( localize(7432, "Optional arguments to pass to the adapter.")),
50
+ type: "array"
41
51
  },
42
52
  runtime: {
43
53
  description: ( localize(
44
- 7122,
54
+ 7433,
45
55
  "Optional runtime in case the program attribute is not an executable but requires a runtime."
46
56
  )),
47
- type: 'string'
57
+ type: "string"
48
58
  },
49
59
  runtimeArgs: {
50
- description: ( localize(7123, "Optional runtime arguments.")),
51
- type: 'array'
60
+ description: ( localize(7434, "Optional runtime arguments.")),
61
+ type: "array"
52
62
  },
53
63
  variables: {
54
64
  description: ( localize(
55
- 7124,
65
+ 7435,
56
66
  "Mapping from interactive variables (e.g. ${action.pickProcess}) in `launch.json` to a command."
57
67
  )),
58
- type: 'object'
68
+ type: "object"
59
69
  },
60
70
  initialConfigurations: {
61
- description: ( localize(7125, "Configurations for generating the initial \'launch.json\'.")),
62
- type: ['array', 'string'],
71
+ description: ( localize(7436, "Configurations for generating the initial 'launch.json'.")),
72
+ type: ["array", "string"]
63
73
  },
64
74
  languages: {
65
75
  description: ( localize(
66
- 7126,
76
+ 7437,
67
77
  "List of languages for which the debug extension could be considered the \"default debugger\"."
68
78
  )),
69
- type: 'array'
79
+ type: "array"
70
80
  },
71
81
  configurationSnippets: {
72
- description: ( localize(7127, "Snippets for adding new configurations in \'launch.json\'.")),
73
- type: 'array'
82
+ description: ( localize(7438, "Snippets for adding new configurations in 'launch.json'.")),
83
+ type: "array"
74
84
  },
75
85
  configurationAttributes: {
76
- description: ( localize(7128, "JSON schema configurations for validating \'launch.json\'.")),
77
- type: 'object'
86
+ description: ( localize(7439, "JSON schema configurations for validating 'launch.json'.")),
87
+ type: "object"
78
88
  },
79
89
  when: {
80
90
  description: ( localize(
81
- 7129,
91
+ 7440,
82
92
  "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."
83
93
  )),
84
- type: 'string',
85
- default: ''
94
+ type: "string",
95
+ default: ""
86
96
  },
87
97
  hiddenWhen: {
88
98
  description: ( localize(
89
- 7130,
99
+ 7441,
90
100
  "When this condition is true, this debugger type is hidden from the debugger list, but is still enabled."
91
101
  )),
92
- type: 'string',
93
- default: ''
102
+ type: "string",
103
+ default: ""
94
104
  },
95
105
  deprecated: {
96
- description: ( localize(7131, "Optional message to mark this debug type as being deprecated.")),
97
- type: 'string',
98
- default: ''
106
+ description: ( localize(7442, "Optional message to mark this debug type as being deprecated.")),
107
+ type: "string",
108
+ default: ""
99
109
  },
100
110
  windows: {
101
- description: ( localize(7132, "Windows specific settings.")),
102
- type: 'object',
111
+ description: ( localize(7443, "Windows specific settings.")),
112
+ type: "object",
103
113
  properties: {
104
114
  runtime: {
105
- description: ( localize(7133, "Runtime used for Windows.")),
106
- type: 'string'
115
+ description: ( localize(7444, "Runtime used for Windows.")),
116
+ type: "string"
107
117
  }
108
118
  }
109
119
  },
110
120
  osx: {
111
- description: ( localize(7134, "macOS specific settings.")),
112
- type: 'object',
121
+ description: ( localize(7445, "macOS specific settings.")),
122
+ type: "object",
113
123
  properties: {
114
124
  runtime: {
115
- description: ( localize(7135, "Runtime used for macOS.")),
116
- type: 'string'
125
+ description: ( localize(7446, "Runtime used for macOS.")),
126
+ type: "string"
117
127
  }
118
128
  }
119
129
  },
120
130
  linux: {
121
- description: ( localize(7136, "Linux specific settings.")),
122
- type: 'object',
131
+ description: ( localize(7447, "Linux specific settings.")),
132
+ type: "object",
123
133
  properties: {
124
134
  runtime: {
125
- description: ( localize(7137, "Runtime used for Linux.")),
126
- type: 'string'
135
+ description: ( localize(7448, "Runtime used for Linux.")),
136
+ type: "string"
127
137
  }
128
138
  }
129
139
  },
130
140
  strings: {
131
- description: ( localize(7138, "UI strings contributed by this debug adapter.")),
132
- type: 'object',
141
+ description: ( localize(7449, "UI strings contributed by this debug adapter.")),
142
+ type: "object",
133
143
  properties: {
134
144
  unverifiedBreakpoints: {
135
145
  description: ( localize(
136
- 7139,
146
+ 7450,
137
147
  "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."
138
148
  )),
139
- type: 'string'
149
+ type: "string"
140
150
  }
141
151
  }
142
152
  }
@@ -145,164 +155,177 @@ const debuggersExtPoint = ExtensionsRegistry.registerExtensionPoint({
145
155
  }
146
156
  });
147
157
  const breakpointsExtPoint = ExtensionsRegistry.registerExtensionPoint({
148
- extensionPoint: 'breakpoints',
158
+ extensionPoint: "breakpoints",
149
159
  jsonSchema: {
150
- description: ( localize(7140, 'Contributes breakpoints.')),
151
- type: 'array',
152
- defaultSnippets: [{ body: [{ language: '' }] }],
160
+ description: ( localize(7451, "Contributes breakpoints.")),
161
+ type: "array",
162
+ defaultSnippets: [{
163
+ body: [{
164
+ language: ""
165
+ }]
166
+ }],
153
167
  items: {
154
- type: 'object',
168
+ type: "object",
155
169
  additionalProperties: false,
156
- defaultSnippets: [{ body: { language: '' } }],
170
+ defaultSnippets: [{
171
+ body: {
172
+ language: ""
173
+ }
174
+ }],
157
175
  properties: {
158
176
  language: {
159
- description: ( localize(7141, "Allow breakpoints for this language.")),
160
- type: 'string'
177
+ description: ( localize(7452, "Allow breakpoints for this language.")),
178
+ type: "string"
161
179
  },
162
180
  when: {
163
181
  description: ( localize(
164
- 7142,
182
+ 7453,
165
183
  "Condition which must be true to enable breakpoints in this language. Consider matching this to the debugger when clause as appropriate."
166
184
  )),
167
- type: 'string',
168
- default: ''
185
+ type: "string",
186
+ default: ""
169
187
  }
170
188
  }
171
189
  }
172
190
  }
173
191
  });
174
192
  const presentationSchema = {
175
- type: 'object',
193
+ type: "object",
176
194
  description: ( localize(
177
- 7143,
195
+ 7454,
178
196
  "Presentation options on how to show this configuration in the debug configuration dropdown and the command palette."
179
197
  )),
180
198
  properties: {
181
199
  hidden: {
182
- type: 'boolean',
200
+ type: "boolean",
183
201
  default: false,
184
202
  description: ( localize(
185
- 7144,
203
+ 7455,
186
204
  "Controls if this configuration should be shown in the configuration dropdown and the command palette."
187
205
  ))
188
206
  },
189
207
  group: {
190
- type: 'string',
191
- default: '',
208
+ type: "string",
209
+ default: "",
192
210
  description: ( localize(
193
- 7145,
211
+ 7456,
194
212
  "Group that this configuration belongs to. Used for grouping and sorting in the configuration dropdown and the command palette."
195
213
  ))
196
214
  },
197
215
  order: {
198
- type: 'number',
216
+ type: "number",
199
217
  default: 1,
200
218
  description: ( localize(
201
- 7146,
219
+ 7457,
202
220
  "Order of this configuration within a group. Used for grouping and sorting in the configuration dropdown and the command palette."
203
221
  ))
204
222
  }
205
223
  },
206
224
  default: {
207
225
  hidden: false,
208
- group: '',
226
+ group: "",
209
227
  order: 1
210
228
  }
211
229
  };
212
- const defaultCompound = { name: 'Compound', configurations: [] };
230
+ const defaultCompound = {
231
+ name: "Compound",
232
+ configurations: []
233
+ };
213
234
  const launchSchema = {
214
235
  id: launchSchemaId,
215
- type: 'object',
216
- title: ( localize(7147, "Launch")),
236
+ type: "object",
237
+ title: ( localize(7458, "Launch")),
217
238
  allowTrailingCommas: true,
218
239
  allowComments: true,
219
240
  required: [],
220
- default: { version: '0.2.0', configurations: [], compounds: [] },
241
+ default: {
242
+ version: "0.2.0",
243
+ configurations: [],
244
+ compounds: []
245
+ },
221
246
  properties: {
222
247
  version: {
223
- type: 'string',
224
- description: ( localize(7148, "Version of this file format.")),
225
- default: '0.2.0'
248
+ type: "string",
249
+ description: ( localize(7459, "Version of this file format.")),
250
+ default: "0.2.0"
226
251
  },
227
252
  configurations: {
228
- type: 'array',
253
+ type: "array",
229
254
  description: ( localize(
230
- 7149,
255
+ 7460,
231
256
  "List of configurations. Add new configurations or edit existing ones by using IntelliSense."
232
257
  )),
233
258
  items: {
234
259
  defaultSnippets: [],
235
- 'type': 'object',
260
+ "type": "object",
236
261
  oneOf: []
237
262
  }
238
263
  },
239
264
  compounds: {
240
- type: 'array',
265
+ type: "array",
241
266
  description: ( localize(
242
- 7150,
267
+ 7461,
243
268
  "List of compounds. Each compound references multiple configurations which will get launched together."
244
269
  )),
245
270
  items: {
246
- type: 'object',
247
- required: ['name', 'configurations'],
271
+ type: "object",
272
+ required: ["name", "configurations"],
248
273
  properties: {
249
274
  name: {
250
- type: 'string',
275
+ type: "string",
251
276
  description: ( localize(
252
- 7151,
277
+ 7462,
253
278
  "Name of compound. Appears in the launch configuration drop down menu."
254
279
  ))
255
280
  },
256
281
  presentation: presentationSchema,
257
282
  configurations: {
258
- type: 'array',
283
+ type: "array",
259
284
  default: [],
260
285
  items: {
261
286
  oneOf: [{
262
- enum: [],
263
- description: ( localize(7152, "Please use unique configuration names."))
264
- }, {
265
- type: 'object',
266
- required: ['name'],
267
- properties: {
268
- name: {
269
- enum: [],
270
- description: ( localize(
271
- 7151,
272
- "Name of compound. Appears in the launch configuration drop down menu."
273
- ))
274
- },
275
- folder: {
276
- enum: [],
277
- description: ( localize(7153, "Name of folder in which the compound is located."))
278
- }
287
+ enum: [],
288
+ description: ( localize(7463, "Please use unique configuration names."))
289
+ }, {
290
+ type: "object",
291
+ required: ["name"],
292
+ properties: {
293
+ name: {
294
+ enum: [],
295
+ description: ( localize(
296
+ 7462,
297
+ "Name of compound. Appears in the launch configuration drop down menu."
298
+ ))
299
+ },
300
+ folder: {
301
+ enum: [],
302
+ description: ( localize(7464, "Name of folder in which the compound is located."))
279
303
  }
280
- }]
304
+ }
305
+ }]
281
306
  },
282
307
  description: ( localize(
283
- 7154,
308
+ 7465,
284
309
  "Names of configurations that will be started as part of this compound."
285
310
  ))
286
311
  },
287
312
  stopAll: {
288
- type: 'boolean',
313
+ type: "boolean",
289
314
  default: false,
290
315
  description: ( localize(
291
- 7155,
316
+ 7466,
292
317
  "Controls whether manually terminating one session will stop all of the compound sessions."
293
318
  ))
294
319
  },
295
320
  preLaunchTask: {
296
- type: 'string',
297
- default: '',
298
- description: ( localize(7156, "Task to run before any of the compound configurations start."))
321
+ type: "string",
322
+ default: "",
323
+ description: ( localize(7467, "Task to run before any of the compound configurations start."))
299
324
  }
300
325
  },
301
326
  default: defaultCompound
302
327
  },
303
- default: [
304
- defaultCompound
305
- ]
328
+ default: [defaultCompound]
306
329
  },
307
330
  inputs: inputsSchema.definitions.inputs
308
331
  }
@@ -310,7 +333,7 @@ const launchSchema = {
310
333
  class DebuggersDataRenderer extends Disposable {
311
334
  constructor() {
312
335
  super(...arguments);
313
- this.type = 'table';
336
+ this.type = "table";
314
337
  }
315
338
  shouldRender(manifest) {
316
339
  return !!manifest.contributes?.debuggers;
@@ -318,34 +341,34 @@ class DebuggersDataRenderer extends Disposable {
318
341
  render(manifest) {
319
342
  const contrib = manifest.contributes?.debuggers || [];
320
343
  if (!contrib.length) {
321
- return { data: { headers: [], rows: [] }, dispose: () => { } };
344
+ return {
345
+ data: {
346
+ headers: [],
347
+ rows: []
348
+ },
349
+ dispose: () => {}
350
+ };
322
351
  }
323
- const headers = [
324
- ( localize(7157, "Name")),
325
- ( localize(7158, "Type")),
326
- ];
352
+ const headers = [( localize(7468, "Name")), ( localize(7469, "Type"))];
327
353
  const rows = ( contrib.map(d => {
328
- return [
329
- d.label ?? '',
330
- d.type
331
- ];
354
+ return [d.label ?? "", d.type];
332
355
  }));
333
356
  return {
334
357
  data: {
335
358
  headers,
336
359
  rows
337
360
  },
338
- dispose: () => { }
361
+ dispose: () => {}
339
362
  };
340
363
  }
341
364
  }
342
365
  ( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
343
- id: 'debuggers',
344
- label: ( localize(7159, "Debuggers")),
366
+ id: "debuggers",
367
+ label: ( localize(7470, "Debuggers")),
345
368
  access: {
346
369
  canToggle: false
347
370
  },
348
- renderer: ( new SyncDescriptor(DebuggersDataRenderer)),
371
+ renderer: ( new SyncDescriptor(DebuggersDataRenderer))
349
372
  });
350
373
 
351
374
  export { breakpointsExtPoint, debuggersExtPoint, launchSchema, presentationSchema };