From 023bf3bf91398f593cb98f035bb6928bb257b216 Mon Sep 17 00:00:00 2001 From: Sheng Chen Date: Mon, 25 Sep 2023 11:15:11 +0800 Subject: [PATCH] fix: Importer only return false when a Java project is imported by other importers before Signed-off-by: Sheng Chen --- .../gradle/bs/importer/GradleBuildServerProjectImporter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extension/jdtls.ext/com.microsoft.gradle.bs.importer/src/com/microsoft/gradle/bs/importer/GradleBuildServerProjectImporter.java b/extension/jdtls.ext/com.microsoft.gradle.bs.importer/src/com/microsoft/gradle/bs/importer/GradleBuildServerProjectImporter.java index 78f2adf89..5de270284 100644 --- a/extension/jdtls.ext/com.microsoft.gradle.bs.importer/src/com/microsoft/gradle/bs/importer/GradleBuildServerProjectImporter.java +++ b/extension/jdtls.ext/com.microsoft.gradle.bs.importer/src/com/microsoft/gradle/bs/importer/GradleBuildServerProjectImporter.java @@ -87,7 +87,8 @@ public boolean applies(IProgressMonitor monitor) throws OperationCanceledExcepti IProject project = ProjectUtils.getProjectFromUri(directory.toUri().toString()); // skip this importer if any of the project in workspace is already // imported by other importers. - if (project != null && !Utils.isGradleBuildServerProject(project)) { + if (project != null && (!Utils.isGradleBuildServerProject(project) + && ProjectUtils.isJavaProject(project))) { return false; } }