File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
packages/tailwindcss-language-service/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -426,7 +426,7 @@ async function provideClassAttributeCompletions(
426
426
context ?: CompletionContext
427
427
) : Promise < CompletionList > {
428
428
let str = document . getText ( {
429
- start : document . positionAt ( Math . max ( 0 , document . offsetAt ( position ) - 1000 ) ) ,
429
+ start : document . positionAt ( Math . max ( 0 , document . offsetAt ( position ) - 2000 ) ) ,
430
430
end : position ,
431
431
} )
432
432
Original file line number Diff line number Diff line change @@ -433,8 +433,8 @@ export async function findClassNameAtPosition(
433
433
let classNames = [ ]
434
434
const positionOffset = doc . offsetAt ( position )
435
435
const searchRange : Range = {
436
- start : doc . positionAt ( Math . max ( 0 , positionOffset - 1000 ) ) ,
437
- end : doc . positionAt ( positionOffset + 1000 ) ,
436
+ start : doc . positionAt ( Math . max ( 0 , positionOffset - 2000 ) ) ,
437
+ end : doc . positionAt ( positionOffset + 2000 ) ,
438
438
}
439
439
440
440
if ( isCssContext ( state , doc , position ) ) {
You can’t perform that action at this time.
0 commit comments