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

   ### Description
   
   IntelliSense suggests attributes that already exist inside of an element. An 
example of this happening is found here 
   
   
![Image](https://github.com/user-attachments/assets/13f09e40-952b-4542-bdb7-68ad166f34fc)
   
   It would make sense to have it not suggest duplicate attributes inside of an 
element. 
   
   ### How to replicate
   
   1. sampleWorkspace folder used can be found here: 
   
   
[sampleWorkspace.zip](https://github.com/user-attachments/files/19197031/sampleWorkspace.zip)
    
   2. Place your cursor on the end of line 59 in 
`helloWorldPlusLongForm.dfdl.xsd`![Image](https://github.com/user-attachments/assets/c00ea980-cb2c-458c-aa25-101e06c4299d)
   
   3. Press space (or `Ctrl` + `Space`), you should see alignment show up
   
   
![Image](https://github.com/user-attachments/assets/004ddf05-3351-49b4-b903-7af4b2b85195)
   
   Accepting the alignment suggestion looks like 
   
   
![Image](https://github.com/user-attachments/assets/516245bf-f51d-468a-9735-cdc2e71cde4d)
   
   ### How to validate
   
   Follow steps [in how to replicate](#how-to-replicate) and verify that the 
alignment suggestion is gone. 
   
   Additionally, attempt other attribute completion suggestions for other 
elements inside of `helloWorldPlusLongForm.dfdl.xsd` to see if other duplicate 
attribute suggestions are showing up. 
   
   Could also try other DFDL schema files too. Such as 
https://github.com/DFDLSchemas/JPEG/blob/master/src/main/resources/com/mitre/jpeg/xsd/jpeg.dfdl.xsd
   
   
![Image](https://github.com/user-attachments/assets/4dbccc27-37dd-47e0-a29e-b0df6c74406c)


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