-
Notifications
You must be signed in to change notification settings - Fork 145
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
Refactoring/code cleanup #817
Conversation
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.
@sebthom Thanks a lot for putting the effort into cleaning up and modernizing the code base, looks really impressive! 👍
There are a few minor formatting-related remarks, and I'm not a big fan of the last commit that introduces var
s, but that's just my personal opinion. Otherwise, LGTM.
BTW, it was a pleasure to review this PR. Thanks again!
org.eclipse.lsp4j.jsonrpc/src/test/java/org/eclipse/lsp4j/jsonrpc/test/LauncherTest.java
Show resolved
Hide resolved
...sonrpc.debug/src/main/java/org/eclipse/lsp4j/jsonrpc/debug/json/DebugMessageJsonHandler.java
Outdated
Show resolved
Hide resolved
...bug/src/main/java/org/eclipse/lsp4j/debug/adapters/RestartArgumentsArgumentsTypeAdapter.java
Outdated
Show resolved
Hide resolved
I'm fine with this - but was confused because I didn't see these warnings, until I realized that the projects were defaulting to workspace settings and my workspace and yours must be different. Can you please consider adding a commit where you save the compiler warnings/etc and code style setting to the project? Without your change, in my workspace the only warnings I see are deprecated warnings. |
Same here. BTW, there is also |
I am aware that this is a sensitive topic :-) On the one hand I like code that is explicit on the other hand I like code that is terse. To get the best of both worlds I therefore only use the |
@sebthom Regarding introducing It is just that I have grown very much accustomed to always seeing the type on the left side of the variable declaration in the good old Java days :-) So, it is just my personal preference, and I understand that I'm quite biased towards it. Besides, I'm currently spending much more time with TypeScript, and slowly getting the type inference thing :-) Therefore, I'd like to leave this decision to others. Since @jonahgraham as the project lead apparently has no objections, I think we are good to go with it 👍 |
No objections :-) FWIW your journey sounds just like mine re vars and living in typescript land more and more. |
@jonahgraham I added my Eclipse compiler settings to the build.gradle file. If you regenerate the eclipse settings using |
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.
LGTM - lets start with the setting as you have them. If we run into problems we can change later.
At some point we should do the same for formatting and other style issues such as the fixed trailing whitespace. (I'm not going to get around to that, but welcome anyone else who wants to put in the effort)
@pisv Please let me know if you approve before I submit.
@sebthom to make your life easier, would you like to see this PR or #816 merged first?
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.
Looks great to me 👍 Wholeheartedly approve, and much appreciate this PR.
After having lived in the Eclipse IDE land for almost 20 years, I started contributing to Eclipse Theia about a year ago :-) |
To work on #816 I imported the lsp4j project into my Eclipse workspace and was greeted with a lot of compiler and style warnings. With this PR I am addressing a few of the issues. Each type of change is encapsulated in a separate commit for easier review.
If you disagree with some changes I can remove the respective commits.