Azure / Azure/bicep

VSCode validates old version of file when using git compare with unmodified

Open
#1,438 0 comments 3 reactions 0 assignees View on GitHub
good first issue investigate
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:
![image](https://user-images.githubusercontent.com/7921224/106576525-88f37880-653d-11eb-8430-a87811475fde.png)

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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.