-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
Fix VM plugins #2834
Fix VM plugins #2834
Conversation
This assumption is incorrect. We do not use StyLua. Do not use a formatter to make unnecessary changes. You can use range formatting on the code you wrote (if your plugin supports it). From the formatting results, it seems you didn't use StyLua but rather the built-in formatting functionality of LuaLS, as these alignments are unique to LuaLS. |
And when "fixing up" those unnecessary changes, please use amend/squash/fixup & force push. (or just mix reset everything and recommit from the start) Otherwise if you just create another commit say fix style issue, this will DOUBLE THE DAMAGE as changes are made TWICE and will leave 2 times changes in the git history. This will greatly impact future usage of git blame (when tracing which changes cause problems while debugging) Just a tip for quickly squashing the fixup commit: 😄
|
Thanks for the tips. I just force reset and recommitted, though your suggestions sound a fair bit more robust. 😄 |
Oops! I just noticed there were a couple unnecessary formats in plugin.lua too. Should be all good now. |
Thank you! |
closes #2831
This pull request fixes VM.OnCompileFunctionParam and its test case.
I had the StyLua autoformatter on so some formatting changes were made to compiler.lua. I'm not sure if this is a problem, as I had just assumed this project was StyLua compliant and I was expected to have the formatter running.