@@ -49,17 +49,17 @@ export const elementCompletion = (definedVariables, nsPrefix) => {
4949 } ,
5050 {
5151 item : 'dfdl:assert' ,
52- snippetString : '<' + nsPrefix + ' assert $0',
52+ snippetString : '<dfdl: assert $0' ,
5353 markdownString : 'Used to assert truths about a DFDL model' ,
5454 } ,
5555 {
5656 item : 'dfdl:discriminator' ,
57- snippetString : '<' + nsPrefix + ' discriminator $0',
57+ snippetString : '<dfdl: discriminator $0' ,
5858 markdownString : 'Used during parsing to resolve points or uncertainity, remove ambiguity during speculative parsing, improve diagnostic behavior' ,
5959 } ,
6060 {
6161 item : 'dfdl:format' ,
62- snippetString : '<' + nsPrefix + ' format $0',
62+ snippetString : '<dfdl: format $0' ,
6363 markdownString : 'Defines the physical data format properties for multiple DFDL schema constructs' ,
6464 } ,
6565 {
@@ -102,22 +102,22 @@ export const elementCompletion = (definedVariables, nsPrefix) => {
102102 } ,
103103 {
104104 item : 'dfdl:newVariableInstance' ,
105- snippetString : '<' + nsPrefix + ' newVariableInstance ref="$1"$0',
105+ snippetString : '<dfdl: newVariableInstance ref="$1"$0' ,
106106 markdownString : 'Defines the name, type, and optional default value for the variable'
107107 } ,
108108 {
109109 item : 'dfdl:defineVariable' ,
110- snippetString : '<' + nsPrefix + ' defineVariable name="$1"$0',
110+ snippetString : '<dfdl: defineVariable name="$1"$0' ,
111111 markdownString : 'Defines the name, type, and optionally default value for the variable.' ,
112112 } ,
113113 {
114114 item : 'dfdl:setVariable' ,
115- snippetString : '<' + nsPrefix + ' setVariable ref="${1|' + definedVariables + '"|}, value="$2"$0' ,
115+ snippetString : '<dfdl: setVariable ref="${1|' + definedVariables + '"|}, value="$2"$0' ,
116116 markdownString : 'Sets the value of a variable whose declaration is in scope' ,
117117 } ,
118118 {
119119 item : 'dfdl:defineFormat' ,
120- snippetString : '<' + nsPrefix + ' defineFormat name="$1">\n\t$2\n</dfdl:defineFormat>$0',
120+ snippetString : '<dfdl: defineFormat name="$1">\n\t$2\n</dfdl:defineFormat>$0' ,
121121 markdownString : 'Defines a named reusable format definition' ,
122122 } ,
123123 {
@@ -127,37 +127,37 @@ export const elementCompletion = (definedVariables, nsPrefix) => {
127127 } ,
128128 {
129129 item : 'dfdl:escapeScheme' ,
130- snippetString : '<' + nsPrefix + ' escapeScheme $0',
130+ snippetString : '<dfdl: escapeScheme $0' ,
131131 markdownString : 'Allows a common set of properties to be defined that can be reused' ,
132132 } ,
133133 {
134134 item : 'dfdl:simpleType' ,
135- snippetString : '<' + nsPrefix + ' simpleType $1/>$0',
135+ snippetString : '<dfdl: simpleType $1/>$0' ,
136136 markdownString : 'Defines the physical data format properties of an xs:simpleType' ,
137137 } ,
138138 {
139139 item : 'dfdl:element' ,
140- snippetString : '<' + nsPrefix + ' element $1/>$0',
140+ snippetString : '<dfdl: element $1/>$0' ,
141141 markdownString : 'Defines the physical data format properties of an xs:element' ,
142142 } ,
143143 {
144144 item : 'dfdl:sequence' ,
145- snippetString : '<' + nsPrefix + ' sequence $1/>$0',
145+ snippetString : '<dfdl: sequence $1/>$0' ,
146146 markdownString : 'Defines the physical data format properties of an xs:sequence group' ,
147147 } ,
148148 {
149149 item : 'dfdl:group' ,
150- snippetString : '<' + nsPrefix + ' group $1/>$0',
150+ snippetString : '<dfdl: group $1/>$0' ,
151151 markdownString : 'Defines the physical data format properties of an xs:group reference' ,
152152 } ,
153153 {
154154 item : 'dfdl:choice' ,
155- snippetString : '<' + nsPrefix + ' choice $1/>$0',
155+ snippetString : '<dfdl: choice $1/>$0' ,
156156 markdownString : 'Defines the physical data format properties of an xs:choice group' ,
157157 } ,
158158 {
159159 item : 'dfdl:property' ,
160- snippetString : '<' + nsPrefix + ' property name="$1">\n\t$2\n</dfdl:property>$0',
160+ snippetString : '<dfdl: property name="$1">\n\t$2\n</dfdl:property>$0' ,
161161 markdownString : 'Used in the syntax of format annotations' ,
162162 } ,
163163 {
0 commit comments