From c0e3543159fb60f33eea12d8a1526ddeef6dfc66 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 11 Oct 2024 11:13:26 -0400 Subject: [PATCH] Begin reporting on completion progress monitor See https://github.com/eclipse-jdtls/eclipse.jdt.ls/pull/3167#issuecomment-2407450906 Signed-off-by: David Thompson --- .../eclipse/jdt/internal/codeassist/DOMCompletionEngine.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/DOMCompletionEngine.java b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/DOMCompletionEngine.java index 5ceedc5694d..2b02d343d34 100644 --- a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/DOMCompletionEngine.java +++ b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/DOMCompletionEngine.java @@ -88,6 +88,7 @@ import org.eclipse.jdt.internal.core.JavaProject; import org.eclipse.jdt.internal.core.ModuleSourcePathManager; import org.eclipse.jdt.internal.core.SearchableEnvironment; +import org.eclipse.jdt.internal.core.util.Messages; /** * A completion engine using a DOM as input (as opposed to {@link CompletionEngine} which @@ -211,7 +212,9 @@ private IJavaElement computeEnclosingElement() { @Override public void run() { - + if (this.monitor != null) { + this.monitor.beginTask(Messages.engine_completing, IProgressMonitor.UNKNOWN); + } this.requestor.beginReporting(); this.toComplete = NodeFinder.perform(this.unit, this.offset, 0); this.expectedTypes = new ExpectedTypes(this.assistOptions, this.toComplete);