Azure / Azure/bicep

Double-clicking on config file errors should take you to the config file

Open
#4,519 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

**Bicep version**
Latest in `main`

**Describe the bug**
Double-clicking on config file errors should take you to the config file instead of the broken bicep file.

**To Reproduce**
1. Create or update bicepconfig.json to have empty content.
2. Open a bicep file.
3. An error like the following should appear:
![image](https://user-images.githubusercontent.com/22460039/134089249-479595bf-1ee3-48f6-8911-fd1b867a4017.png)
4. Double click on the error in VS code.

Expected behavior: VS code takes you to the broken config file. (Ideally, the location that is malformed in the config file.)
Actual behavior: VS code will take you to the Bicep file that attempted to consume the config file.

**Additional context**
This may very well be difficult to implement without a proper JSON language server support.

Contributor guide

Open the contributing guide

Research direction

Reproduce the problem with an empty bicepconfig.json and an open Bicep file in VS Code. Trace the diagnostic's navigation target and ensure double-clicking the config error opens bicepconfig.json, ideally at the malformed location, rather than the consuming Bicep file.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
developer-experience
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.