@codingame/monaco-vscode-debug-service-override 24.2.0 → 25.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.
Files changed (32) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +16 -16
  3. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +121 -112
  4. package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +12 -12
  5. package/vscode/src/vs/workbench/contrib/debug/browser/debugChatIntegration.d.ts +1 -1
  6. package/vscode/src/vs/workbench/contrib/debug/browser/debugChatIntegration.js +14 -14
  7. package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +5 -5
  8. package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +1 -1
  9. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +25 -25
  10. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +9 -9
  11. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.d.ts +1 -1
  12. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +26 -22
  13. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +69 -59
  14. package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
  15. package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +17 -17
  16. package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +3 -3
  17. package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +5 -5
  18. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +7 -7
  19. package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +7 -7
  20. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css +13 -13
  21. package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +5 -5
  22. package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +8 -8
  23. package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +16 -16
  24. package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +4 -4
  25. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +10 -10
  26. package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +6 -6
  27. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +3 -3
  28. package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
  29. package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +44 -44
  30. package/vscode/src/vs/workbench/contrib/debug/common/debugger.d.ts +3 -1
  31. package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +17 -14
  32. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +2 -2
@@ -31,7 +31,7 @@ const CONTEXT_DEBUG_START_LANGUAGE = ( new RawContextKey(debugStartLanguageKey,
31
31
  const CONTEXT_DEBUGGER_INTERESTED_IN_ACTIVE_EDITOR = ( new RawContextKey('debuggerInterestedInActiveEditor', false));
32
32
  let WelcomeView = class WelcomeView extends ViewPane {
33
33
  static { this.ID = 'workbench.debug.welcome'; }
34
- static { this.LABEL = ( localize2(7002, "Run")); }
34
+ static { this.LABEL = ( localize2(7032, "Run")); }
35
35
  constructor(options, themeService, keybindingService, contextMenuService, configurationService, contextKeyService, debugService, editorService, instantiationService, viewDescriptorService, openerService, storageSevice, hoverService) {
36
36
  super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, hoverService);
37
37
  this.debugService = debugService;
@@ -101,7 +101,7 @@ WelcomeView = ( __decorate([
101
101
  const viewsRegistry = ( Registry.as(Extensions.ViewsRegistry));
102
102
  viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
103
103
  content: ( localize(
104
- 7003,
104
+ 7033,
105
105
  "[Open a file](command:{0}) which can be debugged or run.",
106
106
  OpenFileAction.ID
107
107
  )),
@@ -110,14 +110,14 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
110
110
  });
111
111
  let debugKeybindingLabel = '';
112
112
  viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
113
- content: `[${( localize(7004, "Run and Debug"))}${debugKeybindingLabel}](command:${DEBUG_START_COMMAND_ID})`,
113
+ content: `[${( localize(7034, "Run and Debug"))}${debugKeybindingLabel}](command:${DEBUG_START_COMMAND_ID})`,
114
114
  when: CONTEXT_DEBUGGERS_AVAILABLE,
115
115
  group: ViewContentGroups.Debug,
116
116
  order: 1
117
117
  });
118
118
  viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
119
119
  content: ( localize(
120
- 7005,
120
+ 7035,
121
121
  "To customize Run and Debug [create a launch.json file]({0}).",
122
122
  `${( createCommandUri(DEBUG_CONFIGURE_COMMAND_ID, { addNew: true }).toString())}`
123
123
  )),
@@ -126,7 +126,7 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
126
126
  });
127
127
  viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
128
128
  content: ( localize(
129
- 7006,
129
+ 7036,
130
130
  "To customize Run and Debug, [open a folder]({0}) and create a launch.json file.",
131
131
  (createCommandUri(OpenFolderAction.ID).toString())
132
132
  )),
@@ -135,7 +135,7 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
135
135
  });
136
136
  viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
137
137
  content: ( localize(
138
- 7007,
138
+ 7037,
139
139
  "All debug extensions are disabled. Enable a debug extension or install a new one from the Marketplace."
140
140
  )),
141
141
  when: ( CONTEXT_DEBUG_EXTENSION_AVAILABLE.toNegated()),
@@ -53,14 +53,14 @@ let DebugContentProvider = class DebugContentProvider extends Disposable {
53
53
  session = this.debugService.getViewModel().focusedSession;
54
54
  }
55
55
  if (!session) {
56
- return Promise.reject(( new ErrorNoTelemetry(( localize(7074, "Unable to resolve the resource without a debug session")))));
56
+ return Promise.reject(( new ErrorNoTelemetry(( localize(7104, "Unable to resolve the resource without a debug session")))));
57
57
  }
58
58
  const createErrModel = (errMsg) => {
59
59
  this.debugService.sourceIsNotAvailable(resource);
60
60
  const languageSelection = this.languageService.createById(PLAINTEXT_LANGUAGE_ID);
61
61
  const message = errMsg
62
- ? ( localize(7075, "Could not load source '{0}': {1}.", resource.path, errMsg))
63
- : ( localize(7076, "Could not load source '{0}'.", resource.path));
62
+ ? ( localize(7105, "Could not load source '{0}': {1}.", resource.path, errMsg))
63
+ : ( localize(7106, "Could not load source '{0}'.", resource.path));
64
64
  return this.modelService.createModel(message, languageSelection, resource);
65
65
  };
66
66
  return session.loadSource(resource).then(response => {
@@ -31,20 +31,20 @@ let DebugLifecycle = class DebugLifecycle {
31
31
  let message;
32
32
  if (numSessions === 1) {
33
33
  message = ( localize(
34
- 7077,
34
+ 7107,
35
35
  "There is an active debug session, are you sure you want to stop it?"
36
36
  ));
37
37
  }
38
38
  else {
39
39
  message = ( localize(
40
- 7078,
40
+ 7108,
41
41
  "There are active debug sessions, are you sure you want to stop them?"
42
42
  ));
43
43
  }
44
44
  const res = await this.dialogService.confirm({
45
45
  message,
46
46
  type: 'warning',
47
- primaryButton: ( localize(7079, "&&Stop Debugging"))
47
+ primaryButton: ( localize(7109, "&&Stop Debugging"))
48
48
  });
49
49
  return !res.confirmed;
50
50
  }
@@ -12,7 +12,7 @@ const debuggersExtPoint = ExtensionsRegistry.registerExtensionPoint({
12
12
  extensionPoint: 'debuggers',
13
13
  defaultExtensionKind: ['workspace'],
14
14
  jsonSchema: {
15
- description: ( localize(7087, 'Contributes debug adapters.')),
15
+ description: ( localize(7117, 'Contributes debug adapters.')),
16
16
  type: 'array',
17
17
  defaultSnippets: [{ body: [{ type: '' }] }],
18
18
  items: {
@@ -21,64 +21,64 @@ const debuggersExtPoint = ExtensionsRegistry.registerExtensionPoint({
21
21
  defaultSnippets: [{ body: { type: '', program: '', runtime: '' } }],
22
22
  properties: {
23
23
  type: {
24
- description: ( localize(7088, "Unique identifier for this debug adapter.")),
24
+ description: ( localize(7118, "Unique identifier for this debug adapter.")),
25
25
  type: 'string'
26
26
  },
27
27
  label: {
28
- description: ( localize(7089, "Display name for this debug adapter.")),
28
+ description: ( localize(7119, "Display name for this debug adapter.")),
29
29
  type: 'string'
30
30
  },
31
31
  program: {
32
32
  description: ( localize(
33
- 7090,
33
+ 7120,
34
34
  "Path to the debug adapter program. Path is either absolute or relative to the extension folder."
35
35
  )),
36
36
  type: 'string'
37
37
  },
38
38
  args: {
39
- description: ( localize(7091, "Optional arguments to pass to the adapter.")),
39
+ description: ( localize(7121, "Optional arguments to pass to the adapter.")),
40
40
  type: 'array'
41
41
  },
42
42
  runtime: {
43
43
  description: ( localize(
44
- 7092,
44
+ 7122,
45
45
  "Optional runtime in case the program attribute is not an executable but requires a runtime."
46
46
  )),
47
47
  type: 'string'
48
48
  },
49
49
  runtimeArgs: {
50
- description: ( localize(7093, "Optional runtime arguments.")),
50
+ description: ( localize(7123, "Optional runtime arguments.")),
51
51
  type: 'array'
52
52
  },
53
53
  variables: {
54
54
  description: ( localize(
55
- 7094,
55
+ 7124,
56
56
  "Mapping from interactive variables (e.g. ${action.pickProcess}) in `launch.json` to a command."
57
57
  )),
58
58
  type: 'object'
59
59
  },
60
60
  initialConfigurations: {
61
- description: ( localize(7095, "Configurations for generating the initial \'launch.json\'.")),
61
+ description: ( localize(7125, "Configurations for generating the initial \'launch.json\'.")),
62
62
  type: ['array', 'string'],
63
63
  },
64
64
  languages: {
65
65
  description: ( localize(
66
- 7096,
66
+ 7126,
67
67
  "List of languages for which the debug extension could be considered the \"default debugger\"."
68
68
  )),
69
69
  type: 'array'
70
70
  },
71
71
  configurationSnippets: {
72
- description: ( localize(7097, "Snippets for adding new configurations in \'launch.json\'.")),
72
+ description: ( localize(7127, "Snippets for adding new configurations in \'launch.json\'.")),
73
73
  type: 'array'
74
74
  },
75
75
  configurationAttributes: {
76
- description: ( localize(7098, "JSON schema configurations for validating \'launch.json\'.")),
76
+ description: ( localize(7128, "JSON schema configurations for validating \'launch.json\'.")),
77
77
  type: 'object'
78
78
  },
79
79
  when: {
80
80
  description: ( localize(
81
- 7099,
81
+ 7129,
82
82
  "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
83
  )),
84
84
  type: 'string',
@@ -86,54 +86,54 @@ const debuggersExtPoint = ExtensionsRegistry.registerExtensionPoint({
86
86
  },
87
87
  hiddenWhen: {
88
88
  description: ( localize(
89
- 7100,
89
+ 7130,
90
90
  "When this condition is true, this debugger type is hidden from the debugger list, but is still enabled."
91
91
  )),
92
92
  type: 'string',
93
93
  default: ''
94
94
  },
95
95
  deprecated: {
96
- description: ( localize(7101, "Optional message to mark this debug type as being deprecated.")),
96
+ description: ( localize(7131, "Optional message to mark this debug type as being deprecated.")),
97
97
  type: 'string',
98
98
  default: ''
99
99
  },
100
100
  windows: {
101
- description: ( localize(7102, "Windows specific settings.")),
101
+ description: ( localize(7132, "Windows specific settings.")),
102
102
  type: 'object',
103
103
  properties: {
104
104
  runtime: {
105
- description: ( localize(7103, "Runtime used for Windows.")),
105
+ description: ( localize(7133, "Runtime used for Windows.")),
106
106
  type: 'string'
107
107
  }
108
108
  }
109
109
  },
110
110
  osx: {
111
- description: ( localize(7104, "macOS specific settings.")),
111
+ description: ( localize(7134, "macOS specific settings.")),
112
112
  type: 'object',
113
113
  properties: {
114
114
  runtime: {
115
- description: ( localize(7105, "Runtime used for macOS.")),
115
+ description: ( localize(7135, "Runtime used for macOS.")),
116
116
  type: 'string'
117
117
  }
118
118
  }
119
119
  },
120
120
  linux: {
121
- description: ( localize(7106, "Linux specific settings.")),
121
+ description: ( localize(7136, "Linux specific settings.")),
122
122
  type: 'object',
123
123
  properties: {
124
124
  runtime: {
125
- description: ( localize(7107, "Runtime used for Linux.")),
125
+ description: ( localize(7137, "Runtime used for Linux.")),
126
126
  type: 'string'
127
127
  }
128
128
  }
129
129
  },
130
130
  strings: {
131
- description: ( localize(7108, "UI strings contributed by this debug adapter.")),
131
+ description: ( localize(7138, "UI strings contributed by this debug adapter.")),
132
132
  type: 'object',
133
133
  properties: {
134
134
  unverifiedBreakpoints: {
135
135
  description: ( localize(
136
- 7109,
136
+ 7139,
137
137
  "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
138
  )),
139
139
  type: 'string'
@@ -147,7 +147,7 @@ const debuggersExtPoint = ExtensionsRegistry.registerExtensionPoint({
147
147
  const breakpointsExtPoint = ExtensionsRegistry.registerExtensionPoint({
148
148
  extensionPoint: 'breakpoints',
149
149
  jsonSchema: {
150
- description: ( localize(7110, 'Contributes breakpoints.')),
150
+ description: ( localize(7140, 'Contributes breakpoints.')),
151
151
  type: 'array',
152
152
  defaultSnippets: [{ body: [{ language: '' }] }],
153
153
  items: {
@@ -156,12 +156,12 @@ const breakpointsExtPoint = ExtensionsRegistry.registerExtensionPoint({
156
156
  defaultSnippets: [{ body: { language: '' } }],
157
157
  properties: {
158
158
  language: {
159
- description: ( localize(7111, "Allow breakpoints for this language.")),
159
+ description: ( localize(7141, "Allow breakpoints for this language.")),
160
160
  type: 'string'
161
161
  },
162
162
  when: {
163
163
  description: ( localize(
164
- 7112,
164
+ 7142,
165
165
  "Condition which must be true to enable breakpoints in this language. Consider matching this to the debugger when clause as appropriate."
166
166
  )),
167
167
  type: 'string',
@@ -174,7 +174,7 @@ const breakpointsExtPoint = ExtensionsRegistry.registerExtensionPoint({
174
174
  const presentationSchema = {
175
175
  type: 'object',
176
176
  description: ( localize(
177
- 7113,
177
+ 7143,
178
178
  "Presentation options on how to show this configuration in the debug configuration dropdown and the command palette."
179
179
  )),
180
180
  properties: {
@@ -182,7 +182,7 @@ const presentationSchema = {
182
182
  type: 'boolean',
183
183
  default: false,
184
184
  description: ( localize(
185
- 7114,
185
+ 7144,
186
186
  "Controls if this configuration should be shown in the configuration dropdown and the command palette."
187
187
  ))
188
188
  },
@@ -190,7 +190,7 @@ const presentationSchema = {
190
190
  type: 'string',
191
191
  default: '',
192
192
  description: ( localize(
193
- 7115,
193
+ 7145,
194
194
  "Group that this configuration belongs to. Used for grouping and sorting in the configuration dropdown and the command palette."
195
195
  ))
196
196
  },
@@ -198,7 +198,7 @@ const presentationSchema = {
198
198
  type: 'number',
199
199
  default: 1,
200
200
  description: ( localize(
201
- 7116,
201
+ 7146,
202
202
  "Order of this configuration within a group. Used for grouping and sorting in the configuration dropdown and the command palette."
203
203
  ))
204
204
  }
@@ -213,7 +213,7 @@ const defaultCompound = { name: 'Compound', configurations: [] };
213
213
  const launchSchema = {
214
214
  id: launchSchemaId,
215
215
  type: 'object',
216
- title: ( localize(7117, "Launch")),
216
+ title: ( localize(7147, "Launch")),
217
217
  allowTrailingCommas: true,
218
218
  allowComments: true,
219
219
  required: [],
@@ -221,13 +221,13 @@ const launchSchema = {
221
221
  properties: {
222
222
  version: {
223
223
  type: 'string',
224
- description: ( localize(7118, "Version of this file format.")),
224
+ description: ( localize(7148, "Version of this file format.")),
225
225
  default: '0.2.0'
226
226
  },
227
227
  configurations: {
228
228
  type: 'array',
229
229
  description: ( localize(
230
- 7119,
230
+ 7149,
231
231
  "List of configurations. Add new configurations or edit existing ones by using IntelliSense."
232
232
  )),
233
233
  items: {
@@ -239,7 +239,7 @@ const launchSchema = {
239
239
  compounds: {
240
240
  type: 'array',
241
241
  description: ( localize(
242
- 7120,
242
+ 7150,
243
243
  "List of compounds. Each compound references multiple configurations which will get launched together."
244
244
  )),
245
245
  items: {
@@ -249,7 +249,7 @@ const launchSchema = {
249
249
  name: {
250
250
  type: 'string',
251
251
  description: ( localize(
252
- 7121,
252
+ 7151,
253
253
  "Name of compound. Appears in the launch configuration drop down menu."
254
254
  ))
255
255
  },
@@ -260,7 +260,7 @@ const launchSchema = {
260
260
  items: {
261
261
  oneOf: [{
262
262
  enum: [],
263
- description: ( localize(7122, "Please use unique configuration names."))
263
+ description: ( localize(7152, "Please use unique configuration names."))
264
264
  }, {
265
265
  type: 'object',
266
266
  required: ['name'],
@@ -268,19 +268,19 @@ const launchSchema = {
268
268
  name: {
269
269
  enum: [],
270
270
  description: ( localize(
271
- 7121,
271
+ 7151,
272
272
  "Name of compound. Appears in the launch configuration drop down menu."
273
273
  ))
274
274
  },
275
275
  folder: {
276
276
  enum: [],
277
- description: ( localize(7123, "Name of folder in which the compound is located."))
277
+ description: ( localize(7153, "Name of folder in which the compound is located."))
278
278
  }
279
279
  }
280
280
  }]
281
281
  },
282
282
  description: ( localize(
283
- 7124,
283
+ 7154,
284
284
  "Names of configurations that will be started as part of this compound."
285
285
  ))
286
286
  },
@@ -288,14 +288,14 @@ const launchSchema = {
288
288
  type: 'boolean',
289
289
  default: false,
290
290
  description: ( localize(
291
- 7125,
291
+ 7155,
292
292
  "Controls whether manually terminating one session will stop all of the compound sessions."
293
293
  ))
294
294
  },
295
295
  preLaunchTask: {
296
296
  type: 'string',
297
297
  default: '',
298
- description: ( localize(7126, "Task to run before any of the compound configurations start."))
298
+ description: ( localize(7156, "Task to run before any of the compound configurations start."))
299
299
  }
300
300
  },
301
301
  default: defaultCompound
@@ -321,8 +321,8 @@ class DebuggersDataRenderer extends Disposable {
321
321
  return { data: { headers: [], rows: [] }, dispose: () => { } };
322
322
  }
323
323
  const headers = [
324
- ( localize(7127, "Name")),
325
- ( localize(7128, "Type")),
324
+ ( localize(7157, "Name")),
325
+ ( localize(7158, "Type")),
326
326
  ];
327
327
  const rows = ( contrib.map(d => {
328
328
  return [
@@ -341,7 +341,7 @@ class DebuggersDataRenderer extends Disposable {
341
341
  }
342
342
  ( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
343
343
  id: 'debuggers',
344
- label: ( localize(7129, "Debuggers")),
344
+ label: ( localize(7159, "Debuggers")),
345
345
  access: {
346
346
  canToggle: false
347
347
  },
@@ -10,6 +10,7 @@ import { ITelemetryEndpoint } from "@codingame/monaco-vscode-api/vscode/vs/platf
10
10
  import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
11
11
  import { ContextKeyExpression } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey";
12
12
  import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
13
+ import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
13
14
  export declare class Debugger implements IDebugger, IDebuggerMetadata {
14
15
  private adapterManager;
15
16
  private readonly configurationService;
@@ -18,12 +19,13 @@ export declare class Debugger implements IDebugger, IDebuggerMetadata {
18
19
  private readonly environmentService;
19
20
  private readonly debugService;
20
21
  private readonly contextKeyService;
22
+ private readonly productService;
21
23
  private debuggerContribution;
22
24
  private mergedExtensionDescriptions;
23
25
  private mainExtensionDescription;
24
26
  private debuggerWhen;
25
27
  private debuggerHiddenWhen;
26
- constructor(adapterManager: IAdapterManager, dbgContribution: IDebuggerContribution, extensionDescription: IExtensionDescription, configurationService: IConfigurationService, resourcePropertiesService: ITextResourcePropertiesService, configurationResolverService: IConfigurationResolverService, environmentService: IWorkbenchEnvironmentService, debugService: IDebugService, contextKeyService: IContextKeyService);
28
+ constructor(adapterManager: IAdapterManager, dbgContribution: IDebuggerContribution, extensionDescription: IExtensionDescription, configurationService: IConfigurationService, resourcePropertiesService: ITextResourcePropertiesService, configurationResolverService: IConfigurationResolverService, environmentService: IWorkbenchEnvironmentService, debugService: IDebugService, contextKeyService: IContextKeyService, productService: IProductService);
27
29
  merge(otherDebuggerContribution: IDebuggerContribution, extensionDescription: IExtensionDescription): void;
28
30
  startDebugging(configuration: IConfig, parentSessionId: string): Promise<boolean>;
29
31
  createDebugAdapter(session: IDebugSession): Promise<IDebugAdapter>;
@@ -16,9 +16,10 @@ import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscod
16
16
  import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
17
17
  import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
18
18
  import { filter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/objects';
19
+ import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
19
20
 
20
21
  let Debugger = class Debugger {
21
- constructor(adapterManager, dbgContribution, extensionDescription, configurationService, resourcePropertiesService, configurationResolverService, environmentService, debugService, contextKeyService) {
22
+ constructor(adapterManager, dbgContribution, extensionDescription, configurationService, resourcePropertiesService, configurationResolverService, environmentService, debugService, contextKeyService, productService) {
22
23
  this.adapterManager = adapterManager;
23
24
  this.configurationService = configurationService;
24
25
  this.resourcePropertiesService = resourcePropertiesService;
@@ -26,6 +27,7 @@ let Debugger = class Debugger {
26
27
  this.environmentService = environmentService;
27
28
  this.debugService = debugService;
28
29
  this.contextKeyService = contextKeyService;
30
+ this.productService = productService;
29
31
  this.mergedExtensionDescriptions = [];
30
32
  this.debuggerContribution = { type: dbgContribution.type };
31
33
  this.merge(dbgContribution, extensionDescription);
@@ -79,7 +81,7 @@ let Debugger = class Debugger {
79
81
  if (da) {
80
82
  return Promise.resolve(da);
81
83
  }
82
- throw ( new Error(( localize(7131, "Cannot find debug adapter for type '{0}'.", this.type))));
84
+ throw ( new Error(( localize(7161, "Cannot find debug adapter for type '{0}'.", this.type))));
83
85
  }
84
86
  async substituteVariables(folder, config) {
85
87
  const substitutedConfig = await this.adapterManager.substituteVariables(this.type, folder, config);
@@ -140,10 +142,10 @@ let Debugger = class Debugger {
140
142
  }
141
143
  const eol = this.resourcePropertiesService.getEOL(( URI.from({ scheme: Schemas.untitled, path: '1' }))) === '\r\n' ? '\r\n' : '\n';
142
144
  const configs = ( JSON.stringify(initialConfigurations, null, '\t').split('\n').map(line => '\t' + line)).join(eol).trim();
143
- const comment1 = ( localize(7132, "Use IntelliSense to learn about possible attributes."));
144
- const comment2 = ( localize(7133, "Hover to view descriptions of existing attributes."));
145
+ const comment1 = ( localize(7162, "Use IntelliSense to learn about possible attributes."));
146
+ const comment2 = ( localize(7163, "Hover to view descriptions of existing attributes."));
145
147
  const comment3 = ( localize(
146
- 7134,
148
+ 7164,
147
149
  "For more information, visit: {0}",
148
150
  'https://go.microsoft.com/fwlink/?linkid=830387'
149
151
  ));
@@ -170,7 +172,7 @@ let Debugger = class Debugger {
170
172
  if (!aiKey) {
171
173
  return undefined;
172
174
  }
173
- const sendErrorTelemtry = cleanRemoteAuthority(this.environmentService.remoteAuthority) !== 'other';
175
+ const sendErrorTelemtry = cleanRemoteAuthority(this.environmentService.remoteAuthority, this.productService) !== 'other';
174
176
  return {
175
177
  id: `${this.getMainExtensionDescriptor().publisher}.${this.type}`,
176
178
  aiKey,
@@ -195,22 +197,22 @@ let Debugger = class Debugger {
195
197
  properties['type'] = {
196
198
  enum: [this.type],
197
199
  enumDescriptions: [this.label],
198
- description: ( localize(7135, "Type of configuration.")),
200
+ description: ( localize(7165, "Type of configuration.")),
199
201
  pattern: '^(?!node2)',
200
202
  deprecationMessage: this.debuggerContribution.deprecated || (this.enabled ? undefined : debuggerDisabledMessage(this.type)),
201
203
  doNotSuggest: !!this.debuggerContribution.deprecated,
202
204
  errorMessage: ( localize(
203
- 7136,
205
+ 7166,
204
206
  "The debug type is not recognized. Make sure that you have a corresponding debug extension installed and that it is enabled."
205
207
  )),
206
208
  patternErrorMessage: ( localize(
207
- 7137,
209
+ 7167,
208
210
  "\"node2\" is no longer supported, use \"node\" instead and set the \"protocol\" attribute to \"inspector\"."
209
211
  ))
210
212
  };
211
213
  properties['request'] = {
212
214
  enum: [request],
213
- description: ( localize(7138, "Request type of configuration. Can be \"launch\" or \"attach\".")),
215
+ description: ( localize(7168, "Request type of configuration. Can be \"launch\" or \"attach\".")),
214
216
  };
215
217
  for (const prop in definitions['common'].properties) {
216
218
  properties[prop] = {
@@ -232,15 +234,15 @@ let Debugger = class Debugger {
232
234
  ...{
233
235
  windows: {
234
236
  $ref: `#/definitions/${platformSpecificDefinitionId}`,
235
- description: ( localize(7139, "Windows specific launch configuration attributes.")),
237
+ description: ( localize(7169, "Windows specific launch configuration attributes.")),
236
238
  },
237
239
  osx: {
238
240
  $ref: `#/definitions/${platformSpecificDefinitionId}`,
239
- description: ( localize(7140, "OS X specific launch configuration attributes.")),
241
+ description: ( localize(7170, "OS X specific launch configuration attributes.")),
240
242
  },
241
243
  linux: {
242
244
  $ref: `#/definitions/${platformSpecificDefinitionId}`,
243
- description: ( localize(7141, "Linux specific launch configuration attributes.")),
245
+ description: ( localize(7171, "Linux specific launch configuration attributes.")),
244
246
  }
245
247
  }
246
248
  };
@@ -254,7 +256,8 @@ Debugger = ( __decorate([
254
256
  ( __param(5, IConfigurationResolverService)),
255
257
  ( __param(6, IWorkbenchEnvironmentService)),
256
258
  ( __param(7, IDebugService)),
257
- ( __param(8, IContextKeyService))
259
+ ( __param(8, IContextKeyService)),
260
+ ( __param(9, IProductService))
258
261
  ], Debugger));
259
262
 
260
263
  export { Debugger };
@@ -8,7 +8,7 @@ import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/w
8
8
  import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
9
9
 
10
10
  const COPY_NOTEBOOK_VARIABLE_VALUE_ID = 'workbench.debug.viewlet.action.copyWorkspaceVariableValue';
11
- const COPY_NOTEBOOK_VARIABLE_VALUE_LABEL = ( localize(9293, "Copy Value"));
11
+ const COPY_NOTEBOOK_VARIABLE_VALUE_LABEL = ( localize(9318, "Copy Value"));
12
12
  registerAction2(class extends Action2 {
13
13
  constructor() {
14
14
  super({
@@ -28,7 +28,7 @@ registerAction2(class extends Action2 {
28
28
  constructor() {
29
29
  super({
30
30
  id: '_executeNotebookVariableProvider',
31
- title: ( localize(9294, "Execute Notebook Variable Provider")),
31
+ title: ( localize(9319, "Execute Notebook Variable Provider")),
32
32
  f1: false,
33
33
  });
34
34
  }