mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-29 18:09:01 +01:00
debug: focus the just added watch expression or function breakpoint
fixes #2846
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user