Wenfang Du
Wenfang Du

Reputation: 11397

What's the `When` condition for checking if the debug console is active?

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

Answers (1)

Wenfang Du
Wenfang Du

Reputation: 11397

I've figured this out:

{
  "key": "ctrl+l",
  "command": "workbench.debug.panel.action.clearReplAction",
  "when": "inDebugRepl && textInputFocus"
}

Upvotes: 1

Related Questions