@codingame/monaco-vscode-debug-service-override 4.5.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +140 -177
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +260 -531
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +34 -52
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +44 -71
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +116 -120
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +8 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +81 -140
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +73 -76
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +30 -30
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +17 -49
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +143 -135
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +220 -177
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +9 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +70 -111
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +84 -65
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +85 -57
- 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 +52 -78
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +60 -76
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +29 -54
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +4 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +42 -55
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +17 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +84 -110
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +50 -88
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +60 -60
- 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/debugStorage.js +1 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +92 -111
- 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/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +0 -1042
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +0 -116
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +0 -87
|
@@ -21,20 +21,21 @@ import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
|
|
|
21
21
|
import { IContextViewService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
|
|
22
22
|
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
23
23
|
import { dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
24
|
-
import { ADD_CONFIGURATION_ID } from '
|
|
24
|
+
import { ADD_CONFIGURATION_ID } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
25
25
|
import { BaseActionViewItem, SelectActionViewItem } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionViewItems';
|
|
26
26
|
import { debugStart } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
27
27
|
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
28
28
|
import { defaultSelectBoxStyles } from 'vscode/vscode/vs/platform/theme/browser/defaultStyles';
|
|
29
|
-
import { setupCustomHover } from 'vscode/vscode/vs/base/browser/ui/hover/updatableHoverWidget';
|
|
30
29
|
import { getDefaultHoverDelegate } from 'vscode/vscode/vs/base/browser/ui/hover/hoverDelegateFactory';
|
|
30
|
+
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
|
|
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; }
|
|
36
37
|
static { this.SEPARATOR = '\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500'; }
|
|
37
|
-
constructor(context, action, options, debugService, configurationService, commandService, contextService, contextViewService, keybindingService) {
|
|
38
|
+
constructor(context, action, options, debugService, configurationService, commandService, contextService, contextViewService, keybindingService, hoverService) {
|
|
38
39
|
super(context, action, options);
|
|
39
40
|
this.context = context;
|
|
40
41
|
this.debugService = debugService;
|
|
@@ -42,21 +43,18 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
42
43
|
this.commandService = commandService;
|
|
43
44
|
this.contextService = contextService;
|
|
44
45
|
this.keybindingService = keybindingService;
|
|
46
|
+
this.hoverService = hoverService;
|
|
45
47
|
this.debugOptions = [];
|
|
46
48
|
this.selected = 0;
|
|
47
49
|
this.providers = [];
|
|
48
50
|
this.toDispose = [];
|
|
49
|
-
this.selectBox = ( new SelectBox(
|
|
51
|
+
this.selectBox = ( (new SelectBox(
|
|
50
52
|
[],
|
|
51
53
|
-1,
|
|
52
54
|
contextViewService,
|
|
53
55
|
defaultSelectBoxStyles,
|
|
54
|
-
{ ariaLabel: ( localizeWithPath(
|
|
55
|
-
|
|
56
|
-
'debugLaunchConfigurations',
|
|
57
|
-
'Debug Launch Configurations'
|
|
58
|
-
)) }
|
|
59
|
-
));
|
|
56
|
+
{ ariaLabel: ( localizeWithPath(_moduleId, 0, 'Debug Launch Configurations')) }
|
|
57
|
+
)));
|
|
60
58
|
this.selectBox.setFocusable(false);
|
|
61
59
|
this.toDispose.push(this.selectBox);
|
|
62
60
|
this.registerListeners();
|
|
@@ -78,7 +76,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
78
76
|
const keybinding = this.keybindingService.lookupKeybinding(this.action.id)?.getLabel();
|
|
79
77
|
const keybindingLabel = keybinding ? ` (${keybinding})` : '';
|
|
80
78
|
const title = this.action.label + keybindingLabel;
|
|
81
|
-
this.toDispose.push(
|
|
79
|
+
this.toDispose.push(this.hoverService.setupUpdatableHover(getDefaultHoverDelegate('mouse'), this.start, title));
|
|
82
80
|
this.start.setAttribute('role', 'button');
|
|
83
81
|
this.start.ariaLabel = title;
|
|
84
82
|
this.toDispose.push(addDisposableListener(this.start, EventType.CLICK, () => {
|
|
@@ -99,7 +97,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
99
97
|
this.start.classList.remove('active');
|
|
100
98
|
}));
|
|
101
99
|
this.toDispose.push(addDisposableListener(this.start, EventType.KEY_DOWN, (e) => {
|
|
102
|
-
const event = ( new StandardKeyboardEvent(e));
|
|
100
|
+
const event = ( (new StandardKeyboardEvent(e)));
|
|
103
101
|
if (event.equals(17 )) {
|
|
104
102
|
this.start.tabIndex = -1;
|
|
105
103
|
this.selectBox.focus();
|
|
@@ -119,7 +117,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
119
117
|
const selectBoxContainer = $('.configuration');
|
|
120
118
|
this.selectBox.render(append(container, selectBoxContainer));
|
|
121
119
|
this.toDispose.push(addDisposableListener(selectBoxContainer, EventType.KEY_DOWN, (e) => {
|
|
122
|
-
const event = ( new StandardKeyboardEvent(e));
|
|
120
|
+
const event = ( (new StandardKeyboardEvent(e)));
|
|
123
121
|
if (event.equals(15 )) {
|
|
124
122
|
this.selectBox.setFocusable(false);
|
|
125
123
|
this.start.tabIndex = 0;
|
|
@@ -213,11 +211,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
213
211
|
});
|
|
214
212
|
});
|
|
215
213
|
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 });
|
|
214
|
+
this.debugOptions.push({ label: ( localizeWithPath(_moduleId, 1, "No Configurations")), handler: async () => false });
|
|
221
215
|
}
|
|
222
216
|
this.debugOptions.push({ label: StartDebugActionViewItem_1.SEPARATOR, handler: () => Promise.resolve(false) });
|
|
223
217
|
disabledIdxs.push(this.debugOptions.length - 1);
|
|
@@ -235,43 +229,31 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
235
229
|
});
|
|
236
230
|
});
|
|
237
231
|
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
|
-
));
|
|
232
|
+
const label = inWorkspace ? ( localizeWithPath(_moduleId, 2, "Add Config ({0})...", l.name)) : ( localizeWithPath(_moduleId, 3, "Add Configuration..."));
|
|
248
233
|
this.debugOptions.push({
|
|
249
234
|
label, handler: async () => {
|
|
250
|
-
await this.commandService.executeCommand(ADD_CONFIGURATION_ID, ( l.uri.toString()));
|
|
235
|
+
await this.commandService.executeCommand(ADD_CONFIGURATION_ID, ( (l.uri.toString())));
|
|
251
236
|
return false;
|
|
252
237
|
}
|
|
253
238
|
});
|
|
254
239
|
});
|
|
255
|
-
this.selectBox.setOptions(( this.debugOptions.map(
|
|
240
|
+
this.selectBox.setOptions(( (this.debugOptions.map(
|
|
256
241
|
(data, index) => ({ text: data.label, isDisabled: disabledIdxs.indexOf(index) !== -1 })
|
|
257
|
-
)), this.selected);
|
|
242
|
+
))), this.selected);
|
|
258
243
|
}
|
|
259
244
|
};
|
|
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
|
-
|
|
245
|
+
StartDebugActionViewItem = StartDebugActionViewItem_1 = ( (__decorate([
|
|
246
|
+
( (__param(3, IDebugService))),
|
|
247
|
+
( (__param(4, IConfigurationService))),
|
|
248
|
+
( (__param(5, ICommandService))),
|
|
249
|
+
( (__param(6, IWorkspaceContextService))),
|
|
250
|
+
( (__param(7, IContextViewService))),
|
|
251
|
+
( (__param(8, IKeybindingService))),
|
|
252
|
+
( (__param(9, IHoverService)))
|
|
253
|
+
], StartDebugActionViewItem)));
|
|
268
254
|
let FocusSessionActionViewItem = class FocusSessionActionViewItem extends SelectActionViewItem {
|
|
269
255
|
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
|
-
)) });
|
|
256
|
+
super(null, action, [], -1, contextViewService, defaultSelectBoxStyles, { ariaLabel: ( localizeWithPath(_moduleId, 4, 'Debug Session')) });
|
|
275
257
|
this.debugService = debugService;
|
|
276
258
|
this.configurationService = configurationService;
|
|
277
259
|
this._register(this.debugService.getViewModel().onDidFocusSession(() => {
|
|
@@ -302,14 +284,14 @@ let FocusSessionActionViewItem = class FocusSessionActionViewItem extends Select
|
|
|
302
284
|
session = this.getSelectedSession();
|
|
303
285
|
}
|
|
304
286
|
const sessions = this.getSessions();
|
|
305
|
-
const names = ( sessions.map(s => {
|
|
287
|
+
const names = ( (sessions.map(s => {
|
|
306
288
|
const label = s.getLabel();
|
|
307
289
|
if (s.parentSession) {
|
|
308
290
|
return `\u00A0\u00A0${label}`;
|
|
309
291
|
}
|
|
310
292
|
return label;
|
|
311
|
-
}));
|
|
312
|
-
this.setOptions(( names.map(data => ({ text: data }))), session ? sessions.indexOf(session) : undefined);
|
|
293
|
+
})));
|
|
294
|
+
this.setOptions(( (names.map(data => ({ text: data })))), session ? sessions.indexOf(session) : undefined);
|
|
313
295
|
}
|
|
314
296
|
getSelectedSession() {
|
|
315
297
|
const session = this.debugService.getViewModel().focusedSession;
|
|
@@ -328,10 +310,10 @@ let FocusSessionActionViewItem = class FocusSessionActionViewItem extends Select
|
|
|
328
310
|
return focusedSession;
|
|
329
311
|
}
|
|
330
312
|
};
|
|
331
|
-
FocusSessionActionViewItem = ( __decorate([
|
|
332
|
-
( __param(2, IDebugService)),
|
|
333
|
-
( __param(3, IContextViewService)),
|
|
334
|
-
( __param(4, IConfigurationService))
|
|
335
|
-
], FocusSessionActionViewItem));
|
|
313
|
+
FocusSessionActionViewItem = ( (__decorate([
|
|
314
|
+
( (__param(2, IDebugService))),
|
|
315
|
+
( (__param(3, IContextViewService))),
|
|
316
|
+
( (__param(4, IConfigurationService)))
|
|
317
|
+
], FocusSessionActionViewItem)));
|
|
336
318
|
|
|
337
319
|
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 };
|