提交 5026774c 编写于 作者: I isidor

fixes #38370

上级 ec4af16c
...@@ -779,7 +779,8 @@ export class VariablesController extends BaseDebugController { ...@@ -779,7 +779,8 @@ export class VariablesController extends BaseDebugController {
protected onLeftClick(tree: ITree, element: any, event: IMouseEvent): boolean { protected onLeftClick(tree: ITree, element: any, event: IMouseEvent): boolean {
// double click on primitive value: open input box to be able to set the value // double click on primitive value: open input box to be able to set the value
if (element instanceof Variable && event.detail === 2) { const process = this.debugService.getViewModel().focusedProcess;
if (element instanceof Variable && event.detail === 2 && process && process.session.capabilities.supportsSetVariable) {
const expression = <debug.IExpression>element; const expression = <debug.IExpression>element;
this.debugService.getViewModel().setSelectedExpression(expression); this.debugService.getViewModel().setSelectedExpression(expression);
return true; return true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册