Ask before opening projects nested below the selection - #4344
Open
vogella wants to merge 2 commits into
Open
Conversation
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 🤖
Close Project can take nested modules along, but Open Project brought back only the root, so the modules stayed closed. The action now offers to open them too, with Open Selected Only as the default, and a Remember my decision toggle backed by a new workspace preference next to the one for closing. The location matching moves into a helper shared by both actions. Assisted-by: multiple AI agents and layers of automated tooling 🤖
vogella
force-pushed
the
open-nested-projects
branch
from
September 2, 2026 23:23
b075928 to
7d6838e
Compare
Contributor
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.
Follow-up to #4332. Once Close Project can take the nested modules of a Maven or Gradle root along, Open Project brought back only the root and left the modules closed. The action now asks the mirror question, with Open Selected Only as the default, Open Including Nested, and Cancel, and a Remember my decision toggle stores the answer in a new workspace preference next to the one for closing nested projects. The existing prompt for referenced projects is unchanged. The location matching moves into a small helper shared by both actions, and a new test covers both remembered answers and the two cases that ask nothing.
Builds on the #4332 commit, so it shows both until that one is merged and will be rebased afterwards. Verified locally with the new OpenResourceActionTest and the existing CloseResourceActionTest passing headless.