提交 2804e0d2 编写于 作者: I isidor

fixes #65491

上级 a6ded3ce
......@@ -190,6 +190,11 @@ export abstract class AbstractExpressionsRenderer
data.toDispose.push(dom.addDisposableListener(inputBox.inputElement, 'blur', () => {
wrapUp(true);
}));
data.toDispose.push(dom.addDisposableListener(inputBox.inputElement, 'click', e => {
// Do not expand / collapse selected elements
e.preventDefault();
e.stopPropagation();
}));
};
return data;
......
......@@ -118,7 +118,7 @@ export class WatchExpressionsView extends ViewletPanel {
const element = e.element;
// double click on primitive value: open input box to be able to select and copy value.
if (element instanceof Expression) {
if (element instanceof Expression && element !== this.debugService.getViewModel().getSelectedExpression()) {
this.debugService.getViewModel().setSelectedExpression(element);
} else if (!element) {
// Double click in watch panel triggers to add a new watch expression
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册