Skip to content

Commit

Permalink
fix: Disable manual apply temporarily (#1451)
Browse files Browse the repository at this point in the history
Signed-off-by: Sheng Chen <sheche@microsoft.com>
  • Loading branch information
jdneo authored Nov 22, 2023
1 parent 3bbf173 commit 8a9771a
Showing 1 changed file with 23 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,27 +117,29 @@ public boolean applies(IProgressMonitor monitor) throws OperationCanceledExcepti
@Override
public boolean applies(Collection<IPath> projectConfigurations, IProgressMonitor monitor)
throws OperationCanceledException, CoreException {
if (rootFolder == null) {
return false;
}


if (!Utils.isBuildServerEnabled(getPreferences())) {
return false;
}

this.directories = findProjectPathByConfigurationName(
projectConfigurations,
Arrays.asList(
BUILD_GRADLE_DESCRIPTOR,
SETTINGS_GRADLE_DESCRIPTOR,
BUILD_GRADLE_KTS_DESCRIPTOR,
SETTINGS_GRADLE_KTS_DESCRIPTOR
),
false /*includeNested*/
);

return !directories.isEmpty() && !importedByOtherImporters(directories);
// TODO: enable this capability once the upstream experience is stable.
return false;
// if (rootFolder == null) {
// return false;
// }


// if (!Utils.isBuildServerEnabled(getPreferences())) {
// return false;
// }

// this.directories = findProjectPathByConfigurationName(
// projectConfigurations,
// Arrays.asList(
// BUILD_GRADLE_DESCRIPTOR,
// SETTINGS_GRADLE_DESCRIPTOR,
// BUILD_GRADLE_KTS_DESCRIPTOR,
// SETTINGS_GRADLE_KTS_DESCRIPTOR
// ),
// false /*includeNested*/
// );

// return !directories.isEmpty() && !importedByOtherImporters(directories);
}

@Override
Expand Down

0 comments on commit 8a9771a

Please sign in to comment.