@codingame/monaco-vscode-debug-service-override 4.5.0 → 4.5.2
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/index.d.ts +1 -1
- package/package.json +2 -2
- package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +105 -150
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +258 -529
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +28 -48
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +44 -71
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +84 -163
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +116 -120
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +7 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +78 -140
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +72 -75
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +25 -28
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +16 -48
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +140 -132
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +218 -175
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +5 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +9 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +69 -110
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +68 -53
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +77 -56
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +50 -75
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +13 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +22 -51
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +47 -73
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +60 -76
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +14 -43
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +23 -42
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +17 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +56 -94
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +40 -79
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +55 -57
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +14 -28
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +12 -15
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +71 -146
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +92 -111
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +5 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +5 -12
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +42 -22
- package/debug.d.ts +0 -5
|
@@ -30,6 +30,7 @@ import { setupCustomHover } from 'vscode/vscode/vs/base/browser/ui/hover/updatab
|
|
|
30
30
|
import { getDefaultHoverDelegate } from 'vscode/vscode/vs/base/browser/ui/hover/hoverDelegateFactory';
|
|
31
31
|
|
|
32
32
|
var StartDebugActionViewItem_1;
|
|
33
|
+
const _moduleId = "vs/workbench/contrib/debug/browser/debugActionViewItems";
|
|
33
34
|
const $ = $$1;
|
|
34
35
|
let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseActionViewItem {
|
|
35
36
|
static { StartDebugActionViewItem_1 = this; }
|
|
@@ -46,17 +47,13 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
46
47
|
this.selected = 0;
|
|
47
48
|
this.providers = [];
|
|
48
49
|
this.toDispose = [];
|
|
49
|
-
this.selectBox = ( new SelectBox(
|
|
50
|
+
this.selectBox = ( (new SelectBox(
|
|
50
51
|
[],
|
|
51
52
|
-1,
|
|
52
53
|
contextViewService,
|
|
53
54
|
defaultSelectBoxStyles,
|
|
54
|
-
{ ariaLabel: ( localizeWithPath(
|
|
55
|
-
|
|
56
|
-
'debugLaunchConfigurations',
|
|
57
|
-
'Debug Launch Configurations'
|
|
58
|
-
)) }
|
|
59
|
-
));
|
|
55
|
+
{ ariaLabel: ( localizeWithPath(_moduleId, 0, 'Debug Launch Configurations')) }
|
|
56
|
+
)));
|
|
60
57
|
this.selectBox.setFocusable(false);
|
|
61
58
|
this.toDispose.push(this.selectBox);
|
|
62
59
|
this.registerListeners();
|
|
@@ -99,7 +96,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
99
96
|
this.start.classList.remove('active');
|
|
100
97
|
}));
|
|
101
98
|
this.toDispose.push(addDisposableListener(this.start, EventType.KEY_DOWN, (e) => {
|
|
102
|
-
const event = ( new StandardKeyboardEvent(e));
|
|
99
|
+
const event = ( (new StandardKeyboardEvent(e)));
|
|
103
100
|
if (event.equals(17 )) {
|
|
104
101
|
this.start.tabIndex = -1;
|
|
105
102
|
this.selectBox.focus();
|
|
@@ -119,7 +116,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
119
116
|
const selectBoxContainer = $('.configuration');
|
|
120
117
|
this.selectBox.render(append(container, selectBoxContainer));
|
|
121
118
|
this.toDispose.push(addDisposableListener(selectBoxContainer, EventType.KEY_DOWN, (e) => {
|
|
122
|
-
const event = ( new StandardKeyboardEvent(e));
|
|
119
|
+
const event = ( (new StandardKeyboardEvent(e)));
|
|
123
120
|
if (event.equals(15 )) {
|
|
124
121
|
this.selectBox.setFocusable(false);
|
|
125
122
|
this.start.tabIndex = 0;
|
|
@@ -213,11 +210,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
213
210
|
});
|
|
214
211
|
});
|
|
215
212
|
if (this.debugOptions.length === 0) {
|
|
216
|
-
this.debugOptions.push({ label: ( localizeWithPath(
|
|
217
|
-
'vs/workbench/contrib/debug/browser/debugActionViewItems',
|
|
218
|
-
'noConfigurations',
|
|
219
|
-
"No Configurations"
|
|
220
|
-
)), handler: async () => false });
|
|
213
|
+
this.debugOptions.push({ label: ( localizeWithPath(_moduleId, 1, "No Configurations")), handler: async () => false });
|
|
221
214
|
}
|
|
222
215
|
this.debugOptions.push({ label: StartDebugActionViewItem_1.SEPARATOR, handler: () => Promise.resolve(false) });
|
|
223
216
|
disabledIdxs.push(this.debugOptions.length - 1);
|
|
@@ -235,43 +228,30 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
235
228
|
});
|
|
236
229
|
});
|
|
237
230
|
manager.getLaunches().filter(l => !l.hidden).forEach(l => {
|
|
238
|
-
const label = inWorkspace ? ( localizeWithPath(
|
|
239
|
-
'vs/workbench/contrib/debug/browser/debugActionViewItems',
|
|
240
|
-
"addConfigTo",
|
|
241
|
-
"Add Config ({0})...",
|
|
242
|
-
l.name
|
|
243
|
-
)) : ( localizeWithPath(
|
|
244
|
-
'vs/workbench/contrib/debug/browser/debugActionViewItems',
|
|
245
|
-
'addConfiguration',
|
|
246
|
-
"Add Configuration..."
|
|
247
|
-
));
|
|
231
|
+
const label = inWorkspace ? ( localizeWithPath(_moduleId, 2, "Add Config ({0})...", l.name)) : ( localizeWithPath(_moduleId, 3, "Add Configuration..."));
|
|
248
232
|
this.debugOptions.push({
|
|
249
233
|
label, handler: async () => {
|
|
250
|
-
await this.commandService.executeCommand(ADD_CONFIGURATION_ID, ( l.uri.toString()));
|
|
234
|
+
await this.commandService.executeCommand(ADD_CONFIGURATION_ID, ( (l.uri.toString())));
|
|
251
235
|
return false;
|
|
252
236
|
}
|
|
253
237
|
});
|
|
254
238
|
});
|
|
255
|
-
this.selectBox.setOptions(( this.debugOptions.map(
|
|
239
|
+
this.selectBox.setOptions(( (this.debugOptions.map(
|
|
256
240
|
(data, index) => ({ text: data.label, isDisabled: disabledIdxs.indexOf(index) !== -1 })
|
|
257
|
-
)), this.selected);
|
|
241
|
+
))), this.selected);
|
|
258
242
|
}
|
|
259
243
|
};
|
|
260
|
-
StartDebugActionViewItem = StartDebugActionViewItem_1 = ( __decorate([
|
|
261
|
-
( __param(3, IDebugService)),
|
|
262
|
-
( __param(4, IConfigurationService)),
|
|
263
|
-
( __param(5, ICommandService)),
|
|
264
|
-
( __param(6, IWorkspaceContextService)),
|
|
265
|
-
( __param(7, IContextViewService)),
|
|
266
|
-
( __param(8, IKeybindingService))
|
|
267
|
-
], StartDebugActionViewItem));
|
|
244
|
+
StartDebugActionViewItem = StartDebugActionViewItem_1 = ( (__decorate([
|
|
245
|
+
( (__param(3, IDebugService))),
|
|
246
|
+
( (__param(4, IConfigurationService))),
|
|
247
|
+
( (__param(5, ICommandService))),
|
|
248
|
+
( (__param(6, IWorkspaceContextService))),
|
|
249
|
+
( (__param(7, IContextViewService))),
|
|
250
|
+
( (__param(8, IKeybindingService)))
|
|
251
|
+
], StartDebugActionViewItem)));
|
|
268
252
|
let FocusSessionActionViewItem = class FocusSessionActionViewItem extends SelectActionViewItem {
|
|
269
253
|
constructor(action, session, debugService, contextViewService, configurationService) {
|
|
270
|
-
super(null, action, [], -1, contextViewService, defaultSelectBoxStyles, { ariaLabel: ( localizeWithPath(
|
|
271
|
-
'vs/workbench/contrib/debug/browser/debugActionViewItems',
|
|
272
|
-
'debugSession',
|
|
273
|
-
'Debug Session'
|
|
274
|
-
)) });
|
|
254
|
+
super(null, action, [], -1, contextViewService, defaultSelectBoxStyles, { ariaLabel: ( localizeWithPath(_moduleId, 4, 'Debug Session')) });
|
|
275
255
|
this.debugService = debugService;
|
|
276
256
|
this.configurationService = configurationService;
|
|
277
257
|
this._register(this.debugService.getViewModel().onDidFocusSession(() => {
|
|
@@ -302,14 +282,14 @@ let FocusSessionActionViewItem = class FocusSessionActionViewItem extends Select
|
|
|
302
282
|
session = this.getSelectedSession();
|
|
303
283
|
}
|
|
304
284
|
const sessions = this.getSessions();
|
|
305
|
-
const names = ( sessions.map(s => {
|
|
285
|
+
const names = ( (sessions.map(s => {
|
|
306
286
|
const label = s.getLabel();
|
|
307
287
|
if (s.parentSession) {
|
|
308
288
|
return `\u00A0\u00A0${label}`;
|
|
309
289
|
}
|
|
310
290
|
return label;
|
|
311
|
-
}));
|
|
312
|
-
this.setOptions(( names.map(data => ({ text: data }))), session ? sessions.indexOf(session) : undefined);
|
|
291
|
+
})));
|
|
292
|
+
this.setOptions(( (names.map(data => ({ text: data })))), session ? sessions.indexOf(session) : undefined);
|
|
313
293
|
}
|
|
314
294
|
getSelectedSession() {
|
|
315
295
|
const session = this.debugService.getViewModel().focusedSession;
|
|
@@ -328,10 +308,10 @@ let FocusSessionActionViewItem = class FocusSessionActionViewItem extends Select
|
|
|
328
308
|
return focusedSession;
|
|
329
309
|
}
|
|
330
310
|
};
|
|
331
|
-
FocusSessionActionViewItem = ( __decorate([
|
|
332
|
-
( __param(2, IDebugService)),
|
|
333
|
-
( __param(3, IContextViewService)),
|
|
334
|
-
( __param(4, IConfigurationService))
|
|
335
|
-
], FocusSessionActionViewItem));
|
|
311
|
+
FocusSessionActionViewItem = ( (__decorate([
|
|
312
|
+
( (__param(2, IDebugService))),
|
|
313
|
+
( (__param(3, IContextViewService))),
|
|
314
|
+
( (__param(4, IConfigurationService)))
|
|
315
|
+
], FocusSessionActionViewItem)));
|
|
336
316
|
|
|
337
317
|
export { FocusSessionActionViewItem, StartDebugActionViewItem };
|
|
@@ -24,7 +24,8 @@ import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/commo
|
|
|
24
24
|
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
25
25
|
import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
26
26
|
|
|
27
|
-
const
|
|
27
|
+
const _moduleId = "vs/workbench/contrib/debug/browser/debugAdapterManager";
|
|
28
|
+
const jsonRegistry = ( (Registry.as(Extensions.JSONContribution)));
|
|
28
29
|
let AdapterManager = class AdapterManager extends Disposable {
|
|
29
30
|
constructor(delegate, editorService, configurationService, quickInputService, instantiationService, commandService, extensionService, contextKeyService, languageService, dialogService, lifecycleService) {
|
|
30
31
|
super();
|
|
@@ -38,12 +39,12 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
38
39
|
this.languageService = languageService;
|
|
39
40
|
this.dialogService = dialogService;
|
|
40
41
|
this.lifecycleService = lifecycleService;
|
|
41
|
-
this.debugAdapterFactories = ( new Map());
|
|
42
|
-
this._onDidRegisterDebugger = ( new Emitter());
|
|
43
|
-
this._onDidDebuggersExtPointRead = ( new Emitter());
|
|
42
|
+
this.debugAdapterFactories = ( (new Map()));
|
|
43
|
+
this._onDidRegisterDebugger = ( (new Emitter()));
|
|
44
|
+
this._onDidDebuggersExtPointRead = ( (new Emitter()));
|
|
44
45
|
this.breakpointContributions = [];
|
|
45
|
-
this.debuggerWhenKeys = ( new Set());
|
|
46
|
-
this.usedDebugTypes = ( new Set());
|
|
46
|
+
this.debuggerWhenKeys = ( (new Set()));
|
|
47
|
+
this.usedDebugTypes = ( (new Set()));
|
|
47
48
|
this.adapterDescriptorFactories = [];
|
|
48
49
|
this.debuggers = [];
|
|
49
50
|
this.registerListeners();
|
|
@@ -72,8 +73,8 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
72
73
|
added.value.forEach(rawAdapter => {
|
|
73
74
|
if (!rawAdapter.type || (typeof rawAdapter.type !== 'string')) {
|
|
74
75
|
added.collector.error(( localizeWithPath(
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
_moduleId,
|
|
77
|
+
0,
|
|
77
78
|
"Debugger 'type' can not be omitted and must be of type 'string'."
|
|
78
79
|
)));
|
|
79
80
|
}
|
|
@@ -98,16 +99,16 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
98
99
|
});
|
|
99
100
|
});
|
|
100
101
|
delta.removed.forEach(removed => {
|
|
101
|
-
const removedTypes = ( removed.value.map(rawAdapter => rawAdapter.type));
|
|
102
|
+
const removedTypes = ( (removed.value.map(rawAdapter => rawAdapter.type)));
|
|
102
103
|
this.debuggers = this.debuggers.filter(d => removedTypes.indexOf(d.type) === -1);
|
|
103
104
|
});
|
|
104
105
|
this.updateDebugAdapterSchema();
|
|
105
106
|
this._onDidDebuggersExtPointRead.fire();
|
|
106
107
|
});
|
|
107
108
|
breakpointsExtPoint.setHandler(extensions => {
|
|
108
|
-
this.breakpointContributions = extensions.flatMap(ext => ( ext.value.map(
|
|
109
|
+
this.breakpointContributions = extensions.flatMap(ext => ( (ext.value.map(
|
|
109
110
|
breakpoint => this.instantiationService.createInstance(Breakpoints, breakpoint)
|
|
110
|
-
)));
|
|
111
|
+
))));
|
|
111
112
|
});
|
|
112
113
|
}
|
|
113
114
|
updateDebugAdapterSchema() {
|
|
@@ -119,8 +120,8 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
119
120
|
'name': {
|
|
120
121
|
type: 'string',
|
|
121
122
|
description: ( localizeWithPath(
|
|
122
|
-
|
|
123
|
-
|
|
123
|
+
_moduleId,
|
|
124
|
+
1,
|
|
124
125
|
"Name of configuration; appears in the launch configuration dropdown menu."
|
|
125
126
|
)),
|
|
126
127
|
default: 'Launch'
|
|
@@ -128,8 +129,8 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
128
129
|
'debugServer': {
|
|
129
130
|
type: 'number',
|
|
130
131
|
description: ( localizeWithPath(
|
|
131
|
-
|
|
132
|
-
|
|
132
|
+
_moduleId,
|
|
133
|
+
2,
|
|
133
134
|
"For debug extension development only: if a port is specified VS Code tries to connect to a debug adapter running in server mode"
|
|
134
135
|
)),
|
|
135
136
|
default: 4711
|
|
@@ -140,11 +141,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
140
141
|
}],
|
|
141
142
|
default: '',
|
|
142
143
|
defaultSnippets: [{ body: { task: '', type: '' } }],
|
|
143
|
-
description: ( localizeWithPath(
|
|
144
|
-
'vs/workbench/contrib/debug/browser/debugAdapterManager',
|
|
145
|
-
'debugPrelaunchTask',
|
|
146
|
-
"Task to run before debug session starts."
|
|
147
|
-
))
|
|
144
|
+
description: ( localizeWithPath(_moduleId, 3, "Task to run before debug session starts."))
|
|
148
145
|
},
|
|
149
146
|
'postDebugTask': {
|
|
150
147
|
anyOf: [taskSchema, {
|
|
@@ -152,19 +149,15 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
152
149
|
}],
|
|
153
150
|
default: '',
|
|
154
151
|
defaultSnippets: [{ body: { task: '', type: '' } }],
|
|
155
|
-
description: ( localizeWithPath(
|
|
156
|
-
'vs/workbench/contrib/debug/browser/debugAdapterManager',
|
|
157
|
-
'debugPostDebugTask',
|
|
158
|
-
"Task to run after debug session ends."
|
|
159
|
-
))
|
|
152
|
+
description: ( localizeWithPath(_moduleId, 4, "Task to run after debug session ends."))
|
|
160
153
|
},
|
|
161
154
|
'presentation': presentationSchema,
|
|
162
155
|
'internalConsoleOptions': INTERNAL_CONSOLE_OPTIONS_SCHEMA,
|
|
163
156
|
'suppressMultipleSessionWarning': {
|
|
164
157
|
type: 'boolean',
|
|
165
158
|
description: ( localizeWithPath(
|
|
166
|
-
|
|
167
|
-
|
|
159
|
+
_moduleId,
|
|
160
|
+
5,
|
|
168
161
|
"Disable the warning when trying to start the same debug configuration more than once."
|
|
169
162
|
)),
|
|
170
163
|
default: true
|
|
@@ -270,7 +263,9 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
270
263
|
if (this.configurationService.getValue('debug').allowBreakpointsEverywhere) {
|
|
271
264
|
return true;
|
|
272
265
|
}
|
|
273
|
-
return (
|
|
266
|
+
return (
|
|
267
|
+
(this.breakpointContributions.some(breakpoints => breakpoints.language === languageId && breakpoints.enabled))
|
|
268
|
+
);
|
|
274
269
|
}
|
|
275
270
|
getDebugger(type) {
|
|
276
271
|
return this.debuggers.find(dbg => equalsIgnoreCase(dbg.type, type));
|
|
@@ -318,17 +313,12 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
318
313
|
const { confirmed } = await this.dialogService.confirm({
|
|
319
314
|
type: Severity$1.Warning,
|
|
320
315
|
message: ( localizeWithPath(
|
|
321
|
-
|
|
322
|
-
|
|
316
|
+
_moduleId,
|
|
317
|
+
6,
|
|
323
318
|
"You don't have an extension for debugging {0}. Should we find a {0} extension in the Marketplace?",
|
|
324
319
|
languageLabel
|
|
325
320
|
)),
|
|
326
|
-
primaryButton: ( localizeWithPath(
|
|
327
|
-
'vs/workbench/contrib/debug/browser/debugAdapterManager',
|
|
328
|
-
{ key: 'findExtension', comment: ['&& denotes a mnemonic'] },
|
|
329
|
-
"&&Find {0} extension",
|
|
330
|
-
languageLabel
|
|
331
|
-
))
|
|
321
|
+
primaryButton: ( localizeWithPath(_moduleId, 7, "&&Find {0} extension", languageLabel))
|
|
332
322
|
});
|
|
333
323
|
if (confirmed) {
|
|
334
324
|
await this.commandService.executeCommand('debug.installAdditionalDebuggers', languageLabel);
|
|
@@ -345,7 +335,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
345
335
|
if (descriptor.id && !!this.earlyActivatedExtensions?.has(descriptor.id)) {
|
|
346
336
|
suggestedCandidates.push(d);
|
|
347
337
|
}
|
|
348
|
-
else if (( this.usedDebugTypes.has(d.type))) {
|
|
338
|
+
else if (( (this.usedDebugTypes.has(d.type)))) {
|
|
349
339
|
suggestedCandidates.push(d);
|
|
350
340
|
}
|
|
351
341
|
else {
|
|
@@ -354,33 +344,16 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
354
344
|
});
|
|
355
345
|
const picks = [];
|
|
356
346
|
if (suggestedCandidates.length > 0) {
|
|
357
|
-
picks.push({ type: 'separator', label: ( localizeWithPath(
|
|
358
|
-
'vs/workbench/contrib/debug/browser/debugAdapterManager',
|
|
359
|
-
'suggestedDebuggers',
|
|
360
|
-
"Suggested"
|
|
361
|
-
)) }, ...( suggestedCandidates.map(c => ({ label: c.label, debugger: c }))));
|
|
347
|
+
picks.push({ type: 'separator', label: ( localizeWithPath(_moduleId, 8, "Suggested")) }, ...( (suggestedCandidates.map(c => ({ label: c.label, debugger: c })))));
|
|
362
348
|
}
|
|
363
349
|
if (otherCandidates.length > 0) {
|
|
364
350
|
if (picks.length > 0) {
|
|
365
351
|
picks.push({ type: 'separator', label: '' });
|
|
366
352
|
}
|
|
367
|
-
picks.push(...( otherCandidates.map(c => ({ label: c.label, debugger: c }))));
|
|
353
|
+
picks.push(...( (otherCandidates.map(c => ({ label: c.label, debugger: c })))));
|
|
368
354
|
}
|
|
369
|
-
picks.push({ type: 'separator', label: '' }, { label: languageLabel ? ( localizeWithPath(
|
|
370
|
-
|
|
371
|
-
'installLanguage',
|
|
372
|
-
"Install an extension for {0}...",
|
|
373
|
-
languageLabel
|
|
374
|
-
)) : ( localizeWithPath(
|
|
375
|
-
'vs/workbench/contrib/debug/browser/debugAdapterManager',
|
|
376
|
-
'installExt',
|
|
377
|
-
"Install extension..."
|
|
378
|
-
)) });
|
|
379
|
-
const placeHolder = ( localizeWithPath(
|
|
380
|
-
'vs/workbench/contrib/debug/browser/debugAdapterManager',
|
|
381
|
-
'selectDebug',
|
|
382
|
-
"Select debugger"
|
|
383
|
-
));
|
|
355
|
+
picks.push({ type: 'separator', label: '' }, { label: languageLabel ? ( localizeWithPath(_moduleId, 9, "Install an extension for {0}...", languageLabel)) : ( localizeWithPath(_moduleId, 10, "Install extension...")) });
|
|
356
|
+
const placeHolder = ( localizeWithPath(_moduleId, 11, "Select debugger"));
|
|
384
357
|
return this.quickInputService.pick(picks, { activeItem: picks[0], placeHolder })
|
|
385
358
|
.then(picked => {
|
|
386
359
|
if (picked && picked.debugger) {
|
|
@@ -394,7 +367,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
394
367
|
}
|
|
395
368
|
initExtensionActivationsIfNeeded() {
|
|
396
369
|
if (!this.earlyActivatedExtensions) {
|
|
397
|
-
this.earlyActivatedExtensions = ( new Set());
|
|
370
|
+
this.earlyActivatedExtensions = ( (new Set()));
|
|
398
371
|
const status = this.extensionService.getExtensionsStatus();
|
|
399
372
|
for (const id in status) {
|
|
400
373
|
if (!!status[id].activationTimes) {
|
|
@@ -415,17 +388,17 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
415
388
|
await Promise.all(promises);
|
|
416
389
|
}
|
|
417
390
|
};
|
|
418
|
-
AdapterManager = ( __decorate([
|
|
419
|
-
( __param(1, IEditorService)),
|
|
420
|
-
( __param(2, IConfigurationService)),
|
|
421
|
-
( __param(3, IQuickInputService)),
|
|
422
|
-
( __param(4, IInstantiationService)),
|
|
423
|
-
( __param(5, ICommandService)),
|
|
424
|
-
( __param(6, IExtensionService)),
|
|
425
|
-
( __param(7, IContextKeyService)),
|
|
426
|
-
( __param(8, ILanguageService)),
|
|
427
|
-
( __param(9, IDialogService)),
|
|
428
|
-
( __param(10, ILifecycleService))
|
|
429
|
-
], AdapterManager));
|
|
391
|
+
AdapterManager = ( (__decorate([
|
|
392
|
+
( (__param(1, IEditorService))),
|
|
393
|
+
( (__param(2, IConfigurationService))),
|
|
394
|
+
( (__param(3, IQuickInputService))),
|
|
395
|
+
( (__param(4, IInstantiationService))),
|
|
396
|
+
( (__param(5, ICommandService))),
|
|
397
|
+
( (__param(6, IExtensionService))),
|
|
398
|
+
( (__param(7, IContextKeyService))),
|
|
399
|
+
( (__param(8, ILanguageService))),
|
|
400
|
+
( (__param(9, IDialogService))),
|
|
401
|
+
( (__param(10, ILifecycleService)))
|
|
402
|
+
], AdapterManager)));
|
|
430
403
|
|
|
431
404
|
export { AdapterManager };
|