Skip to content

Recognize Bicep parameter files as text - #241

Merged
SimonCropp merged 1 commit into
VerifyTests:mainfrom
eerhardt:eerhardt-bicep-parameter-text-support
Sep 22, 2026
Merged

SimonCropp merged 1 commit into
VerifyTests:mainfrom
eerhardt:eerhardt-bicep-parameter-text-support

Conversation

@eerhardt

Copy link
Copy Markdown
Contributor

Summary

Add .bicepparam to the built-in text extensions alongside .bicep. Azure's official documentation identifies .bicepparam as the native Bicep parameter file extension.

FileExtensions.IsTextExtension("bicepparam") and FileExtensions.IsTextFile("main.dev.bicepparam") now return true without custom registration. Regression tests cover lowercase, uppercase, and mixed-case extensions, dotted and dotless lookups, and string/span overloads.

Validation

  • Confirmed all three new regression cases fail before adding the built-in extension.
  • All 11 ExtensionsTests cases pass on both .NET 8 and .NET 10.
  • git diff --check passes.

The pinned .NET 11 SDK was not installed locally. Targeted builds/tests used the installed .NET 10 SDK with process-only SDK resolver and target-framework overrides; repository SDK configuration is unchanged. The .NET 8 build emitted Polyfill's target-framework advisory for the narrowed validation target. Full .NET 11 validation was not run.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@SimonCropp

Copy link
Copy Markdown
Member

thanks. i will deploy this now

@SimonCropp
SimonCropp merged commit 230b142 into VerifyTests:main Sep 22, 2026
2 checks passed
@SimonCropp SimonCropp added this to the 8.19.0 milestone Sep 22, 2026
This was referenced Sep 22, 2026
This was referenced Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants