File tree Expand file tree Collapse file tree
jdtls.ext/com.microsoft.jdtls.ext.core
src/com/microsoft/jdtls/ext/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<classpath >
3- <classpathentry kind =" con" path =" org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8 " />
3+ <classpathentry kind =" con" path =" org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11 " />
44 <classpathentry kind =" con" path =" org.eclipse.pde.core.requiredPlugins" />
55 <classpathentry kind =" src" path =" src/" />
66 <classpathentry exported =" true" kind =" lib" path =" lib/commons-io-2.5.jar" />
Original file line number Diff line number Diff line change @@ -610,7 +610,8 @@ public static IJavaProject getJavaProject(String projectUri) {
610610 }
611611
612612 // For multi-module scenario, findContainersForLocationURI API may return a container array,
613- // need put the result from the nearest project in front.
613+ // need filter out non-Java project and put the result from the nearest project in front.
614+ containers = Arrays .stream (containers ).filter (c -> ProjectUtils .isJavaProject (c .getProject ())).toArray (IContainer []::new );
614615 Arrays .sort (containers , (Comparator <IContainer >) (IContainer a , IContainer b ) -> {
615616 return a .getFullPath ().toPortableString ().length () - b .getFullPath ().toPortableString ().length ();
616617 });
You can’t perform that action at this time.
0 commit comments