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(
426426 context ?: CompletionContext
427427) : Promise < CompletionList > {
428428 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 ) ) ,
430430 end : position ,
431431 } )
432432
Original file line number Diff line number Diff line change @@ -433,8 +433,8 @@ export async function findClassNameAtPosition(
433433 let classNames = [ ]
434434 const positionOffset = doc . offsetAt ( position )
435435 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 ) ,
438438 }
439439
440440 if ( isCssContext ( state , doc , position ) ) {
You can’t perform that action at this time.
0 commit comments