hdalsania commented on code in PR #1022:
URL: https://github.com/apache/daffodil-vscode/pull/1022#discussion_r1597730778


##########
src/adapter/activateDaffodilDebug.ts:
##########
@@ -209,19 +259,43 @@ export function activateDaffodilDebug(
         createDebugRunFileConfigs(resource, 'run', 'execute')
       }
     ),
-    vscode.commands.registerCommand('extension.dfdl-debug.copyTDML', (_) => {
-      // Ask for destination path
-      // Copy file in /tmp to destination path
-      // TDMLConfig.path should not be used here because that only matters 
when sending to the server
-      // We could make it so that if someone wants to specify the path and set 
the action to 'copy', but
-      //   that doesn't make a whole lot of sense.
-      let targetResource = vscode.commands.executeCommand(
-        'extension.dfdl-debug.getTDMLPath'
-      )
+    vscode.commands.registerCommand(
+      'extension.dfdl-debug.copyTDML',

Review Comment:
   This functionality is implemented based on the design discussion listed 
[here](https://github.com/ctc-oss/daffodil-vscode/discussions/126) and 
described below,
   
   - We should not need to specify a location for the TDML file. We should 
always put it in /tmp (or OS equivalent) under a static name
   - We should provide 'Cleanup TDML File' and 'Copy TDML File' actions on the 
command palette.
   - Copy TDML File should copy the existing file to the user-defined location 
under $workspace.
   - There should be an Append/Copy option that takes the test case from the 
file under /tmp and appends it to the user-defined location under $workspace.



-- 
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]

Reply via email to