Add a FileProvider to parseWorkflow

This commit is contained in:
Josh Gross
2023-02-06 11:15:15 -05:00
parent c55066fbec
commit f4dde16b61
19 changed files with 96 additions and 161 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ export async function validate(
const diagnostics: Diagnostic[] = [];
try {
const result: ParseWorkflowResult = parseWorkflow(file.name, [file], nullTrace);
const result: ParseWorkflowResult = parseWorkflow(file, nullTrace);
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 = convertWorkflowTemplate(result.context, result.value, ErrorPolicy.TryConversion);