Skip to content

Commit 505fbe7

Browse files
authored
Fix missing prompts when there is conflict between pom.xml and .gradle.kts (#3401)
Signed-off-by: Sheng Chen <[email protected]>
1 parent 86bf3ae commit 505fbe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export async function hasBuildToolConflicts(): Promise<boolean> {
162162
// ignore the folders that already has .project file (already imported before)
163163
const gradleDirectories = getDirectoriesByBuildFile(projectConfigurationFsPaths, eclipseDirectories, ".gradle");
164164
const gradleDirectoriesKts = getDirectoriesByBuildFile(projectConfigurationFsPaths, eclipseDirectories, ".gradle.kts");
165-
gradleDirectories.concat(gradleDirectoriesKts);
165+
gradleDirectories.push(...gradleDirectoriesKts);
166166
const mavenDirectories = getDirectoriesByBuildFile(projectConfigurationFsPaths, eclipseDirectories, "pom.xml");
167167
return gradleDirectories.some((gradleDir) => {
168168
return mavenDirectories.includes(gradleDir);

0 commit comments

Comments
 (0)