Hello Roger, I hope to be able to limit the items returned based on attributes as the attributes are selected. I currently have a space (the blank character) setup as completion trigger. Whenever a space is typed the completion code looks to see if the schema location is within an element block, if it is, the code returns a list of attributes that can be used in an element. I think this code can be added to, to test for attribute values within the element block to increasingly limit the available attributes to return. I will most likely need user input as to what addition attributes should be presented based on what attributes are already selected. It will probably be a work in progress for a while. I could probably place the code and some instructions to create the extension somewhere temporarily if anyone wants to beta test it.
Regis From: Roger L Costello <coste...@mitre.org> Sent: Tuesday, November 30, 2021 1:09 PM To: users@daffodil.apache.org Subject: RE: Feedback on VS Code extension for Auto-Completion of DFDL Schemas Hello Regis, I watched your animated graphic for a while. It looks really good. Some DFDL properties are applicable only when other properties have certain values. For example, if dfdl:representation="text" then dfdl:byteOrder is not relevant. Will your syntax-directed editor be smart enough to recognize what DFDL properties are relevant in a context? /Roger From: Regis Thomas <regis.tho...@nteligen.com<mailto:regis.tho...@nteligen.com>> Sent: Tuesday, November 30, 2021 10:14 AM To: users@daffodil.apache.org<mailto:users@daffodil.apache.org> Subject: [EXT] Feedback on VS Code extension for Auto-Completion of DFDL Schemas I am looking for some feedback on a work in progress on a VS Code Extension for DFDL language auto completion. The extension is based on a TypeScript sample. n animated GIF showing a schema written with the auto completion extension is available for viewing in the Daffodil Jira https://issues.apache.org/jira/browse/DAFFODIL-2593<https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FDAFFODIL-2593&data=04%7C01%7Cregis.thomas%40nteligen.com%7C489b2c73060f4f84cdbd08d9b42c7633%7C379c214c5c944e86a6062d047675f02a%7C0%7C0%7C637738925326322204%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=zZt57x%2FgLHAP7vGYu5rir%2F7DDzznyjTDrxEmXYpN5oY%3D&reserved=0>. The extension is still "plain-text" so no key word coloration. Any feedback/suggestions appreciated. Regis Thomas Nteligen, LLC 6716 Alexander Bell Drive, Suite 120 Columbia, MD 20146 (240) 864-5042 x126 regis.tho...@nteligen.com<mailto:regis.tho...@nteligen.com>