Skip to content

Commit 7d7f016

Browse files
committed
Supply proper information display string for completion proposal
Signed-off-by: BoykoAlex <alex.boyko@broadcom.com>
1 parent 680b71f commit 7d7f016

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

org.eclipse.lsp4e.jdt/src/org/eclipse/lsp4e/jdt/LSJavaProposal.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2022, 2024 VMware Inc. and others.
2+
* Copyright (c) 2022, 2025 VMware Inc. and others.
33
* This program and the accompanying materials are made
44
* available under the terms of the Eclipse Public License 2.0
55
* which is available at https://www.eclipse.org/legal/epl-2.0/
@@ -18,6 +18,7 @@
1818

1919
import org.eclipse.core.runtime.FileLocator;
2020
import org.eclipse.core.runtime.IProgressMonitor;
21+
import org.eclipse.jdt.annotation.NonNull;
2122
import org.eclipse.jdt.annotation.Nullable;
2223
import org.eclipse.jdt.internal.codeassist.RelevanceConstants;
2324
import org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal;
@@ -130,9 +131,13 @@ public Object getAdditionalProposalInfo(IProgressMonitor monitor) {
130131
HTMLPrinter.insertPageProlog(buffer, 0, fgRGB, bgRGB, getCSSStyles());
131132
HTMLPrinter.addPageEpilog(buffer);
132133
return new JavadocBrowserInformationControlInput(null, null, buffer.toString(), 0);
133-
134134
}
135135

136+
@Override
137+
public @NonNull String getInformationDisplayString() {
138+
return item.getLabel();
139+
}
140+
136141
/**
137142
* Returns the style information for displaying HTML (Javadoc) content.
138143
* Copied from org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.getCSSStyles()

0 commit comments

Comments
 (0)