bicep
bicep copied to clipboard
If you republish a module then force restore, the source displayed is the previous one, but the document links are from the new sources
- Create two files:
main.bicep:
module module1 './module1.bicep' = {
name: 'module1'
}
module module1b './module1.bicep' = {
name: 'module1b'
}
module1.bicep: (empty)
-
publish: bicep publish main.bicep --target br:
.azurecr.io/bug:v1--with-source -
create new bicep file "test.bicep"
module m1 'br:<yours>/bug:v1' = {
name: 'm1'
}
-
Press F12 on "bug:v1" and click to see the Bicep source
-
change main.bicep to look like this: main.bicep:
module module1 './a/../module1.bicep' = {
name: 'module1'
}
// some extra lines are intended to be here
// some extra lines are intended to be here
module module1b '.a/../module1.bicep' = {
name: 'module1b'
}
- republish with --force
- Force restore modules in test.bicep
- Press F12 on "bug:v1" !) it shows the old source, and notice the links don't line up with the source:
EXPECTED:
what you get after you reload vscode:
It's likely this repros with the current released version, but I haven't tested it there, only main.