Azure / Azure/bicep

Code fix to extract an in-line type to a type declaration

Open
#14,767 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

If the user writes:
```bicep
param image {
registry: string
name: string
tag: string
}
```

It would be nice to offer a code fix such as the following, where the cursor is on `|`, and typing changes both usages of `|`
```bicep
type | {
registry: string
name: string
tag: string
}

param image |
```

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by locating the existing Bicep code-fix infrastructure and related type-declaration handling. Done means the fix extracts the inline object type, updates the parameter to reference the new declaration, and preserves both usages of the chosen name.

Written by the indexing model from the issue text.

Assessment

Domain
compilers, devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.