From ead5dfaa6d0de62f969f4fd60ebcd69ebf56a116 Mon Sep 17 00:00:00 2001 From: isidor Date: Tue, 9 Feb 2016 16:25:11 +0100 Subject: [PATCH] debug: focus the just added watch expression or function breakpoint fixes #2846 --- src/vs/workbench/parts/debug/browser/debugViewer.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/parts/debug/browser/debugViewer.ts b/src/vs/workbench/parts/debug/browser/debugViewer.ts index db7906f647a4..4f22fdf56f4e 100644 --- a/src/vs/workbench/parts/debug/browser/debugViewer.ts +++ b/src/vs/workbench/parts/debug/browser/debugViewer.ts @@ -63,7 +63,7 @@ export function renderExpressionValue(expressionOrValue: debug.IExpression|strin export function renderVariable(tree: tree.ITree, variable: model.Variable, data: IVariableTemplateData, debugInactive: boolean, showChanged: boolean): void { if (variable.available) { - data.name.textContent = `${variable.name}:`; + data.name.textContent = variable.name + ':'; } if (variable.value) { @@ -106,6 +106,8 @@ function renderRenameBox(debugService: debug.IDebugService, contextViewService: tree.clearHighlight(); tree.DOMFocus(); + tree.setFocus(element); + // need to remove the input box since this template will be reused. container.removeChild(inputBoxContainer); lifecycle.disposeAll(toDispose);