Skip to content
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

Merged
merged 3 commits into from
Sep 25, 2024
Merged

Cleanup dead code in webviews #34

merged 3 commits into from
Sep 25, 2024

Conversation

breedloj
Copy link
Contributor

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.

@Override
protected final void handleAuthStatusChange(final boolean isLoggedIn) {
var browser = super.getBrowser();
Copy link
Contributor

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

Copy link
Contributor

@angjordn angjordn left a 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();
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@breedloj breedloj merged commit 487efa6 into main Sep 25, 2024
1 check passed
@breedloj breedloj deleted the breedloj/deadWebviewCode branch September 25, 2024 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants