Skip to content

Conversation

@CsCherrYY
Copy link
Collaborator

fix #1194

The difference between the two methods:

  • Project.getSubprojects() returns all sub projects
  • Project.getChildprojects() returns direct children (sub projects)

See https://docs.gradle.org/current/dsl/org.gradle.api.Project.html for the details. Since we use recursive calls to get the hierarchical projects, here we should use Project.getChildprojects() to avoid duplicating.

@CsCherrYY CsCherrYY added the bug Something isn't working label May 17, 2022
@CsCherrYY CsCherrYY added this to the May 2022 milestone May 17, 2022
Copy link
Member

@Eskibear Eskibear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting

@CsCherrYY CsCherrYY merged commit f43e960 into develop May 17, 2022
@CsCherrYY CsCherrYY deleted the cs-issue1194 branch May 17, 2022 05:36
@CsCherrYY
Copy link
Collaborator Author

CsCherrYY commented May 30, 2022

steps to verify:

  1. git clone https://github.com/CsCherrYY/vscode-gradle-test
  2. open in VS Code
  3. check Gradle Projects view, expand java-hello project
  4. check there are no duplicate tasks.

reference: stable marketplace version(3.12.0):
image

@Eskibear
Copy link
Member

verified with v3.12.2022053002

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VS Code Gradle Extension Duplicates and Repeats Tasks

3 participants