Ask before closing or opening projects nested below the selection - #4332
Open
vogella wants to merge 1 commit into
Open
Ask before closing or opening projects nested below the selection#4332vogella wants to merge 1 commit into
vogella wants to merge 1 commit into
Conversation
Contributor
vogella
force-pushed
the
close-nested-projects
branch
3 times, most recently
from
September 2, 2026 11:00
e908070 to
676931c
Compare
vogella
force-pushed
the
close-nested-projects
branch
from
September 10, 2026 10:34
676931c to
41c96cc
Compare
vogella
force-pushed
the
close-nested-projects
branch
from
September 10, 2026 11:03
41c96cc to
d39f226
Compare
Close Project and Open Project acted on exactly the selected projects, so a project that physically contains other projects, such as a Maven or Gradle root, left its modules open, and reopening the root brought back only the root. Open Project then asked about referenced projects from inside its job, a second dialog for the same action. Both actions now report the nested projects in a dialog with an "Include nested projects" check box, unchecked by default, and a "Remember my decision" toggle that stores the answer in two new workspace preferences, shown next to the setting for opening referenced projects. Open Project asks about referenced projects in that same dialog, with a second check box backed by the existing preference, and its job no longer prompts. Nothing is asked when neither applies. CloseUnrelatedProjectsAction opts out, it already confirms the projects it computes. The location matching and the dialog are shared by both actions. Assisted-by: multiple AI agents and layers of automated tooling 🤖
vogella
force-pushed
the
close-nested-projects
branch
from
September 10, 2026 11:19
d39f226 to
52eedcb
Compare
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Close Project and Open Project acted on exactly the selected projects, so a project that physically contains other projects, such as a Maven or Gradle root, left its modules open, and reopening the root brought back only the root. Open Project then asked about referenced projects from inside its job, a second dialog for the same action.
Both actions now report the nested projects in one dialog with an "Include nested projects" check box (off by default) and the usual Close or Open and Cancel buttons. Open Project asks about referenced projects in that same dialog with a second check box backed by the existing preference, so there is at most one question per action, and Cancel now opens nothing instead of leaving the first project open. A Remember my decision toggle stores each answer in its workspace preference, shown next to the existing settings. Nothing is asked when neither applies, and Close Unrelated Projects keeps its own confirmation.
This supersedes #4344, which is now part of this change. Verified against a workspace where one root project contains 757 nested projects shown in the hierarchical Project Explorer: closing the root closed all 758, opening it brought all 758 back. The tests answer the dialog programmatically and cover both check boxes, the remembered answers in both directions, and Cancel.