From 1d7c842cc63ae7aeed06e4f351e666c8d2da0f64 Mon Sep 17 00:00:00 2001 From: rlszabo Date: Mon, 27 Mar 2023 16:27:18 +0200 Subject: [PATCH] bug fix: #375 Throw ball with mouse command not found error --- src/extension/extension.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/extension/extension.ts b/src/extension/extension.ts index e49458ec..825bbb08 100644 --- a/src/extension/extension.ts +++ b/src/extension/extension.ts @@ -335,6 +335,19 @@ export function activate(context: vscode.ExtensionContext) { updateExtensionPositionContext, ), ); + + context.subscriptions.push( + vscode.commands.registerCommand('vscode-pets.throw-with-mouse', + () => { + console.log("THROW IT"); + const panel = getPetPanel(); + if (panel !== undefined) { + panel.setThrowWithMouse(true); + } + } + ), + ); + updateStatusBar(); const spec = PetSpecification.fromConfiguration();