Repository navigation
Add configuration file format selection (properties/yaml) - #266
Ritik Ranjan (MeRitik) wants to merge 4 commits into
Conversation
|
@microsoft-github-policy-service agree |
|
Hi! Just checking in on this PR. This feature would be super helpful for those of us who prefer using YAML files from the start. Is there any update on this, or is there anything needed to help get it reviewed and merged? Thanks for your work on this extension! |
1de5e49 to
f14d32a
Compare
Thanks for checking in! Just rebased and resolved conflicts with main, and tested the change. It works as expected (wizard step shows Properties/YAML choice, respects the defaultConfigurationFileFormat setting, and generates the correct file). Ready for review whenever a maintainer has a chance to take a look — happy to make any changes requested. |
|
Copilot resolve the merge conflicts in this pull request |
|
Hi, I've resolved the merge conflicts by merging the latest upstream |
There was a problem hiding this comment.
🟡 Changes recommended
Defaults are ignored, and the new step breaks established Back and Cancel navigation behavior.
3 open findings
What changed in this PR
Adds Spring Boot configuration-file format selection to the project-generation wizard.
Changes:
- Adds Properties/YAML format metadata and selection.
- Sends the selected format to Spring Initializr.
- Adds a configurable default setting.
| File | Description |
|---|---|
src/handler/SpecifyPackagingStep.ts |
Inserts the format-selection step. |
src/handler/SpecifyConfigurationFileFormatStep.ts |
Implements format selection. |
src/handler/HandlerInterfaces.ts |
Adds format types and metadata. |
src/handler/GenerateProjectHandler.ts |
Adds the format request parameter. |
package.json |
Registers the default-format setting. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| const defaultFormat: ConfigurationFileFormat = | ||
| projectMetadata.defaults.configurationFileFormat | ||
| ?? workspace.getConfiguration("spring.initializr") | ||
| .get<ConfigurationFileFormat>("defaultConfigurationFileFormat") | ||
| ?? ConfigurationFileFormat.PROPERTIES; |
| if (!selection) { | ||
| return false; |
| projectMetadata.configurationFileFormat = selection.value || defaultFormat; | ||
|
|
||
| return true; |


Adds a wizard step allowing users to choose the Spring Boot configuration file format (application.properties or application.yaml).
Details
Spring Initializr supports selecting configuration file format via the configurationFileFormat parameter. This change:
Fixes #267