检查调试控制台是否处于活动状态的“When”条件是什么?
What's the `When` condition for checking if the debug console is active?
我正在尝试将 Clear Console
(workbench.debug.panel.action.clearReplAction
) 绑定到快捷方式,问题是检查调试控制台是否处于活动状态的 When
条件是什么?
我已经弄明白了:
{
"key": "ctrl+l",
"command": "workbench.debug.panel.action.clearReplAction",
"when": "inDebugRepl && textInputFocus"
}
我正在尝试将 Clear Console
(workbench.debug.panel.action.clearReplAction
) 绑定到快捷方式,问题是检查调试控制台是否处于活动状态的 When
条件是什么?
我已经弄明白了:
{
"key": "ctrl+l",
"command": "workbench.debug.panel.action.clearReplAction",
"when": "inDebugRepl && textInputFocus"
}