Reputation: 11397
I'm trying to bind Clear Console
(workbench.debug.panel.action.clearReplAction
) to a shortcut, the problem is what's the When
condition for checking if the debug console is active?
Upvotes: 1
Views: 145
Reputation: 11397
I've figured this out:
{
"key": "ctrl+l",
"command": "workbench.debug.panel.action.clearReplAction",
"when": "inDebugRepl && textInputFocus"
}
Upvotes: 1