提交 f89daedc 编写于 作者: I isidor

debug: show 'add to watch' in context menu if there is a launch.json

fixes #3067
上级 f2c4a56c
......@@ -575,7 +575,7 @@ export class SelectionToWatchExpressionsAction extends EditorAction {
const selection = this.editor.getSelection();
const text = this.editor.getModel().getValueInRange(selection);
return !!selection && !selection.isEmpty() && this.debugService.getState() !== debug.State.Inactive && text && /\S/.test(text);
return !!selection && !selection.isEmpty() && this.debugService.getConfigurationName() && text && /\S/.test(text);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册