File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
jdtls.ext/com.microsoft.jdtls.ext.core
src/com/microsoft/jdtls/ext/core Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<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 " />
4
4
<classpathentry kind =" con" path =" org.eclipse.pde.core.requiredPlugins" />
5
5
<classpathentry kind =" src" path =" src/" />
6
6
<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) {
610
610
}
611
611
612
612
// 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 );
614
615
Arrays .sort (containers , (Comparator <IContainer >) (IContainer a , IContainer b ) -> {
615
616
return a .getFullPath ().toPortableString ().length () - b .getFullPath ().toPortableString ().length ();
616
617
});
You can’t perform that action at this time.
0 commit comments