-
-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added pet interaction, Dynamic throwing! #307
Conversation
Also, I'm sorry I didn't make an issue for this I totally forgot. If you need me to make one and link it to this PR let me know. |
Codecov Report
@@ Coverage Diff @@
## master #307 +/- ##
==========================================
- Coverage 15.06% 14.11% -0.96%
==========================================
Files 17 17
Lines 697 744 +47
Branches 93 101 +8
==========================================
Hits 105 105
- Misses 592 639 +47
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@tonybaloney I see that Codecov did not like my pull request, what do I need to fix to get this request merged? |
Dw about the coverage report. You can propagate settings via the send message (as a parameter) or when the panel starts up. |
@tonybaloney You are totally right about that, thanks for the feedback. I originally constructed the functionality in a way that would depend on the 3 commands but eventually realized it only needed the one and for some reason I just kept the other 2 despite their unneeded complexity. I'll fix it and let you know when it's ready. |
2022-11-07.03-51-23.movEvery time I am hovering over the icon, I am clicking it. This either enables me to drag my mouse to throw the ball or disables that ability depending on the previous state of that toggle. |
I haven't figured out a good way of showing the user that the button is toggled on or off yet because I do not have a lot of experience in the world of vscode extensions yet. I looked at some documentation and decided Id try to find a better solution later. If you have some insight as to how I might go about achieving this goal I'd love to hear it! |
Im thinking about taking the button out altogether and just forcing the user to execute the command via the command pallet or binding it to a key binding. What are your thoughts @tonybaloney ? |
2022-11-07.16-25-56.mov@tonybaloney I decided to just make it a command instead of also binding the command to a button in the action toolbar. The command is |
@tonybaloney were you ever able to get this working on your local? |
Sorry, I've been really busy. Got it working this time. Love the behaviour and it makes it a lot more fun to be able to lob the ball sideways. Some feedback--
You can reuse the toggle action code by adding a watch to the configuration option, like this. You'll need to have some logic in activate to set the state to whatever is configured by the user. For (2) I understand that's a bit more work and you've already done a lot to get this feature built, so I can merge as-is and change it to a configuration setting for you if you want? |
Hey I really appreciate your feedback! I think you are right about the "dynamic throwing" name, I chose something quick and easy so I could get to the development stuff. "Throw ball with mouse" or "Throw with mouse" would definitely be more user friendly. As for the global states, I ran into the same problems you mention. It is my first time working on a vscode extension and I didn't really know how to go about fixing them even after some google searches. I am totally willing to take a stab at it given your new tips but I do feel like you know the organizational flow that this project is going for a little better than I do currently. I am totally ok if you'd like to merge as-is and change it to a configuration setting! Let me know if you need me to change it to a config setting and Ill do my best. I'm definitely going to look over the code if you do decide to do it because I am curious and it'll help in the future if I contribute more. |
@Luke-G-Cordova In that case, I'll merge this and then raise another PR to demonstrate the change and ask for your review on that PR. |
Added pet interaction, Dynamic throwing!
Dynamic Throwing!
I really like and enjoy this extension but I felt the need to have more interaction with my pets. Let me know if I breached any formatting for this project or you find any bugs with my code, Ill try to fix them when I can.
This feature contributes to #137