JeremyYao commented on PR #1334: URL: https://github.com/apache/daffodil-vscode/pull/1334#issuecomment-3109453783
+1 The example DFDL schema used is the following in the screenshots: ```XML <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/xmlSchema" xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/" xmlns:daf="urn:ogf:dfdl:2013:imp:daffodil.apache.org:2018:ext" xmlns:fn="http:/www.w3.org/2005/xpath-functions" elementFormDefault="unqualified"> <xs:group name = "test" > <xs:sequence dfdl:hiddenGroupRef="hiddenTestGrp"/> <xs:sequence> <xs:element name="foo1"> <xs:complexType> <xs:sequence> <xs:annotation> <xs:appinfo source="http://www.ogf.org/dfdl"/> </xs:appinfo> </xs:annotation> <xs:element name="Keyword" type="xs:string" dfdl:alignment="1" dfdl:length="" dfdl:alignmentUnits="bits" dfdl:representation="binary" dfdl:lengthKind="delimited" dfdl:terminator="%NUL;" dfdl:outputNewLine="%CR;"></xs:element> <xs:element name="Compression_Method" type="xs:unsignedInt"> <xs:annotation> <xs:appinfo source="http://www.ogf.org/dfdl/"> <dfdl:assert><![CDATA[{ . eq 0 }]]></dfdl:assert> </xs:appinfo> </xs:annotation> </xs:element> <xs:element name="Datastream" type="xs:hexBinary" minOccurs="0" dfdl:representation="binary" dfdl:occursCountKind="implicit" dfdl:lengthKind="explicit" dfdl:lengthUnits="bytes" dfdl:length="{../../Length - fn:string-length(../Keyword) - 2}"/> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> <xs:sequence><xs:element name="foo2" type="xs:string" dfdl:length="10" dfdl:lengthKind="delimited" dfdl:lengthUnits="bytes"><xs:annotation><xs:appinfo source="http://www.ogf.org/dfdl/"><dfdl:discriminator test="{./length eq 4}"/></xs:appinfo></xs:annotation></xs:element></xs:sequence> </xs:group> </xs:schema> ``` Placing my cursor on ln 34 col 30 and pressing CTRL+SPACE doesn't result in intellisense hanging. Placing cursor on ln 21, col 52 suggests XML elements after the multi-line <element> element -- 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]
