@@ -118,6 +118,13 @@ function Component() {
118118 <div className="test-inline-class"></div>
119119 <div id="test-inline-id"></div>
120120 <div id="test-inline-both-id" class="test-inline-both-class"></div>
121+ <Box id="test-custom-id">
122+ </Box>
123+ <Box className="test-custom-class">
124+ </Box>
125+ <Box className="test-custom-both-class" id="test-custom-both-id">
126+ </Box>
127+ <Box className="test-custom-inline-class"></Box>
121128 </div>
122129 );
123130}
@@ -143,6 +150,20 @@ export default Component;
143150 after : { contentText : '/#test-both-id.test-both-class' } ,
144151 } ,
145152 } ,
153+ {
154+ range : new vscode . Range ( new vscode . Position ( 15 , 6 ) , new vscode . Position ( 15 , 12 ) ) ,
155+ renderOptions : { after : { contentText : '/#test-custom-id' } } ,
156+ } ,
157+ {
158+ range : new vscode . Range ( new vscode . Position ( 17 , 6 ) , new vscode . Position ( 17 , 12 ) ) ,
159+ renderOptions : { after : { contentText : '/.test-custom-class' } } ,
160+ } ,
161+ {
162+ range : new vscode . Range ( new vscode . Position ( 19 , 6 ) , new vscode . Position ( 19 , 12 ) ) ,
163+ renderOptions : {
164+ after : { contentText : '/#test-custom-both-id.test-custom-both-class' } ,
165+ } ,
166+ } ,
146167 ] ) ;
147168 } ) ;
148169
@@ -164,6 +185,13 @@ const Component: React.VFC<{ test: string }> = ({ test }) => {
164185 <div className="test-inline-class"></div>
165186 <div id="test-inline-id"></div>
166187 <div id="test-inline-both-id" class="test-inline-both-class"></div>
188+ <Box id="test-custom-id">
189+ </Box>
190+ <Box className="test-custom-class">
191+ </Box>
192+ <Box className="test-custom-both-class" id="test-custom-both-id">
193+ </Box>
194+ <Box className="test-custom-inline-class"></Box>
167195 </div>
168196 );
169197}
@@ -189,6 +217,20 @@ export default Component;
189217 after : { contentText : '/#test-both-id.test-both-class' } ,
190218 } ,
191219 } ,
220+ {
221+ range : new vscode . Range ( new vscode . Position ( 16 , 6 ) , new vscode . Position ( 16 , 12 ) ) ,
222+ renderOptions : { after : { contentText : '/#test-custom-id' } } ,
223+ } ,
224+ {
225+ range : new vscode . Range ( new vscode . Position ( 18 , 6 ) , new vscode . Position ( 18 , 12 ) ) ,
226+ renderOptions : { after : { contentText : '/.test-custom-class' } } ,
227+ } ,
228+ {
229+ range : new vscode . Range ( new vscode . Position ( 20 , 6 ) , new vscode . Position ( 20 , 12 ) ) ,
230+ renderOptions : {
231+ after : { contentText : '/#test-custom-both-id.test-custom-both-class' } ,
232+ } ,
233+ } ,
192234 ] ) ;
193235 } ) ;
194236} ) ;
0 commit comments