Skip to content

Commit

Permalink
bug fix: tonybaloney#375 Throw ball with mouse command not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
rlszabo committed Mar 27, 2023
1 parent d212416 commit 1d7c842
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/extension/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1d7c842

Please sign in to comment.