VSCode validates old version of file when using git compare with unmodified
- Dominant language
- Bicep
- Stars
- 3.6k
- Forks
- 830
- Avg merge
- 1d 21m
- Merged PRs (30d)
- 79
Description
**Bicep version**
Bicep CLI version 0.2.328 (a13b032755)
**Describe the bug**
On the left side, where old file is visible, errors are reported:

File validation should only happen for current file.
**To Reproduce**
Open bicep file in git diff
**Additional context**
Add any other context about the problem here.
Contributor guide
Research direction
Reproduce the issue with Bicep CLI 0.2.328 by opening a Bicep file in a VSCode git diff and checking diagnostics in both panes. Done means validation is limited to the current file and the unmodified old version no longer reports errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100