shanedell commented on PR #926:
URL: https://github.com/apache/daffodil-vscode/pull/926#issuecomment-1878978219

   @stricklandrbls I was able to resolve by issue by updating 
`src/dataEditor/dataEditorClient.ts` to before doing
   
   ```ts
   const dataEditorView = new DataEditorClient(
     ctx,
     'dataEditor',
     'Data Editor',
     fileToEdit
   )
   ```
   
   do
   
   ```ts
   // Make sure to remove ${workspaceFolder} from fileToEdit
   let rootPath = vscode.workspace.workspaceFolders
     ? vscode.workspace.workspaceFolders[0].uri.fsPath
     : vscode.Uri.parse('').fsPath
   fileToEdit = fileToEdit.includes('${workspaceFolder}')
     ? fileToEdit.replace('${workspaceFolder}', rootPath)
     : fileToEdit
   ```
   
   Then everything worked fine for me. Can you add this to the PR? I will 
approve it once that is added as I am not sure how yours is working on Linux if 
you have `${workspaceFolder}` in the path for the data file as without adding 
the above snippet the `${workspaceFolder}` is never removed from the path.


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