Azure / Azure/bicep

Completion for module MCR/ACR references is very dependent on the cursor being at particular parts of the string

Open
#10,347 2 comments 0 reactions 0 assignees View on GitHub
devdiv story: registry
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

### top-level
`module a ''`: works as expected
`module a 'b'`: no MCR/ACR completion (expecting 'br/')
`module a 'br'`: no MCR/ACR completion (expecting 'br/')
### alias
`module a 'br/'`: works as expected
`module a 'br/p'`: no MCR/ACR completion (expecting 'br/public:')
`module a 'br/p'`: no MCR/ACR completion (expecting 'br/public:')
### modulename
`module a 'br/public:'`: works as expected
`module a 'br/public:app'`: no completion (expected 'br/public:app/dapr-containerapp:', 'br/public:app/dapr-containerapps-environment:')
`module a 'br/public:app/'`: no completion (expected 'br/public:app/dapr-containerapp:', 'br/public:app/dapr-containerapps-environment:')
### version
`module a 'br/public:app/dapr-containerapp:'`: works as expected
`module a 'br/public:app/dapr-containerapps-environment:1'`: no completion

Examples:
![image](https://user-images.githubusercontent.com/6913354/230664540-637e0069-0a21-47ea-bb66-f8df8d3956c9.png)
![image](https://user-images.githubusercontent.com/6913354/230664566-27b456d9-6a73-4b36-b249-a5f0f569179a.png)

Contributor guide

Open the contributing guide

Research direction

Reproduce the listed module MCR/ACR completion cases in the editor, checking each cursor position from the issue body. Trace the completion entry point and compare behavior for partial aliases, module names, and versions; done means each example offers the expected completion regardless of cursor placement.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
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.