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

   ### Description
   
   Version: 1.4.1 Snapshot
   
   For inserting elements, IntelliSense suggests elements with the `dfdl:` 
prefix as shown below: 
   
   
![Image](https://github.com/user-attachments/assets/6476b4dd-c171-4097-ac6f-104cb978cffe)
   
   however, upon going through with the suggestion, it inserts the element with 
the `xs:` prefix instead. 
   
   
![Image](https://github.com/user-attachments/assets/a656a552-64be-4189-9087-488262d3062f)
   
   It seems to be doing this for other suggestions too
   
   
![Image](https://github.com/user-attachments/assets/ba06bbaa-a2d7-4711-bc45-f34005d778d1)
   
   ### How to Replicate
   #### In 
[helloWorldPlusLongForm.dfdl.xsd](https://github.com/apache/daffodil-vscode/blob/main/src/tests/data/helloWorldPlusLongForm.dfdl.xsd)
   1. Download 
https://github.com/apache/daffodil-vscode/blob/main/src/tests/data/helloWorldPlusLongForm.dfdl.xsd
   2. Open up helloWorldPlusLongForm.dfdl.xsd in VSCode
   3. Navigate to line 33, col 1
   
   
![Image](https://github.com/user-attachments/assets/22ad17b8-40e9-41a8-a8d6-958f1e6b484b)
   
   4. Press `CTRL` + `space`
   5. Suggestions should look like the following
   
   
![Image](https://github.com/user-attachments/assets/6476b4dd-c171-4097-ac6f-104cb978cffe)
   
   6. Proceed with any of the suggestions and observe how they all have the 
`xs` namespace instead of the `dfdl` namespace as the suggestions list. 
   7. Place cursor at line 68 column 59, after >
   
   
![Image](https://github.com/user-attachments/assets/17a41a65-b87f-4bce-9d5c-fb5b5cf23d6f)
   
   8. Press `Ctrl` + `Space`
   
   
![Image](https://github.com/user-attachments/assets/9637e398-7d9a-4020-a37e-976bfd6ac7eb)
   
   9. insert any of the suggestions listed in the screenshot. Note that there 
should be a `dfdl:element` suggestion, but rather a `xs:element` suggestion. 


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