File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
packages/tailwindcss-language-service/src Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ async function provideClassAttributeCompletions(
334
334
context ?: CompletionContext
335
335
) : Promise < CompletionList > {
336
336
let str = document . getText ( {
337
- start : document . positionAt ( Math . max ( 0 , document . offsetAt ( position ) - 500 ) ) ,
337
+ start : document . positionAt ( Math . max ( 0 , document . offsetAt ( position ) - 1000 ) ) ,
338
338
end : position ,
339
339
} )
340
340
@@ -400,8 +400,8 @@ async function provideCustomClassNameCompletions(
400
400
const positionOffset = document . offsetAt ( position )
401
401
402
402
const searchRange : Range = {
403
- start : document . positionAt ( Math . max ( 0 , positionOffset - 500 ) ) ,
404
- end : document . positionAt ( positionOffset + 500 ) ,
403
+ start : document . positionAt ( Math . max ( 0 , positionOffset - 1000 ) ) ,
404
+ end : document . positionAt ( positionOffset + 1000 ) ,
405
405
}
406
406
407
407
let str = document . getText ( searchRange )
Original file line number Diff line number Diff line change @@ -379,8 +379,8 @@ export async function findClassNameAtPosition(
379
379
let classNames = [ ]
380
380
const positionOffset = doc . offsetAt ( position )
381
381
const searchRange : Range = {
382
- start : doc . positionAt ( Math . max ( 0 , positionOffset - 500 ) ) ,
383
- end : doc . positionAt ( positionOffset + 500 ) ,
382
+ start : doc . positionAt ( Math . max ( 0 , positionOffset - 1000 ) ) ,
383
+ end : doc . positionAt ( positionOffset + 1000 ) ,
384
384
}
385
385
386
386
if ( isCssContext ( state , doc , position ) ) {
You can’t perform that action at this time.
0 commit comments