Skip to content

Commit

Permalink
fix: only enter debug mode on f11 when debug view is visible (#1255)
Browse files Browse the repository at this point in the history
  • Loading branch information
connor4312 authored May 6, 2022
1 parent 56f1d5c commit 8ee57a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/build/generate-contributions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,10 @@ const keybindings = [
command: Commands.StartWithStopOnEntry,
key: 'F11',
mac: 'F11',
when: forNodeDebugType('debugConfigurationType', '!inDebugMode'),
when: forNodeDebugType(
'debugConfigurationType',
'!inDebugMode && activeViewlet == workbench.view.debug',
),
},
];

Expand Down

0 comments on commit 8ee57a5

Please sign in to comment.