Skip to content

Ask before closing projects nested below the selection - #4332

Open
vogella wants to merge 1 commit into
masterfrom
close-nested-projects
Open

Ask before closing projects nested below the selection#4332
vogella wants to merge 1 commit into
masterfrom
close-nested-projects

Conversation

@vogella

@vogella vogella commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Close Project closed exactly the selected projects, so closing a project that physically contains other projects, such as a Maven or Gradle root, left the nested modules open. The action now offers to close them too, with Close Selected Only as the default, Close Including Nested, and Cancel. A Remember my decision toggle stores the answer in a new workspace preference, listed next to the existing setting for opening referenced projects, so nobody has to answer the question on every close. Nothing is asked when no open project is nested below the selection, and Close Unrelated Projects keeps its own confirmation. A new test covers both remembered answers and the two cases that ask nothing.

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Test Results

   858 files  ± 0     858 suites  ±0   52m 43s ⏱️ - 10m 27s
 8 220 tests + 4   7 977 ✅ + 4  243 💤 ±0  0 ❌ ±0 
20 562 runs  +12  19 892 ✅ +12  670 💤 ±0  0 ❌ ±0 

Results for commit 676931c. ± Comparison against base commit c9b498b.

♻️ This comment has been updated with latest results.

@vogella
vogella force-pushed the close-nested-projects branch 2 times, most recently from 10e6921 to e908070 Compare September 2, 2026 05:10
Close Project closed exactly the selected projects, so a project that
physically contains other projects left those open.

The action now offers to close the nested projects too, in a dialog with
"Close Selected Only" as the default, "Close Including Nested" and
Cancel. A "Remember my decision" toggle stores the answer in a new
workspace preference, shown next to the setting for opening referenced
projects. Nothing is asked when no open project is nested below the
selection. CloseUnrelatedProjectsAction opts out, it already confirms
the projects it computes.

Assisted-by: multiple AI agents and layers of automated tooling 🤖
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant