Skip to content

Commit 4c20da2

Browse files
committed
Moves comment
Signed-off-by: Frederik Claus <[email protected]>
1 parent 684c00d commit 4c20da2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/contentassist/CompletionProposalRequestor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,13 @@ public CompletionItem toCompletionItem(CompletionProposal proposal, int index) {
232232
this.descriptionProvider.updateDescription(proposal, $);
233233
$.setSortText(SortTextHelper.computeSortText(proposal));
234234
proposalProvider.updateReplacement(proposal, $, '\0');
235-
// Make sure `filterText` matches `textEdit`
236-
// See https://github.com/eclipse/eclipse.jdt.ls/issues/1348
237235
boolean isSignatureHelpEnabled = preferenceManager.getPreferences().isSignatureHelpEnabled();
238236
// Hide completions when signature help is visible.
239237
if (isSignatureHelpEnabled && PREFER_SIGNATURE_HELP_COMPLETION_ITEMS.contains(proposal.getKind())) {
240238
$.setFilterText(new String(proposal.getName()));
241239
}
240+
// Make sure `filterText` matches `textEdit`
241+
// See https://github.com/eclipse/eclipse.jdt.ls/issues/1348
242242
if ($.getFilterText() == null && $.getTextEdit() != null) {
243243
String newText = $.getTextEdit().isLeft() ? $.getTextEdit().getLeft().getNewText() : $.getTextEdit().getRight().getNewText();
244244
Range range = $.getTextEdit().isLeft() ? $.getTextEdit().getLeft().getRange() : ($.getTextEdit().getRight().getInsert() != null ? $.getTextEdit().getRight().getInsert() : $.getTextEdit().getRight().getReplace());

0 commit comments

Comments
 (0)