File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
packages/language-service/lib/utils Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -32,14 +32,11 @@ export function findOverlapCodeRange(
3232 const overlap = getOverlapRange ( start , end , mappingStart , mappingEnd ) ;
3333 if ( overlap ) {
3434 const curMappedStart = ( overlap . start - mappingStart ) + mapping . generatedOffsets [ 0 ] ;
35-
36- mappedStart = mappedStart === undefined ? curMappedStart : Math . min ( mappedStart , curMappedStart ) ;
37-
3835 const lastGeneratedLength = ( mapping . generatedLengths ?? mapping . lengths ) [ mapping . generatedOffsets . length - 1 ] ;
3936 const curMappedEndOffset = Math . min ( overlap . end - mapping . sourceOffsets [ mapping . sourceOffsets . length - 1 ] , lastGeneratedLength ) ;
40-
4137 const curMappedEnd = mapping . generatedOffsets [ mapping . generatedOffsets . length - 1 ] + curMappedEndOffset ;
4238
39+ mappedStart = mappedStart === undefined ? curMappedStart : Math . min ( mappedStart , curMappedStart ) ;
4340 mappedEnd = mappedEnd === undefined ? curMappedEnd : Math . max ( mappedEnd , curMappedEnd ) ;
4441 }
4542 }
You can’t perform that action at this time.
0 commit comments