Azure / Azure/bicep

Module `outputs` property appears even if there are no outputs in the referenced module

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

Description

**Bicep version**
v0.4.451

**Describe the bug**
The module `outputs` property appears in completions (and the underlying type) even if the referenced module has no outputs:
![image](https://user-images.githubusercontent.com/22460039/128067745-1778fd2e-98ee-4bc9-ab56-84a8df23f4d7.png)

**To Reproduce**

empty.bicep:
_Empty file_

main.bicep:
```bicep
module empty 'empty.bicep' = {
name: 'hello'
}

output test string = empty.|
```

Request completions at `|` above.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the empty.bicep and main.bicep examples, requesting completions at the cursor after empty. Check the completion result and underlying type for a module with no outputs; done when the outputs property is absent in both.

Written by the indexing model from the issue text.

Assessment

Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.