JeremyYao opened a new pull request, #1524:
URL: https://github.com/apache/daffodil-vscode/pull/1524
Closes #1523
## Description
Data Editor Tab now displays the base name of the file
## Wiki
- [x] I have determined that no documentation updates are needed for these
changes
- Rationale: Bug fix
- [ ] I have added following documentation for these changes
## Review Instructions including Screenshots
### Command Palette
1. Open the data editor
2. Cancel selecting a file. Make sure nothing odd happens and an info
message pops up on the bottom right
3. Re-open the data editor
4. Select a file
5. Make sure nothing odd happens, verify the tab name is the base name of
the file
<img width="319" height="301" alt="image"
src="https://github.com/user-attachments/assets/6ef45779-1172-4011-b886-c9a266b56849"
/>
7. Open another instance of data editor
8. Try to re-open the same file, verify that the data editor says something
about not opening duplicate files
### DFDL debugging session
1. Run a DFDL debugging session with `"openDataEditor": true,`
Example config you could use:
```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": "generate",
"name": "Default Test Case"
},
"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": {
"daffodilVersion": "3.11.0",
"timeout": "10s",
"logging": {
"file": "${workspaceFolder}/daffodil-debugger.log",
"level": "INFO"
}
}
}
```
2. Verify the data editor tab shows the base file name and nothing odd
happens
--
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]