Skip to content

Commit

Permalink
Always add source info if immediately available
Browse files Browse the repository at this point in the history
  • Loading branch information
AjBreidenbach authored and aszs committed Feb 8, 2024
1 parent ad53409 commit fe9dd6a
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,15 @@ const actions = {
}
}

// aggressively add _sourceinfo if immediately available
// this will not always be able to get _sourceinfo from types calls
if(!resourceTemplate._sourceinfo) {
const type = getters.resolveResourceType(resourceTemplate.type)
if(type?._sourceinfo) {
resourceTemplate._sourceinfo = type._sourceinfo
}
}

localNormalize(resourceTemplate, 'ResourceTemplate', root)
},
DeploymentTemplate(deploymentTemplate, root) {
Expand Down

0 comments on commit fe9dd6a

Please sign in to comment.