From 1041e47c9fec4134c995890cf81059758b5b02a4 Mon Sep 17 00:00:00 2001 From: Josh Tynjala Date: Tue, 3 Jan 2023 07:26:27 -0800 Subject: [PATCH] vscode-extension: don't set key bindings if quick compile commands are disabled (references #663) --- vscode-extension/package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vscode-extension/package.json b/vscode-extension/package.json index 79dfc19fa..9aefd37c1 100644 --- a/vscode-extension/package.json +++ b/vscode-extension/package.json @@ -123,12 +123,14 @@ { "key": "ctrl+enter", "mac": "cmd+enter", - "command": "as3mxml.quickCompileAndRun" + "command": "as3mxml.quickCompileAndRun", + "when": "config.as3mxml.quickCompile.enabled" }, { "key": "ctrl+shift+enter", "mac": "cmd+shift+enter", - "command": "as3mxml.quickCompileAndDebug" + "command": "as3mxml.quickCompileAndDebug", + "when": "config.as3mxml.quickCompile.enabled" } ], "menus": {