-
Notifications
You must be signed in to change notification settings - Fork 4
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
Cleanup dead code in webviews #34
Conversation
@Override | ||
protected final void handleAuthStatusChange(final boolean isLoggedIn) { | ||
var browser = super.getBrowser(); |
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.
should be able to do getBrowser I believe similar to L33
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 good! Just curious about the variable type for var browser = getBrowser()
across the Views
@@ -42,16 +30,13 @@ public AmazonQChatWebview() { | |||
@Override | |||
public final void createPartControl(final Composite parent) { | |||
setupAmazonQView(parent, true); | |||
browser = getBrowser(); | |||
var browser = getBrowser(); |
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.
Should the variable type be Browser
instead of var
?
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.
Type inference is supported as of Java 10+ - another thing I would like to do consistently and add a check for if possible.
Description of changes:
We had a few leftover "goodies" in our views from the prototype days - specifically a handler for opening the preference window, selection changed, and a leftover JS file that isn't used. We also still had an LSP binary still checked in to the codebase. 😄
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.