@@ -36,7 +36,7 @@ export class SelectorCompletionItemProvider implements CompletionItemProvider, D
3636 readonly findExtended = / (?: { { <| { { > | { % \s * e x t e n d s | @ e x t e n d s \s * \( ) \s * ( " | ' ) ? ( [ . / A - Z a - z _ 0 - 9 \\ \- ] + ) \1\s * (?: \) | % } | } } ) / i;
3737
3838 dispose ( ) {
39- this . watchers . forEach ( v => v . dispose ( ) ) ;
39+ this . watchers . forEach ( e => e . dispose ( ) ) ;
4040 this . watchers . clear ( ) ;
4141 this . cache . clear ( ) ;
4242 }
@@ -156,8 +156,8 @@ export class SelectorCompletionItemProvider implements CompletionItemProvider, D
156156 }
157157
158158 async findFixed ( uri : Uri , keys : Set < string > ) : Promise < void > {
159- for ( const sheet of this . getStyleSheets ( uri ) ) {
160- keys . add ( await this . fetch ( uri , sheet ) ) ;
159+ for ( const key of this . getStyleSheets ( uri ) ) {
160+ keys . add ( await this . fetch ( uri , key ) ) ;
161161 }
162162 }
163163
@@ -187,8 +187,7 @@ export class SelectorCompletionItemProvider implements CompletionItemProvider, D
187187
188188 const name = extended [ 2 ] ;
189189 const ext = extname ( name ) || extname ( uri . fsPath ) ;
190- const key = this . getPath ( uri , name , ext ) ;
191- const file = Uri . file ( key ) ;
190+ const file = Uri . file ( this . getPath ( uri , name , ext ) ) ;
192191
193192 try {
194193 const content = await workspace . fs . readFile ( file ) ;
@@ -217,8 +216,8 @@ export class SelectorCompletionItemProvider implements CompletionItemProvider, D
217216 const ids = new Map < string , CompletionItem > ( ) ;
218217 const classes = new Map < string , CompletionItem > ( ) ;
219218
220- keys . forEach ( key => this . cache . get ( key ) ?. forEach ( item =>
221- ( item . kind === CompletionItemKind . Value ? ids : classes ) . set ( item . label , item ) ) ) ;
219+ keys . forEach ( key => this . cache . get ( key ) ?. forEach ( e =>
220+ ( e . kind === CompletionItemKind . Value ? ids : classes ) . set ( e . label , e ) ) ) ;
222221
223222 return { ids, classes } ;
224223 }
0 commit comments