Skip to content

Commit 2413dd6

Browse files
committed
fix: Disable manual apply temporarily
Signed-off-by: Sheng Chen <sheche@microsoft.com>
1 parent 3bbf173 commit 2413dd6

1 file changed

Lines changed: 23 additions & 21 deletions

File tree

extension/jdtls.ext/com.microsoft.gradle.bs.importer/src/com/microsoft/gradle/bs/importer/GradleBuildServerProjectImporter.java

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -117,27 +117,29 @@ public boolean applies(IProgressMonitor monitor) throws OperationCanceledExcepti
117117
@Override
118118
public boolean applies(Collection<IPath> projectConfigurations, IProgressMonitor monitor)
119119
throws OperationCanceledException, CoreException {
120-
if (rootFolder == null) {
121-
return false;
122-
}
123-
124-
125-
if (!Utils.isBuildServerEnabled(getPreferences())) {
126-
return false;
127-
}
128-
129-
this.directories = findProjectPathByConfigurationName(
130-
projectConfigurations,
131-
Arrays.asList(
132-
BUILD_GRADLE_DESCRIPTOR,
133-
SETTINGS_GRADLE_DESCRIPTOR,
134-
BUILD_GRADLE_KTS_DESCRIPTOR,
135-
SETTINGS_GRADLE_KTS_DESCRIPTOR
136-
),
137-
false /*includeNested*/
138-
);
139-
140-
return !directories.isEmpty() && !importedByOtherImporters(directories);
120+
// TODO: enable this capability once the upstream experience is stable.
121+
return false;
122+
// if (rootFolder == null) {
123+
// return false;
124+
// }
125+
126+
127+
// if (!Utils.isBuildServerEnabled(getPreferences())) {
128+
// return false;
129+
// }
130+
131+
// this.directories = findProjectPathByConfigurationName(
132+
// projectConfigurations,
133+
// Arrays.asList(
134+
// BUILD_GRADLE_DESCRIPTOR,
135+
// SETTINGS_GRADLE_DESCRIPTOR,
136+
// BUILD_GRADLE_KTS_DESCRIPTOR,
137+
// SETTINGS_GRADLE_KTS_DESCRIPTOR
138+
// ),
139+
// false /*includeNested*/
140+
// );
141+
142+
// return !directories.isEmpty() && !importedByOtherImporters(directories);
141143
}
142144

143145
@Override

0 commit comments

Comments
 (0)