Handle undefined templates in workflow template cache

This commit is contained in:
Josh Gross
2023-03-17 13:23:43 -04:00
parent a8a68a8028
commit 8942a05502
5 changed files with 51 additions and 31 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ export async function validate(textDocument: TextDocument, config?: ValidationCo
if (result.value) {
// Errors will be updated in the context. Attempt to do the conversion anyway in order to give the user more information
const template = await fetchOrConvertWorkflowTemplate(result, textDocument.uri, config, {
const template = await fetchOrConvertWorkflowTemplate(result.context, result.value, textDocument.uri, config, {
fetchReusableWorkflowDepth: config?.fileProvider ? 1 : 0,
errorPolicy: ErrorPolicy.TryConversion
});