From 8ee57a5c38910e3956666eb18d4c495aad3e99e2 Mon Sep 17 00:00:00 2001 From: Connor Peet Date: Thu, 5 May 2022 20:02:28 -0700 Subject: [PATCH] fix: only enter debug mode on f11 when debug view is visible (#1255) Fixes https://github.com/microsoft/vscode/issues/141157 --- src/build/generate-contributions.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/build/generate-contributions.ts b/src/build/generate-contributions.ts index ade9f846f..6764a5329 100644 --- a/src/build/generate-contributions.ts +++ b/src/build/generate-contributions.ts @@ -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', + ), }, ];