Skip to content

Commit

Permalink
Fix constructor completion when guessMethodArguments is off
Browse files Browse the repository at this point in the history
  • Loading branch information
hopehadfield authored and rgrunber committed Oct 25, 2023
1 parent 7f75fbb commit 501b171
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ public CompletionItem toCompletionItem(CompletionProposal proposal, int index) {
String filterText = "";
if (labelDetailsEnabled && $.getKind() == CompletionItemKind.Method) {
filterText = CompletionProposalDescriptionProvider.createMethodProposalDescription(proposal).toString();
} else if (labelDetailsEnabled && $.getKind() == CompletionItemKind.Constructor && $.getLabelDetails() != null) {
} else if (labelDetailsEnabled && $.getKind() == CompletionItemKind.Constructor && $.getLabelDetails() != null && $.getLabelDetails().getDetail() != null) {
filterText = newText.concat($.getLabelDetails().getDetail());
}
if (range != null && !filterText.isEmpty()) {
Expand Down

0 comments on commit 501b171

Please sign in to comment.