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

Update lsp4j to 0.11.0 #1700

Merged
merged 1 commit into from
Mar 21, 2021
Merged

Update lsp4j to 0.11.0 #1700

merged 1 commit into from
Mar 21, 2021

Conversation

snjeza
Copy link
Contributor

@snjeza snjeza commented Mar 19, 2021

Fixes #1698

Signed-off-by: Snjezana Peco snjezana.peco@redhat.com

$.setFilterText($.getTextEdit().getNewText());
String newText = $.getTextEdit().isLeft() ? $.getTextEdit().getLeft().getNewText() : $.getTextEdit().getRight().getNewText();
Range range = $.getTextEdit().isLeft() ? $.getTextEdit().getLeft().getRange() : ($.getTextEdit().getRight().getInsert() != null ? $.getTextEdit().getRight().getInsert() : $.getTextEdit().getRight().getReplace());
if (proposal.getKind() == CompletionProposal.TYPE_REF && $.getTextEdit() != null && range != null && newText != null) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The check $.getTextEdit() != null at this line has no meaning. It should move up to line 272.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Copy link
Contributor

@testforstephen testforstephen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor comment about null check. Others look good.

Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
@snjeza snjeza merged commit fb1063b into eclipse-jdtls:master Mar 21, 2021
@snjeza snjeza deleted the lsp4j011 branch March 21, 2021 03:50
@testforstephen testforstephen added this to the End March 2021 milestone Apr 6, 2021
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.

Update lsp4j to 0.11.0
2 participants