Skip to content

Conversation

@polatengin
Copy link
Member

@polatengin polatengin commented Jan 5, 2026

Fixes #14482

Description

  • Adds a VS Code “Extract to Module...” command that sends a new bicep/extractToModule LSP request, writes the generated module file, replaces the selected top-level resources with a module declaration, and initiates rename on the module symbol.
  • Language server validates selections (whole top-level resources only, no external references), lifts external params/vars into module parameters, builds the module text, and emits success/failure telemetry for extract-to-module operations.

Checklist

Microsoft Reviewers: Open in CodeFlow

@polatengin polatengin self-assigned this Jan 5, 2026
@polatengin polatengin linked an issue Jan 5, 2026 that may be closed by this pull request
@polatengin polatengin added this to Bicep Jan 5, 2026
@github-project-automation github-project-automation bot moved this to Todo in Bicep Jan 5, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2026

Test this change out locally with the following install scripts (Action run 20732840565)

VSCode
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-vsix.sh) --run-id 20732840565
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-vsix.ps1) } -RunId 20732840565"
Azure CLI
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-cli.sh) --run-id 20732840565
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-cli.ps1) } -RunId 20732840565"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Extract to module

2 participants