@@ -221,15 +221,16 @@ export class SelectorCompletionItemProvider implements CompletionItemProvider, D
221
221
const ids = new Map < string , CompletionItem > ( ) ;
222
222
const classes = new Map < string , CompletionItem > ( ) ;
223
223
224
- keys . forEach ( ( key ) =>
225
- this . cache . get ( key ) ?. forEach ( ( e ) => {
226
- const res = e . kind === CompletionItemKind . Value ? ids : classes ;
227
- // ---- custom fix ----
228
- e . label = e . label . replace ( '\\' , '' ) ;
229
- e . insertText = e . label . replace ( '\\' , '' ) ;
230
- // ---- /custom fix ----
231
- res . set ( e . label , e ) ;
232
- } )
224
+ keys . forEach (
225
+ ( key ) =>
226
+ this . cache . get ( key ) ?. forEach ( ( e ) => {
227
+ const res = e . kind === CompletionItemKind . Value ? ids : classes ;
228
+ // ---- custom fix ----
229
+ e . label = e . label . replace ( '\\' , '' ) ;
230
+ e . insertText = e . label . replace ( '\\' , '' ) ;
231
+ // ---- /custom fix ----
232
+ res . set ( e . label , e ) ;
233
+ } ) ,
233
234
) ;
234
235
235
236
return { ids, classes } ;
@@ -265,8 +266,8 @@ export class SelectorCompletionItemProvider implements CompletionItemProvider, D
265
266
Diagnostic . create (
266
267
Range . create ( start , end ) ,
267
268
`CSS selector '${ value [ 1 ] } ' not found.` ,
268
- DiagnosticSeverity . Information
269
- )
269
+ DiagnosticSeverity . Information ,
270
+ ) ,
270
271
) ;
271
272
}
272
273
}
@@ -283,7 +284,7 @@ export class SelectorCompletionItemProvider implements CompletionItemProvider, D
283
284
284
285
if ( canComplete ) {
285
286
this . findAll ( document ) . then ( ( context ) =>
286
- resolve ( [ ...( canComplete [ 1 ] === 'id' ? context . ids : context . classes ) . values ( ) ] )
287
+ resolve ( [ ...( canComplete [ 1 ] === 'id' ? context . ids : context . classes ) . values ( ) ] ) ,
287
288
) ;
288
289
} else {
289
290
resolve ( [ ] ) ;
0 commit comments