Skip to content

Fix bicep extension to require transport to be specified otherwise return error - #1721

Merged
Steve Lee (SteveL-MSFT) merged 4 commits into
PowerShell:mainfrom
SteveL-MSFT:bicep-ext-transport
Sep 15, 2026
Merged

Steve Lee (SteveL-MSFT) merged 4 commits into
PowerShell:mainfrom
SteveL-MSFT:bicep-ext-transport

Conversation

@SteveL-MSFT

@SteveL-MSFT Steve Lee (SteveL-MSFT) commented Sep 14, 2026

Copy link
Copy Markdown
Member

PR Summary

Change code so that if the transport is not specified, return an error instead of defaulting to a well known port. Validated that bicep always sets the transport. Update version of binary.

Copilot AI lite review requested due to automatic review settings September 14, 2026 21:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Convert the localized error message to a String to resolve the compilation failure.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates the Bicep extension to error when transport is unspecified instead of defaulting to port 50051.

Changes:

  • Adds localized missing-transport error handling.
  • Bumps the extension version to 0.1.1.
  • Synchronizes the lockfile version.
  • The error path currently fails compilation because the localized message must be converted to an owned String.
File summaries
File Summary
dsc-bicep-ext/src/main.rs Rejects missing transport configuration.
dsc-bicep-ext/locales/en-us.toml Adds the localized error message.
dsc-bicep-ext/Cargo.toml Bumps the package version.
Cargo.lock Synchronizes the package version.
Review details
  • Files reviewed: 3/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread dsc-bicep-ext/src/main.rs Outdated
Steve Lee (POWERSHELL HE/HIM) (from Dev Box) added 2 commits September 14, 2026 14:23
@SteveL-MSFT Steve Lee (SteveL-MSFT) added this to the 3.3-Approved milestone Sep 14, 2026
@SteveL-MSFT
Steve Lee (SteveL-MSFT) added this pull request to the merge queue Sep 15, 2026
Merged via the queue into PowerShell:main with commit 40291b4 Sep 15, 2026
56 of 58 checks passed
@SteveL-MSFT
Steve Lee (SteveL-MSFT) deleted the bicep-ext-transport branch September 15, 2026 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants