import { IProvideOpenedDocuments } from "../../../IProvideOpenedDocuments" ; import { parseUri } from "../../../util/uri" ; import { IParameterDefinition } from "../../parameters/IParameterDefinition" ; import { DeploymentTemplateDoc } from "../DeploymentTemplateDoc" ; import { ILinkedTemplateReference } from "./ILinkedTemplateReference" ; export function getParameterDefinitionsFromLinkedTemplate ( linkedTemplate , provideOpenDocuments ) { let dt ; try { const uri = parseUri ( linkedTemplate . fullUri ) ; dt = provideOpenDocuments . getOpenedDeploymentTemplate ( uri ) ; } catch ( error ) { } return dt ?. topLevelScope . parameterDefinitionsSource . parameterDefinitions . slice ( ) ?? [ ] ; }