Skip to content

Fix diagnostic locations for inherited bicepparam values#20085

Open
polatengin wants to merge 5 commits into
mainfrom
polatengin/19982-incorrect-severity-and-message-for-invalid-udt-parameter-in-extended-bicepparam-file
Open

Fix diagnostic locations for inherited bicepparam values#20085
polatengin wants to merge 5 commits into
mainfrom
polatengin/19982-incorrect-severity-and-message-for-invalid-udt-parameter-in-extended-bicepparam-file

Conversation

@polatengin

@polatengin polatengin commented Jul 23, 2026

Copy link
Copy Markdown
Member

Description

Fixes #19982.

Type diagnostics for parameter values inherited from an extended .bicepparam file were generated using spans from the parent file, but published against the child file. This caused diagnostics to appear on unrelated text, such as the using or extends declarations.

This change re-anchors diagnostics for inherited parameter values to the child file's extends path while preserving their original code, message, and severity.

I've added integration tests to improve coverage for different scenarios.

Checklist

Microsoft Reviewers: Open in CodeFlow

@github-actions

Copy link
Copy Markdown
Contributor

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

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

@polatengin polatengin moved this from Todo to In Review in Bicep Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

Incorrect severity and message for invalid UDT parameter in extended bicepparam file

1 participant