Module `outputs` property appears even if there are no outputs in the referenced module
- 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:

**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
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