This is an automated email from the ASF dual-hosted git repository.

shanedell pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil-vscode.git


The following commit(s) were added to refs/heads/main by this push:
     new c92a036  correct default configuration loading
c92a036 is described below

commit c92a0369236d04c0fb5a7ae973a902064425005b
Author: Larry Barber <[email protected]>
AuthorDate: Tue Nov 4 17:00:59 2025 -0500

    correct default configuration loading
    
    Use open schema file if applicable
---
 src/adapter/activateDaffodilDebug.ts | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/src/adapter/activateDaffodilDebug.ts 
b/src/adapter/activateDaffodilDebug.ts
index 6fd2095..bb5ee1b 100644
--- a/src/adapter/activateDaffodilDebug.ts
+++ b/src/adapter/activateDaffodilDebug.ts
@@ -174,12 +174,16 @@ async function createDebugRunFileConfigs(
       })
     } else {
       var tdmlConfig: TDMLConfig | undefined = undefined
+      var newData: string | undefined = undefined
+      var newSchema: string | undefined = normalizedResource
 
       if (tdmlAction) {
         tdmlConfig = { action: tdmlAction }
 
         if (tdmlAction === 'execute') {
           tdmlConfig.path = normalizedResource
+          newData = undefined
+          newSchema = undefined
         }
       }
 
@@ -188,13 +192,11 @@ async function createDebugRunFileConfigs(
         request: 'launch',
         type: 'dfdl',
         schema: {
-          path: tdmlConfig?.action === 'execute' ? '' : normalizedResource,
+          path: newSchema,
           rootName: null,
           rootNamespace: null,
         },
-        data:
-          tdmlConfig?.action === 'execute' ? '' : '${command:AskForDataName}',
-        debugServer: false,
+        data: newData,
         infosetFormat: 'xml',
         infosetOutput: {
           type: 'file',
@@ -605,10 +607,6 @@ class DaffodilConfigurationProvider
       config = getConfig({ name: 'Launch', request: 'launch', type: 'dfdl' })
     }
 
-    if (!config.debugServer) {
-      config.debugServer = 4711
-    }
-
     // default schema path and data paths to ask for file prompts if they are 
null, undefined, or '' in launch.json config
     config = {
       ...config,

Reply via email to