Skip to content

Commit

Permalink
Revert "moved code next to other throw-ball func"
Browse files Browse the repository at this point in the history
This reverts commit 58ba638.
  • Loading branch information
rlszabo committed Apr 4, 2023
1 parent 6b7cc04 commit 7963ca1
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/extension/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,17 @@ export function activate(context: vscode.ExtensionContext) {
),
);

context.subscriptions.push(
vscode.commands.registerCommand('vscode-pets.throw-with-mouse',
() => {
const panel = getPetPanel();
if (panel !== undefined) {
panel.setThrowWithMouse(true);
}
}
),
);

updateStatusBar();

const spec = PetSpecification.fromConfiguration();
Expand Down Expand Up @@ -375,17 +386,6 @@ export function activate(context: vscode.ExtensionContext) {
}),
);

context.subscriptions.push(
vscode.commands.registerCommand('vscode-pets.throw-with-mouse',
() => {
const panel = getPetPanel();
if (panel !== undefined) {
panel.setThrowWithMouse(true);
}
}
),
);

context.subscriptions.push(
vscode.commands.registerCommand('vscode-pets.delete-pet', async () => {
const panel = getPetPanel();
Expand Down

0 comments on commit 7963ca1

Please sign in to comment.