-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 bind multiple Contribution using for of
instead foreach
#9148
Conversation
Fix to use `for of` instead `Array.foreach` when bind multiple Contribution in frontend module in common Signed-off-by: Byeongho Jung <hobeoung2@gmail.com>
I test on MacOS and Ubuntu 20.04 before pull request, and try to find ubuntu build problem now. |
@hogod those other pull-requests likely fail since they are not based on the latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hogod thank you for the contribution, was there a specific reason the changes were proposed?
I'm not sure the updates are necessary or add much value, nor is there a fixed convention (as described in the coding guidelines) for using for of
instead of forEach
when binding.
My purpose is to achieve same operation, same code for pretty. Previously, two styles were mixed.
And I agree with your opinion that it is not really necessary or add much value. Thanks for the review! |
Since we agree that the changes are not necessary, do not add value and are only for "pretty", should we close the pull-request? |
Okay, I'll close this pull request. |
Fix to use
for of
insteadArray.foreach
when bind multiple Contribution in frontend module in commonSigned-off-by: Byeongho Jung hobeoung2@gmail.com
What it does
When bind multiple contribution someone use
for of
(ex. monaco-frontend-module, terminal-frontend-module, etc) and others useforeach
(ex. frontend-application-module, editor-frontend-module). So, I fix them to usefor of
in common. Cause this logic bind designated Contribution rather than processing Array element, I think it is natural to usefor of
.How to test
I Just check working well and check correct parameter passed to bind() using logging.
Review checklist
Reminder for reviewers