@@ -190,13 +190,13 @@ function provideClassNameCompletions(
190
190
let doc = state . editor . documents . get ( params . textDocument . uri )
191
191
192
192
if (
193
- isHtmlContext ( doc , params . position ) ||
194
- isJsContext ( doc , params . position )
193
+ isHtmlContext ( state , doc , params . position ) ||
194
+ isJsContext ( state , doc , params . position )
195
195
) {
196
196
return provideClassAttributeCompletions ( state , params )
197
197
}
198
198
199
- if ( isCssContext ( doc , params . position ) ) {
199
+ if ( isCssContext ( state , doc , params . position ) ) {
200
200
return provideAtApplyCompletions ( state , params )
201
201
}
202
202
@@ -209,7 +209,7 @@ function provideCssHelperCompletions(
209
209
) : CompletionList {
210
210
let doc = state . editor . documents . get ( textDocument . uri )
211
211
212
- if ( ! isCssContext ( doc , position ) ) {
212
+ if ( ! isCssContext ( state , doc , position ) ) {
213
213
return null
214
214
}
215
215
@@ -317,7 +317,7 @@ function provideTailwindDirectiveCompletions(
317
317
) : CompletionList {
318
318
let doc = state . editor . documents . get ( textDocument . uri )
319
319
320
- if ( ! isCssContext ( doc , position ) ) {
320
+ if ( ! isCssContext ( state , doc , position ) ) {
321
321
return null
322
322
}
323
323
@@ -408,7 +408,7 @@ function provideVariantsDirectiveCompletions(
408
408
) : CompletionList {
409
409
let doc = state . editor . documents . get ( textDocument . uri )
410
410
411
- if ( ! isCssContext ( doc , position ) ) {
411
+ if ( ! isCssContext ( state , doc , position ) ) {
412
412
return null
413
413
}
414
414
@@ -456,7 +456,7 @@ function provideScreenDirectiveCompletions(
456
456
) : CompletionList {
457
457
let doc = state . editor . documents . get ( textDocument . uri )
458
458
459
- if ( ! isCssContext ( doc , position ) ) {
459
+ if ( ! isCssContext ( state , doc , position ) ) {
460
460
return null
461
461
}
462
462
@@ -504,7 +504,7 @@ function provideCssDirectiveCompletions(
504
504
) : CompletionList {
505
505
let doc = state . editor . documents . get ( textDocument . uri )
506
506
507
- if ( ! isCssContext ( doc , position ) ) {
507
+ if ( ! isCssContext ( state , doc , position ) ) {
508
508
return null
509
509
}
510
510
@@ -599,9 +599,9 @@ async function provideEmmetCompletions(
599
599
600
600
let doc = state . editor . documents . get ( textDocument . uri )
601
601
602
- const syntax = isHtmlContext ( doc , position )
602
+ const syntax = isHtmlContext ( state , doc , position )
603
603
? 'html'
604
- : isJsContext ( doc , position )
604
+ : isJsContext ( state , doc , position )
605
605
? 'jsx'
606
606
: null
607
607
0 commit comments