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
@@ -78,7 +78,7 @@ function testMapToExpressionPos(input: string) {
name: td.uri,
content: td.getText()
};
const result = parseWorkflow(file.name, [file], nullTrace);
const result = parseWorkflow(file, nullTrace);
if (!result.value) {
throw new Error("Invalid workflow");
}
@@ -105,7 +105,7 @@ async function hoverExpression(input: string) {
name: td.uri,
content: td.getText()
};
const result = parseWorkflow(file.name, [file], nullTrace);
const result = parseWorkflow(file, nullTrace);
if (!result.value) {
return undefined;
}