shanedell commented on code in PR #927:
URL: https://github.com/apache/daffodil-vscode/pull/927#discussion_r1445541451
##########
src/utils.ts:
##########
@@ -79,6 +80,30 @@ export async function onDebugStartDisplay(viewsToCheck:
string[]) {
})
}
+function checkInfosetFileExtension(
+ infosetOutput: InfosetOutput,
+ infosetFormat: string
+) {
+ // If the infoset file path doesn't end with the infoset output format,
update to end with infoset output format.
+ if (!infosetOutput.path.endsWith(`.${infosetFormat}`)) {
Review Comment:
I will add a check to only call `checkInfosetFileExtension` if the
`infosetOutput.type == file`. But as for the path not existing that already
gets handled and the directory is automatically created when we are creating
the output file.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]