hdalsania commented on code in PR #1022:
URL: https://github.com/apache/daffodil-vscode/pull/1022#discussion_r1597728826
##########
src/adapter/activateDaffodilDebug.ts:
##########
@@ -85,6 +85,52 @@ async function getFile(fileRequested, label, title) {
return file
}
+/** Method to select file path to save TDML file
+ * Details:
+ * Required so that the vscode api commands:
+ * - extension.dfdl-debug.getValidatedTDMLCopyPath
+ * can be sent a file instead of always opening up a prompt.
+ */
+async function saveFile(fileRequested, label, title) {
+ let file = ''
+
+ if (fileRequested && fs.existsSync(fileRequested)) {
+ file = fileRequested
+ } else if (fileRequested && !fs.existsSync(fileRequested)) {
+ file = ''
+ } else {
+ file = await vscode.window
Review Comment:
We can do that
--
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]