@codingame/monaco-vscode-debug-service-override 6.0.3 → 7.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/workbench/contrib/debug/browser/callStackView.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +58 -53
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +4 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +34 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +22 -15
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +14 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +21 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +10 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +58 -37
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +4 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +13 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +30 -8
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +4 -1
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +1 -1
|
@@ -117,7 +117,7 @@ let WatchExpressionsView = class WatchExpressionsView extends ViewPane {
|
|
|
117
117
|
let horizontalScrolling;
|
|
118
118
|
this._register(this.debugService.getViewModel().onDidSelectExpression(e => {
|
|
119
119
|
const expression = e?.expression;
|
|
120
|
-
if (expression && this.tree.
|
|
120
|
+
if (expression && this.tree.hasNode(expression)) {
|
|
121
121
|
horizontalScrolling = this.tree.options.horizontalScrolling;
|
|
122
122
|
if (horizontalScrolling) {
|
|
123
123
|
this.tree.updateOptions({ horizontalScrolling: false });
|
|
@@ -227,24 +227,45 @@ class WatchExpressionsDataSource extends AbstractExpressionDataSource {
|
|
|
227
227
|
let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractExpressionsRenderer {
|
|
228
228
|
static { WatchExpressionsRenderer_1 = this; }
|
|
229
229
|
static { this.ID = 'watchexpression'; }
|
|
230
|
-
constructor(menuService, contextKeyService, debugService, contextViewService, hoverService) {
|
|
230
|
+
constructor(menuService, contextKeyService, debugService, contextViewService, hoverService, configurationService) {
|
|
231
231
|
super(debugService, contextViewService, hoverService);
|
|
232
232
|
this.menuService = menuService;
|
|
233
233
|
this.contextKeyService = contextKeyService;
|
|
234
|
+
this.configurationService = configurationService;
|
|
234
235
|
}
|
|
235
236
|
get templateId() {
|
|
236
237
|
return WatchExpressionsRenderer_1.ID;
|
|
237
238
|
}
|
|
238
239
|
renderElement(node, index, data) {
|
|
240
|
+
data.elementDisposable.clear();
|
|
241
|
+
data.elementDisposable.add(this.configurationService.onDidChangeConfiguration(e => {
|
|
242
|
+
if (e.affectsConfiguration('debug.showVariableTypes')) {
|
|
243
|
+
super.renderExpressionElement(node.element, node, data);
|
|
244
|
+
}
|
|
245
|
+
}));
|
|
239
246
|
super.renderExpressionElement(node.element, node, data);
|
|
240
247
|
}
|
|
241
248
|
renderExpression(expression, data, highlights) {
|
|
242
|
-
|
|
249
|
+
let text;
|
|
250
|
+
data.type.textContent = '';
|
|
251
|
+
const showType = this.configurationService.getValue('debug').showVariableTypes;
|
|
252
|
+
if (showType && expression.type) {
|
|
253
|
+
text = typeof expression.value === 'string' ? `${expression.name}: ` : expression.name;
|
|
254
|
+
data.type.textContent = expression.type + ' =';
|
|
255
|
+
}
|
|
256
|
+
else {
|
|
257
|
+
text = typeof expression.value === 'string' ? `${expression.name} =` : expression.name;
|
|
258
|
+
}
|
|
243
259
|
let title;
|
|
244
260
|
if (expression.type) {
|
|
245
|
-
|
|
246
|
-
expression.
|
|
247
|
-
|
|
261
|
+
if (showType) {
|
|
262
|
+
title = `${expression.name}`;
|
|
263
|
+
}
|
|
264
|
+
else {
|
|
265
|
+
title = expression.type === expression.value ?
|
|
266
|
+
expression.type :
|
|
267
|
+
`${expression.type}`;
|
|
268
|
+
}
|
|
248
269
|
}
|
|
249
270
|
else {
|
|
250
271
|
title = expression.value;
|
|
@@ -306,7 +327,8 @@ WatchExpressionsRenderer = WatchExpressionsRenderer_1 = ( (__decorate([
|
|
|
306
327
|
( (__param(1, IContextKeyService))),
|
|
307
328
|
( (__param(2, IDebugService))),
|
|
308
329
|
( (__param(3, IContextViewService))),
|
|
309
|
-
( (__param(4, IHoverService)))
|
|
330
|
+
( (__param(4, IHoverService))),
|
|
331
|
+
( (__param(5, IConfigurationService)))
|
|
310
332
|
], WatchExpressionsRenderer)));
|
|
311
333
|
function getContextForWatchExpressionMenu(parentContext, expression) {
|
|
312
334
|
return parentContext.createOverlay([
|
|
@@ -464,4 +486,4 @@ registerAction2(class RemoveAllWatchExpressionsAction extends Action2 {
|
|
|
464
486
|
}
|
|
465
487
|
});
|
|
466
488
|
|
|
467
|
-
export { ADD_WATCH_ID, ADD_WATCH_LABEL, REMOVE_WATCH_EXPRESSIONS_COMMAND_ID, REMOVE_WATCH_EXPRESSIONS_LABEL, WatchExpressionsView };
|
|
489
|
+
export { ADD_WATCH_ID, ADD_WATCH_LABEL, REMOVE_WATCH_EXPRESSIONS_COMMAND_ID, REMOVE_WATCH_EXPRESSIONS_LABEL, WatchExpressionsRenderer, WatchExpressionsView };
|
|
@@ -11,7 +11,7 @@ let DebugLifecycle = class DebugLifecycle {
|
|
|
11
11
|
this.debugService = debugService;
|
|
12
12
|
this.configurationService = configurationService;
|
|
13
13
|
this.dialogService = dialogService;
|
|
14
|
-
lifecycleService.onBeforeShutdown(async (e) => e.veto(this.shouldVetoShutdown(e.reason), 'veto.debug'));
|
|
14
|
+
this.disposable = lifecycleService.onBeforeShutdown(async (e) => e.veto(this.shouldVetoShutdown(e.reason), 'veto.debug'));
|
|
15
15
|
}
|
|
16
16
|
shouldVetoShutdown(_reason) {
|
|
17
17
|
const rootSessions = this.debugService.getModel().getSessions().filter(s => s.parentSession === undefined);
|
|
@@ -24,6 +24,9 @@ let DebugLifecycle = class DebugLifecycle {
|
|
|
24
24
|
}
|
|
25
25
|
return this.showWindowCloseConfirmation(rootSessions.length);
|
|
26
26
|
}
|
|
27
|
+
dispose() {
|
|
28
|
+
return this.disposable.dispose();
|
|
29
|
+
}
|
|
27
30
|
async showWindowCloseConfirmation(numSessions) {
|
|
28
31
|
let message;
|
|
29
32
|
if (numSessions === 1) {
|
|
@@ -226,7 +226,7 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
|
|
|
226
226
|
1,
|
|
227
227
|
"Variable '{0}' must be defined in an '{1}' section of the debug or task configuration.",
|
|
228
228
|
variable,
|
|
229
|
-
'
|
|
229
|
+
'inputs'
|
|
230
230
|
))))));
|
|
231
231
|
}
|
|
232
232
|
const info = inputInfos.filter(item => item.id === variable).pop();
|