Title: SpringGenerateProject can be called without SpringInitializrUI being open
Summary
The :SpringGenerateProject command can be executed even when the Spring Initializr UI is not open. This should not be allowed since the command depends on user selections (language, build tool, dependencies, etc.) made through the UI.
Steps to Reproduce
- Open Neovim without launching
:SpringInitializr
- Run
:SpringGenerateProject
- Observe that the command executes (likely with defaults or errors)
Actual Behavior
:SpringGenerateProject runs without the UI being open, potentially generating a project with no valid selections or causing unexpected errors.
Expected Behavior
:SpringGenerateProject should only be callable when SpringInitializrUI is open and selections have been made. If the UI is not open, the command should notify the user to open the UI first.
Proposed Solution (high level)
Add a guard check in the SpringGenerateProject command handler to verify the UI is currently open before proceeding with project generation.
Acceptance Criteria
Title:
SpringGenerateProjectcan be called without SpringInitializrUI being openSummary
The
:SpringGenerateProjectcommand can be executed even when the Spring Initializr UI is not open. This should not be allowed since the command depends on user selections (language, build tool, dependencies, etc.) made through the UI.Steps to Reproduce
:SpringInitializr:SpringGenerateProjectActual Behavior
:SpringGenerateProjectruns without the UI being open, potentially generating a project with no valid selections or causing unexpected errors.Expected Behavior
:SpringGenerateProjectshould only be callable whenSpringInitializrUIis open and selections have been made. If the UI is not open, the command should notify the user to open the UI first.Proposed Solution (high level)
Add a guard check in the
SpringGenerateProjectcommand handler to verify the UI is currently open before proceeding with project generation.Acceptance Criteria
:SpringGenerateProjectis blocked whenSpringInitializrUIis not open