@codingame/monaco-vscode-debug-service-override 1.83.2 → 1.83.3

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 (48) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +2 -2
  3. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +90 -68
  4. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +5 -26
  5. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +61 -104
  6. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +3 -9
  7. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +29 -51
  8. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +190 -203
  9. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +4 -4
  10. package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +11 -31
  11. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +32 -32
  12. package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +5 -5
  13. package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +3 -3
  14. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +21 -48
  15. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +2 -5
  16. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +3 -12
  17. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +11 -15
  18. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +28 -80
  19. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +56 -68
  20. package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -8
  21. package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
  22. package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +17 -50
  23. package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.js +31 -0
  24. package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +9 -4
  25. package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +12 -4
  26. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +8 -8
  27. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +13 -11
  28. package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +4 -4
  29. package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +6 -25
  30. package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +9 -12
  31. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +15 -21
  32. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +6 -20
  33. package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +5 -17
  34. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +10 -18
  35. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +10 -13
  36. package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +61 -6
  37. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +6 -9
  38. package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -12
  39. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +21 -13
  40. package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +41 -143
  41. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
  42. package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +11 -36
  43. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
  44. package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
  45. package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
  46. package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +11 -16
  47. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -49
  48. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -4
@@ -7,7 +7,7 @@ const debuggersExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
7
7
  extensionPoint: 'debuggers',
8
8
  defaultExtensionKind: ['workspace'],
9
9
  jsonSchema: {
10
- description: ( nls.localize('vscode.extension.contributes.debuggers', 'Contributes debug adapters.')),
10
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers', 'Contributes debug adapters.'),
11
11
  type: 'array',
12
12
  defaultSnippets: [{ body: [{ type: '' }] }],
13
13
  items: {
@@ -16,160 +16,100 @@ const debuggersExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
16
16
  defaultSnippets: [{ body: { type: '', program: '', runtime: '' } }],
17
17
  properties: {
18
18
  type: {
19
- description: ( nls.localize(
20
- 'vscode.extension.contributes.debuggers.type',
21
- "Unique identifier for this debug adapter."
22
- )),
19
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers.type', "Unique identifier for this debug adapter."),
23
20
  type: 'string'
24
21
  },
25
22
  label: {
26
- description: ( nls.localize(
27
- 'vscode.extension.contributes.debuggers.label',
28
- "Display name for this debug adapter."
29
- )),
23
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers.label', "Display name for this debug adapter."),
30
24
  type: 'string'
31
25
  },
32
26
  program: {
33
- description: ( nls.localize(
34
- 'vscode.extension.contributes.debuggers.program',
35
- "Path to the debug adapter program. Path is either absolute or relative to the extension folder."
36
- )),
27
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers.program', "Path to the debug adapter program. Path is either absolute or relative to the extension folder."),
37
28
  type: 'string'
38
29
  },
39
30
  args: {
40
- description: ( nls.localize(
41
- 'vscode.extension.contributes.debuggers.args',
42
- "Optional arguments to pass to the adapter."
43
- )),
31
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers.args', "Optional arguments to pass to the adapter."),
44
32
  type: 'array'
45
33
  },
46
34
  runtime: {
47
- description: ( nls.localize(
48
- 'vscode.extension.contributes.debuggers.runtime',
49
- "Optional runtime in case the program attribute is not an executable but requires a runtime."
50
- )),
35
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers.runtime', "Optional runtime in case the program attribute is not an executable but requires a runtime."),
51
36
  type: 'string'
52
37
  },
53
38
  runtimeArgs: {
54
- description: ( nls.localize(
55
- 'vscode.extension.contributes.debuggers.runtimeArgs',
56
- "Optional runtime arguments."
57
- )),
39
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers.runtimeArgs', "Optional runtime arguments."),
58
40
  type: 'array'
59
41
  },
60
42
  variables: {
61
- description: ( nls.localize(
62
- 'vscode.extension.contributes.debuggers.variables',
63
- "Mapping from interactive variables (e.g. ${action.pickProcess}) in `launch.json` to a command."
64
- )),
43
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers.variables', "Mapping from interactive variables (e.g. ${action.pickProcess}) in `launch.json` to a command."),
65
44
  type: 'object'
66
45
  },
67
46
  initialConfigurations: {
68
- description: ( nls.localize(
69
- 'vscode.extension.contributes.debuggers.initialConfigurations',
70
- "Configurations for generating the initial \'launch.json\'."
71
- )),
47
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers.initialConfigurations', "Configurations for generating the initial \'launch.json\'."),
72
48
  type: ['array', 'string'],
73
49
  },
74
50
  languages: {
75
- description: ( nls.localize(
76
- 'vscode.extension.contributes.debuggers.languages',
77
- "List of languages for which the debug extension could be considered the \"default debugger\"."
78
- )),
51
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers.languages', "List of languages for which the debug extension could be considered the \"default debugger\"."),
79
52
  type: 'array'
80
53
  },
81
54
  configurationSnippets: {
82
- description: ( nls.localize(
83
- 'vscode.extension.contributes.debuggers.configurationSnippets',
84
- "Snippets for adding new configurations in \'launch.json\'."
85
- )),
55
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers.configurationSnippets', "Snippets for adding new configurations in \'launch.json\'."),
86
56
  type: 'array'
87
57
  },
88
58
  configurationAttributes: {
89
- description: ( nls.localize(
90
- 'vscode.extension.contributes.debuggers.configurationAttributes',
91
- "JSON schema configurations for validating \'launch.json\'."
92
- )),
59
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers.configurationAttributes', "JSON schema configurations for validating \'launch.json\'."),
93
60
  type: 'object'
94
61
  },
95
62
  when: {
96
- description: ( nls.localize(
97
- 'vscode.extension.contributes.debuggers.when',
98
- "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."
99
- )),
63
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers.when', "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."),
100
64
  type: 'string',
101
65
  default: ''
102
66
  },
103
67
  hiddenWhen: {
104
- description: ( nls.localize(
105
- 'vscode.extension.contributes.debuggers.hiddenWhen',
106
- "When this condition is true, this debugger type is hidden from the debugger list, but is still enabled."
107
- )),
68
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers.hiddenWhen', "When this condition is true, this debugger type is hidden from the debugger list, but is still enabled."),
108
69
  type: 'string',
109
70
  default: ''
110
71
  },
111
72
  deprecated: {
112
- description: ( nls.localize(
113
- 'vscode.extension.contributes.debuggers.deprecated',
114
- "Optional message to mark this debug type as being deprecated."
115
- )),
73
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers.deprecated', "Optional message to mark this debug type as being deprecated."),
116
74
  type: 'string',
117
75
  default: ''
118
76
  },
119
77
  windows: {
120
- description: ( nls.localize(
121
- 'vscode.extension.contributes.debuggers.windows',
122
- "Windows specific settings."
123
- )),
78
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers.windows', "Windows specific settings."),
124
79
  type: 'object',
125
80
  properties: {
126
81
  runtime: {
127
- description: ( nls.localize(
128
- 'vscode.extension.contributes.debuggers.windows.runtime',
129
- "Runtime used for Windows."
130
- )),
82
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers.windows.runtime', "Runtime used for Windows."),
131
83
  type: 'string'
132
84
  }
133
85
  }
134
86
  },
135
87
  osx: {
136
- description: ( nls.localize('vscode.extension.contributes.debuggers.osx', "macOS specific settings.")),
88
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers.osx', "macOS specific settings."),
137
89
  type: 'object',
138
90
  properties: {
139
91
  runtime: {
140
- description: ( nls.localize(
141
- 'vscode.extension.contributes.debuggers.osx.runtime',
142
- "Runtime used for macOS."
143
- )),
92
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers.osx.runtime', "Runtime used for macOS."),
144
93
  type: 'string'
145
94
  }
146
95
  }
147
96
  },
148
97
  linux: {
149
- description: ( nls.localize('vscode.extension.contributes.debuggers.linux', "Linux specific settings.")),
98
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers.linux', "Linux specific settings."),
150
99
  type: 'object',
151
100
  properties: {
152
101
  runtime: {
153
- description: ( nls.localize(
154
- 'vscode.extension.contributes.debuggers.linux.runtime',
155
- "Runtime used for Linux."
156
- )),
102
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers.linux.runtime', "Runtime used for Linux."),
157
103
  type: 'string'
158
104
  }
159
105
  }
160
106
  },
161
107
  strings: {
162
- description: ( nls.localize(
163
- 'vscode.extension.contributes.debuggers.strings',
164
- "UI strings contributed by this debug adapter."
165
- )),
108
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers.strings', "UI strings contributed by this debug adapter."),
166
109
  type: 'object',
167
110
  properties: {
168
111
  unverifiedBreakpoints: {
169
- description: ( nls.localize(
170
- 'vscode.extension.contributes.debuggers.strings.unverifiedBreakpoints',
171
- "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."
172
- )),
112
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.debuggers.strings.unverifiedBreakpoints', "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."),
173
113
  type: 'string'
174
114
  }
175
115
  }
@@ -181,7 +121,7 @@ const debuggersExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
181
121
  const breakpointsExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
182
122
  extensionPoint: 'breakpoints',
183
123
  jsonSchema: {
184
- description: ( nls.localize('vscode.extension.contributes.breakpoints', 'Contributes breakpoints.')),
124
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.breakpoints', 'Contributes breakpoints.'),
185
125
  type: 'array',
186
126
  defaultSnippets: [{ body: [{ language: '' }] }],
187
127
  items: {
@@ -190,17 +130,11 @@ const breakpointsExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
190
130
  defaultSnippets: [{ body: { language: '' } }],
191
131
  properties: {
192
132
  language: {
193
- description: ( nls.localize(
194
- 'vscode.extension.contributes.breakpoints.language',
195
- "Allow breakpoints for this language."
196
- )),
133
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.breakpoints.language', "Allow breakpoints for this language."),
197
134
  type: 'string'
198
135
  },
199
136
  when: {
200
- description: ( nls.localize(
201
- 'vscode.extension.contributes.breakpoints.when',
202
- "Condition which must be true to enable breakpoints in this language. Consider matching this to the debugger when clause as appropriate."
203
- )),
137
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'vscode.extension.contributes.breakpoints.when', "Condition which must be true to enable breakpoints in this language. Consider matching this to the debugger when clause as appropriate."),
204
138
  type: 'string',
205
139
  default: ''
206
140
  }
@@ -210,34 +144,22 @@ const breakpointsExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
210
144
  }));
211
145
  const presentationSchema = {
212
146
  type: 'object',
213
- description: ( nls.localize(
214
- 'presentation',
215
- "Presentation options on how to show this configuration in the debug configuration dropdown and the command palette."
216
- )),
147
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'presentation', "Presentation options on how to show this configuration in the debug configuration dropdown and the command palette."),
217
148
  properties: {
218
149
  hidden: {
219
150
  type: 'boolean',
220
151
  default: false,
221
- description: ( nls.localize(
222
- 'presentation.hidden',
223
- "Controls if this configuration should be shown in the configuration dropdown and the command palette."
224
- ))
152
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'presentation.hidden', "Controls if this configuration should be shown in the configuration dropdown and the command palette.")
225
153
  },
226
154
  group: {
227
155
  type: 'string',
228
156
  default: '',
229
- description: ( nls.localize(
230
- 'presentation.group',
231
- "Group that this configuration belongs to. Used for grouping and sorting in the configuration dropdown and the command palette."
232
- ))
157
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'presentation.group', "Group that this configuration belongs to. Used for grouping and sorting in the configuration dropdown and the command palette.")
233
158
  },
234
159
  order: {
235
160
  type: 'number',
236
161
  default: 1,
237
- description: ( nls.localize(
238
- 'presentation.order',
239
- "Order of this configuration within a group. Used for grouping and sorting in the configuration dropdown and the command palette."
240
- ))
162
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'presentation.order', "Order of this configuration within a group. Used for grouping and sorting in the configuration dropdown and the command palette.")
241
163
  }
242
164
  },
243
165
  default: {
@@ -250,7 +172,7 @@ const defaultCompound = { name: 'Compound', configurations: [] };
250
172
  const launchSchema = {
251
173
  id: launchSchemaId,
252
174
  type: 'object',
253
- title: ( nls.localize('app.launch.json.title', "Launch")),
175
+ title: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'app.launch.json.title', "Launch"),
254
176
  allowTrailingCommas: true,
255
177
  allowComments: true,
256
178
  required: [],
@@ -258,15 +180,12 @@ const launchSchema = {
258
180
  properties: {
259
181
  version: {
260
182
  type: 'string',
261
- description: ( nls.localize('app.launch.json.version', "Version of this file format.")),
183
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'app.launch.json.version', "Version of this file format."),
262
184
  default: '0.2.0'
263
185
  },
264
186
  configurations: {
265
187
  type: 'array',
266
- description: ( nls.localize(
267
- 'app.launch.json.configurations',
268
- "List of configurations. Add new configurations or edit existing ones by using IntelliSense."
269
- )),
188
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'app.launch.json.configurations', "List of configurations. Add new configurations or edit existing ones by using IntelliSense."),
270
189
  items: {
271
190
  defaultSnippets: [],
272
191
  'type': 'object',
@@ -275,20 +194,14 @@ const launchSchema = {
275
194
  },
276
195
  compounds: {
277
196
  type: 'array',
278
- description: ( nls.localize(
279
- 'app.launch.json.compounds',
280
- "List of compounds. Each compound references multiple configurations which will get launched together."
281
- )),
197
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'app.launch.json.compounds', "List of compounds. Each compound references multiple configurations which will get launched together."),
282
198
  items: {
283
199
  type: 'object',
284
200
  required: ['name', 'configurations'],
285
201
  properties: {
286
202
  name: {
287
203
  type: 'string',
288
- description: ( nls.localize(
289
- 'app.launch.json.compound.name',
290
- "Name of compound. Appears in the launch configuration drop down menu."
291
- ))
204
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'app.launch.json.compound.name', "Name of compound. Appears in the launch configuration drop down menu.")
292
205
  },
293
206
  presentation: presentationSchema,
294
207
  configurations: {
@@ -297,48 +210,33 @@ const launchSchema = {
297
210
  items: {
298
211
  oneOf: [{
299
212
  enum: [],
300
- description: ( nls.localize('useUniqueNames', "Please use unique configuration names."))
213
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'useUniqueNames', "Please use unique configuration names.")
301
214
  }, {
302
215
  type: 'object',
303
216
  required: ['name'],
304
217
  properties: {
305
218
  name: {
306
219
  enum: [],
307
- description: ( nls.localize(
308
- 'app.launch.json.compound.name',
309
- "Name of compound. Appears in the launch configuration drop down menu."
310
- ))
220
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'app.launch.json.compound.name', "Name of compound. Appears in the launch configuration drop down menu.")
311
221
  },
312
222
  folder: {
313
223
  enum: [],
314
- description: ( nls.localize(
315
- 'app.launch.json.compound.folder',
316
- "Name of folder in which the compound is located."
317
- ))
224
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'app.launch.json.compound.folder', "Name of folder in which the compound is located.")
318
225
  }
319
226
  }
320
227
  }]
321
228
  },
322
- description: ( nls.localize(
323
- 'app.launch.json.compounds.configurations',
324
- "Names of configurations that will be started as part of this compound."
325
- ))
229
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'app.launch.json.compounds.configurations', "Names of configurations that will be started as part of this compound.")
326
230
  },
327
231
  stopAll: {
328
232
  type: 'boolean',
329
233
  default: false,
330
- description: ( nls.localize(
331
- 'app.launch.json.compound.stopAll',
332
- "Controls whether manually terminating one session will stop all of the compound sessions."
333
- ))
234
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'app.launch.json.compound.stopAll', "Controls whether manually terminating one session will stop all of the compound sessions.")
334
235
  },
335
236
  preLaunchTask: {
336
237
  type: 'string',
337
238
  default: '',
338
- description: ( nls.localize(
339
- 'compoundPrelaunchTask',
340
- "Task to run before any of the compound configurations start."
341
- ))
239
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'compoundPrelaunchTask', "Task to run before any of the compound configurations start.")
342
240
  }
343
241
  },
344
242
  default: defaultCompound
@@ -7,7 +7,7 @@ import { SIDE_GROUP, ACTIVE_GROUP } from 'vscode/vscode/vs/workbench/services/ed
7
7
  import { Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
8
8
  import { isUri } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugUtils';
9
9
 
10
- const UNKNOWN_SOURCE_LABEL = ( nls.localize('unknownSource', "Unknown Source"));
10
+ const UNKNOWN_SOURCE_LABEL = nls.localizeWithPath('vs/workbench/contrib/debug/common/debugSource', 'unknownSource', "Unknown Source");
11
11
  class Source {
12
12
  constructor(raw_, sessionId, uriIdentityService, logService) {
13
13
  let path;
@@ -76,7 +76,7 @@ let Debugger = class Debugger {
76
76
  if (da) {
77
77
  return Promise.resolve(da);
78
78
  }
79
- throw new Error(nls.localize('cannot.find.da', "Cannot find debug adapter for type '{0}'.", this.type));
79
+ throw new Error(nls.localizeWithPath('vs/workbench/contrib/debug/common/debugger', 'cannot.find.da', "Cannot find debug adapter for type '{0}'.", this.type));
80
80
  }
81
81
  async substituteVariables(folder, config) {
82
82
  const substitutedConfig = await this.adapterManager.substituteVariables(this.type, folder, config);
@@ -134,19 +134,9 @@ let Debugger = class Debugger {
134
134
  }
135
135
  const eol = this.resourcePropertiesService.getEOL(( URI.from({ scheme: Schemas.untitled, path: '1' }))) === '\r\n' ? '\r\n' : '\n';
136
136
  const configs = ( JSON.stringify(initialConfigurations, null, '\t').split('\n').map(line => '\t' + line)).join(eol).trim();
137
- const comment1 = ( nls.localize(
138
- 'launch.config.comment1',
139
- "Use IntelliSense to learn about possible attributes."
140
- ));
141
- const comment2 = ( nls.localize(
142
- 'launch.config.comment2',
143
- "Hover to view descriptions of existing attributes."
144
- ));
145
- const comment3 = ( nls.localize(
146
- 'launch.config.comment3',
147
- "For more information, visit: {0}",
148
- 'https://go.microsoft.com/fwlink/?linkid=830387'
149
- ));
137
+ const comment1 = nls.localizeWithPath('vs/workbench/contrib/debug/common/debugger', 'launch.config.comment1', "Use IntelliSense to learn about possible attributes.");
138
+ const comment2 = nls.localizeWithPath('vs/workbench/contrib/debug/common/debugger', 'launch.config.comment2', "Hover to view descriptions of existing attributes.");
139
+ const comment3 = nls.localizeWithPath('vs/workbench/contrib/debug/common/debugger', 'launch.config.comment3', "For more information, visit: {0}", 'https://go.microsoft.com/fwlink/?linkid=830387');
150
140
  let content = [
151
141
  '{',
152
142
  `\t// ${comment1}`,
@@ -196,25 +186,16 @@ let Debugger = class Debugger {
196
186
  properties['type'] = {
197
187
  enum: [this.type],
198
188
  enumDescriptions: [this.label],
199
- description: ( nls.localize('debugType', "Type of configuration.")),
189
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugger', 'debugType', "Type of configuration."),
200
190
  pattern: '^(?!node2)',
201
191
  deprecationMessage: this.debuggerContribution.deprecated || (this.enabled ? undefined : debuggerDisabledMessage(this.type)),
202
192
  doNotSuggest: !!this.debuggerContribution.deprecated,
203
- errorMessage: ( nls.localize(
204
- 'debugTypeNotRecognised',
205
- "The debug type is not recognized. Make sure that you have a corresponding debug extension installed and that it is enabled."
206
- )),
207
- patternErrorMessage: ( nls.localize(
208
- 'node2NotSupported',
209
- "\"node2\" is no longer supported, use \"node\" instead and set the \"protocol\" attribute to \"inspector\"."
210
- ))
193
+ errorMessage: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugger', 'debugTypeNotRecognised', "The debug type is not recognized. Make sure that you have a corresponding debug extension installed and that it is enabled."),
194
+ patternErrorMessage: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugger', 'node2NotSupported', "\"node2\" is no longer supported, use \"node\" instead and set the \"protocol\" attribute to \"inspector\".")
211
195
  };
212
196
  properties['request'] = {
213
197
  enum: [request],
214
- description: ( nls.localize(
215
- 'debugRequest',
216
- "Request type of configuration. Can be \"launch\" or \"attach\"."
217
- )),
198
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugger', 'debugRequest', "Request type of configuration. Can be \"launch\" or \"attach\"."),
218
199
  };
219
200
  for (const prop in definitions['common'].properties) {
220
201
  properties[prop] = {
@@ -236,21 +217,15 @@ let Debugger = class Debugger {
236
217
  ...{
237
218
  windows: {
238
219
  $ref: `#/definitions/${platformSpecificDefinitionId}`,
239
- description: ( nls.localize(
240
- 'debugWindowsConfiguration',
241
- "Windows specific launch configuration attributes."
242
- )),
220
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugger', 'debugWindowsConfiguration', "Windows specific launch configuration attributes."),
243
221
  },
244
222
  osx: {
245
223
  $ref: `#/definitions/${platformSpecificDefinitionId}`,
246
- description: ( nls.localize('debugOSXConfiguration', "OS X specific launch configuration attributes.")),
224
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugger', 'debugOSXConfiguration', "OS X specific launch configuration attributes."),
247
225
  },
248
226
  linux: {
249
227
  $ref: `#/definitions/${platformSpecificDefinitionId}`,
250
- description: ( nls.localize(
251
- 'debugLinuxConfiguration',
252
- "Linux specific launch configuration attributes."
253
- )),
228
+ description: nls.localizeWithPath('vs/workbench/contrib/debug/common/debugger', 'debugLinuxConfiguration', "Linux specific launch configuration attributes."),
254
229
  }
255
230
  }
256
231
  };
@@ -1,5 +1,5 @@
1
1
  import { EditorInput } from 'vscode/vscode/vs/workbench/common/editor/editorInput';
2
- import { localize } from 'monaco-editor/esm/vs/nls.js';
2
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
3
3
 
4
4
  class DisassemblyViewInput extends EditorInput {
5
5
  constructor() {
@@ -17,7 +17,7 @@ class DisassemblyViewInput extends EditorInput {
17
17
  return DisassemblyViewInput._instance;
18
18
  }
19
19
  getName() {
20
- return ( localize('disassemblyInputName', "Disassembly"));
20
+ return localizeWithPath('vs/workbench/contrib/debug/common/disassemblyViewInput', 'disassemblyInputName', "Disassembly");
21
21
  }
22
22
  matches(other) {
23
23
  return other instanceof DisassemblyViewInput;
@@ -22,7 +22,7 @@ async function showLoadedScriptMenu(accessor) {
22
22
  const quickPick = quickInputService.createQuickPick();
23
23
  localDisposableStore.add(quickPick);
24
24
  quickPick.matchOnLabel = quickPick.matchOnDescription = quickPick.matchOnDetail = quickPick.sortByLabel = false;
25
- quickPick.placeholder = ( nls.localize('moveFocusedView.selectView', "Search loaded scripts by name"));
25
+ quickPick.placeholder = nls.localizeWithPath('vs/workbench/contrib/debug/common/loadedScriptsPicker', 'moveFocusedView.selectView', "Search loaded scripts by name");
26
26
  quickPick.items = await _getPicks(quickPick.value, sessions, editorService, modelService, languageService, labelService);
27
27
  localDisposableStore.add(quickPick.onDidChangeValue(async () => {
28
28
  quickPick.items = await _getPicks(quickPick.value, sessions, editorService, modelService, languageService, labelService);
@@ -219,7 +219,7 @@ class ReplModel {
219
219
  const clearAnsiIndex = output.lastIndexOf(clearAnsiSequence);
220
220
  if (clearAnsiIndex !== -1) {
221
221
  this.removeReplExpressions();
222
- this.appendToRepl(session, { output: ( nls.localize('consoleCleared', "Console was cleared")), sev: Severity.Ignore });
222
+ this.appendToRepl(session, { output: nls.localizeWithPath('vs/workbench/contrib/debug/common/replModel', 'consoleCleared', "Console was cleared"), sev: Severity.Ignore });
223
223
  output = output.substring(clearAnsiIndex + clearAnsiSequence.length);
224
224
  }
225
225
  if (expression) {
@@ -165,7 +165,7 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
165
165
  const commandId = (variableToCommandMap ? variableToCommandMap[name] : undefined) || name;
166
166
  result = await this.commandService.executeCommand(commandId, configuration);
167
167
  if (typeof result !== 'string' && !types.isUndefinedOrNull(result)) {
168
- throw new Error(nls.localize('commandVariable.noStringType', "Cannot substitute command variable '{0}' because command did not return a result of type string.", commandId));
168
+ throw new Error(nls.localizeWithPath('vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService', 'commandVariable.noStringType', "Cannot substitute command variable '{0}' because command did not return a result of type string.", commandId));
169
169
  }
170
170
  break;
171
171
  }
@@ -213,17 +213,14 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
213
213
  }
214
214
  showUserInput(variable, inputInfos) {
215
215
  if (!inputInfos) {
216
- return Promise.reject(( new Error(( nls.localize(
217
- 'inputVariable.noInputSection',
218
- "Variable '{0}' must be defined in an '{1}' section of the debug or task configuration.",
219
- variable,
220
- 'input'
221
- )))));
216
+ return Promise.reject(( new Error(
217
+ nls.localizeWithPath('vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService', 'inputVariable.noInputSection', "Variable '{0}' must be defined in an '{1}' section of the debug or task configuration.", variable, 'input')
218
+ )));
222
219
  }
223
220
  const info = inputInfos.filter(item => item.id === variable).pop();
224
221
  if (info) {
225
222
  const missingAttribute = (attrName) => {
226
- throw new Error(nls.localize('inputVariable.missingAttribute', "Input variable '{0}' is of type '{1}' and must include '{2}'.", variable, info.type, attrName));
223
+ throw new Error(nls.localizeWithPath('vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService', 'inputVariable.missingAttribute', "Input variable '{0}' is of type '{1}' and must include '{2}'.", variable, info.type, attrName));
227
224
  };
228
225
  switch (info.type) {
229
226
  case 'promptString': {
@@ -264,7 +261,7 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
264
261
  value: value
265
262
  };
266
263
  if (value === info.default) {
267
- item.description = ( nls.localize('inputVariable.defaultInputValue', "(Default)"));
264
+ item.description = nls.localizeWithPath('vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService', 'inputVariable.defaultInputValue', "(Default)");
268
265
  picks.unshift(item);
269
266
  }
270
267
  else {
@@ -287,18 +284,16 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
287
284
  if (typeof result === 'string' || types.isUndefinedOrNull(result)) {
288
285
  return result;
289
286
  }
290
- throw new Error(nls.localize('inputVariable.command.noStringType', "Cannot substitute input variable '{0}' because command '{1}' did not return a result of type string.", variable, info.command));
287
+ throw new Error(nls.localizeWithPath('vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService', 'inputVariable.command.noStringType', "Cannot substitute input variable '{0}' because command '{1}' did not return a result of type string.", variable, info.command));
291
288
  });
292
289
  }
293
290
  default:
294
- throw new Error(nls.localize('inputVariable.unknownType', "Input variable '{0}' can only be of type 'promptString', 'pickString', or 'command'.", variable));
291
+ throw new Error(nls.localizeWithPath('vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService', 'inputVariable.unknownType', "Input variable '{0}' can only be of type 'promptString', 'pickString', or 'command'.", variable));
295
292
  }
296
293
  }
297
- return Promise.reject(( new Error(( nls.localize(
298
- 'inputVariable.undefinedVariable',
299
- "Undefined input variable '{0}' encountered. Remove or define '{0}' to continue.",
300
- variable
301
- )))));
294
+ return Promise.reject(( new Error(
295
+ nls.localizeWithPath('vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService', 'inputVariable.undefinedVariable', "Undefined input variable '{0}' encountered. Remove or define '{0}' to continue.", variable)
296
+ )));
302
297
  }
303
298
  }
304
299