Skip to content

Commit 73bc880

Browse files
authored
Remove classpath update listener in JDT.LS bundle (#296)
1 parent 376ca03 commit 73bc880

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

jdtls.ext/com.microsoft.jdtls.ext.core/src/com/microsoft/jdtls/ext/core/JdtlsExtActivator.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@
1515
import org.eclipse.core.runtime.IStatus;
1616
import org.eclipse.core.runtime.Platform;
1717
import org.eclipse.core.runtime.Status;
18-
import org.eclipse.core.runtime.jobs.IJobChangeEvent;
19-
import org.eclipse.core.runtime.jobs.IJobChangeListener;
20-
import org.eclipse.core.runtime.jobs.JobChangeAdapter;
21-
import org.eclipse.jdt.ls.core.internal.JavaClientConnection;
22-
import org.eclipse.jdt.ls.core.internal.JavaLanguageServerPlugin;
23-
import org.eclipse.jdt.ls.core.internal.managers.UpdateClasspathJob;
2418
import org.osgi.framework.BundleActivator;
2519
import org.osgi.framework.BundleContext;
2620
import org.osgi.framework.ServiceReference;
@@ -31,30 +25,18 @@ public class JdtlsExtActivator implements BundleActivator {
3125

3226
private static BundleContext context;
3327

34-
private static IJobChangeListener updateClasspathListener = new JobChangeAdapter() {
35-
@Override
36-
public void done(IJobChangeEvent event) {
37-
if (event.getJob() instanceof UpdateClasspathJob) {
38-
JavaClientConnection connection = JavaLanguageServerPlugin.getInstance().getClientConnection();
39-
connection.executeClientCommand("java.view.package.refresh", /* debounce = */true);
40-
}
41-
}
42-
};
43-
4428
static BundleContext getContext() {
4529
return context;
4630
}
4731

4832
@Override
4933
public void start(BundleContext bundleContext) throws Exception {
5034
JdtlsExtActivator.context = bundleContext;
51-
UpdateClasspathJob.getInstance().addJobChangeListener(JdtlsExtActivator.updateClasspathListener);
5235
}
5336

5437
@Override
5538
public void stop(BundleContext bundleContext) throws Exception {
5639
JdtlsExtActivator.context = null;
57-
UpdateClasspathJob.getInstance().removeJobChangeListener(JdtlsExtActivator.updateClasspathListener);
5840
}
5941

6042
@SuppressWarnings("unchecked")

0 commit comments

Comments
 (0)