stricklandrbls commented on code in PR #1414:
URL: https://github.com/apache/daffodil-vscode/pull/1414#discussion_r2355852949


##########
src/dataEditor/dataEditorClient.ts:
##########
@@ -119,7 +120,11 @@ export function activate(ctx: vscode.ExtensionContext): 
void {
       DATA_EDITOR_COMMAND,
       async (fileToEdit: string = '') => {
         let configVars = editor_config.extractConfigurationVariables()
-        return await createDataEditorWebviewPanel(ctx, configVars, fileToEdit)
+        return await createDataEditorWebviewPanel(
+          ctx,
+          configVars,
+          vscode.debug.activeDebugSession ? getCurrentConfig().data : 
fileToEdit

Review Comment:
   There is a function for checking the debug session status in 
_src/dataEditor/include/utils.ts_
   
https://github.com/apache/daffodil-vscode/blob/a6f1cbcb7c7fbdb50f05aa8b3ac141192c056ce6/src/dataEditor/include/utils.ts#L19-L24
   
   However, the activation of the data editor from:
   
https://github.com/apache/daffodil-vscode/blob/a6f1cbcb7c7fbdb50f05aa8b3ac141192c056ce6/src/utils.ts#L69-L74
   
   The data editor uses that `config.data` in order to check whether the 
`fileToEdit` is empty or not which then leads to either auto-open with the 
config data or prompt for a file. 
   
   Did something change that would alter the `config.data` content? I remember 
the data editor used to function properly when in a DFDL debug session.



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