JeremyYao opened a new issue, #1469:
URL: https://github.com/apache/daffodil-vscode/issues/1469

   ## Description
   
   When multiple data editor tabs are opened prior to starting a DFDL debugging 
session and the other data editor tabs are open, the red highlighted byte shows 
in all of the data editor tabs (even for DE tabs that have a file opened other 
than the data file in the DFDL debugging session)
   
   Originally noted by @stricklandrbls in 
https://github.com/apache/daffodil-vscode/pull/1463#issuecomment-3408920864
   
   ## Steps to Reproduce
    
   1. Open multiple data editor tabs (1+ tabs should be sufficient)
   
   <img width="2228" height="824" alt="Image" 
src="https://github.com/user-attachments/assets/f6579385-99b2-4b4b-b37d-67c151640a27";
 />
   
   2. Launch a DFDL debugging session where `"openDataEditor": true,`. An 
example launch.json config is given below:
   
   
   ```JSON
           {
               "request": "launch",
               "type": "dfdl",
               "name": "Wizard Config",
               "schema": {
                   "path": "${command:AskForSchemaName}",
                   "rootName": null,
                   "rootNamespace": null
               },
               "data": "${command:AskForDataName}",
               "debugServer": 4711,
               "infosetFormat": "xml",
               "infosetOutput": {
                   "type": "file",
                   "path": "${workspaceFolder}/target/infoset.xml"
               },
               "tdmlConfig": {
                   "action": "none"
               },
               "trace": true,
               "stopOnEntry": true,
               "useExistingServer": false,
               "openDataEditor": true,
               "openInfosetView": false,
               "openInfosetDiffView": false,
               "daffodilDebugClasspath": [],
               "dataEditor": {
                   "port": 9000,
                   "logging": {
                       "file": 
"${workspaceFolder}/dataEditor-${omegaEditPort}.log",
                       "level": "info"
                   }
               },
               "dfdlDebugger": {
                   "logging": {
                       "file": "${workspaceFolder}/daffodil-debugger.log",
                       "level": "INFO"
                   }
               }
           }
   ```
   
   3. Select a DFDL file and a data file that is not one that is previously 
opened in a Data Editor tab. 
   
   4. Set up your tabs to where you see multiple data editor tabs. Then step 
over a few lines 
   
   <img width="2225" height="1074" alt="Image" 
src="https://github.com/user-attachments/assets/88c962eb-35c2-4ab0-b8ba-82133b3168bd";
 />
   
   Note: Data editor tabs that don't have the data file show the red square at 
the beginning of the file. The data file doesn't until you step over. 
    
   ## Expected Behavior
   
   The data editor should only show the red byte highlight square for the data 
file specified in the DFDL debugging session. 
   
   
   ## Actual Behavior
   
   The data editor tabs show the red square in the same n-th byte for all data 
editor tabs, not just the data file itself. 
   
   ## Additional Notes and Screenshots 
   
   See screenshots in the steps section
   
   ## Environment
   
   - Operating System(s): W11
   
   - Browser/VS Code version: 
     
   <img width="350" height="197" alt="Image" 
src="https://github.com/user-attachments/assets/68979f68-ab46-488f-9457-74ea1dfceba6";
 />
   
   - Extension version: 1.5.0 SNAPSHOT
   


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