From a28aa569a289b6eaf2fd38128f4d613c5f9b16cd Mon Sep 17 00:00:00 2001 From: Sheng Chen Date: Wed, 2 Aug 2023 12:34:18 +0800 Subject: [PATCH] Fix the setting parsing error (#1370) --- .../gradle/bs/importer/GradleBuildServerProjectImporter.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 29be619c..bc6b86f7 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 @@ -228,10 +228,8 @@ public class GradleBuildServerProjectImporter extends AbstractProjectImporter { return false; } - if ("true".equalsIgnoreCase(bspImporterEnabled)) { + if ("on".equalsIgnoreCase(bspImporterEnabled)) { return true; - } else if ("false".equalsIgnoreCase(bspImporterEnabled)) { - return false; } else if ("auto".equalsIgnoreCase(bspImporterEnabled)){ // Rely on the workspace storage path to determine if the client is VSCode Insiders. // This may not always true if user changes the storage path manually, but should