File tree 2 files changed +3
-3
lines changed
packages/tailwindcss-language-service/src
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -499,8 +499,8 @@ async function provideCustomClassNameCompletions(
499
499
const positionOffset = document . offsetAt ( position )
500
500
501
501
const searchRange : Range = {
502
- start : document . positionAt ( Math . max ( 0 , positionOffset - 1000 ) ) ,
503
- end : document . positionAt ( positionOffset + 1000 ) ,
502
+ start : document . positionAt ( 0 ) ,
503
+ end : document . positionAt ( positionOffset + 2000 ) ,
504
504
}
505
505
506
506
let str = document . getText ( searchRange )
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ async function findCustomClassLists(
135
135
136
136
if ( ! Array . isArray ( regexes ) || regexes . length === 0 ) return [ ]
137
137
138
- const text = doc . getText ( range )
138
+ const text = doc . getText ( range ? { ... range , start : doc . positionAt ( 0 ) } : undefined )
139
139
const result : DocumentClassList [ ] = [ ]
140
140
141
141
for ( let i = 0 ; i < regexes . length ; i ++ ) {
You can’t perform that action at this time.
0 commit comments