import * as assert from "assert" ; import * as path from 'path' ; import { Uri } from 'vscode' ; import { normalizeFilePath } from '../../util/normalizedPaths' ; export function getRelativeParameterFilePath ( templateUri , parameterUri ) { const templatePath = normalizeFilePath ( templateUri ) ; const paramPath = normalizeFilePath ( parameterUri ) ; return path . relative ( path . dirname ( templatePath ) , paramPath ) ; } export function resolveParameterFilePath ( templatePath , parameterPathRelativeToTemplate ) { assert ( path . isAbsolute ( templatePath ) ) ; const resolved = path . resolve ( path . dirname ( templatePath ) , parameterPathRelativeToTemplate ) ; return resolved ; }