feat: add "extract to module" functionality - #18790
Engin Polat (polatengin) wants to merge 4 commits into
Conversation
|
Test this change out locally with the following install scripts (Action run 34042674378) VSCode
Azure CLI
|
|
The user-facing documentation for this feature is now being drafted directly in the Azure docs repo, not as a PR here: MicrosoftDocs/azure-docs-pr#317807 (draft). Going forward, please open Bicep product documentation ask directly in azure-docs-pr under articles/azure-resource-manager/bicep/, rather than as a PR in this repo. Then link it to your PR. That keeps content in the repo that publishes to Learn and routes review to the docs owners automatically. FYI - stephaniezyen Engin Polat (@polatengin) Xelu86 cc Engin Polat (@polatengin) Xelu86 to co-own the technical content. Xelu86 (our doc writer) owns the final docs pass. No action needed on this code PR: the 📘 Docs Needed label moves to 📘 Docs Completed once the docs PR merges. |
Fixes #14482
Description
bicep/extractToModuleLSP request, writes the generated module file, replaces the selected top-level resources with a module declaration, and initiates rename on the module symbol.Added new integration tests covering edge cases for extract-to-module feature;
paramandvardependencies used by the extracted resources.extractedModulewhen the module file name cannot produce a valid Bicep identifier.Checklist
Microsoft Reviewers: Open in CodeFlow