File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -218,16 +218,12 @@ export function rowRangeForCodeFoldAtBufferRow(
218
218
editor : TextEditor ,
219
219
row : number
220
220
) {
221
- if ( parseFloat ( atom . getVersion ( ) ) < 1.22 ) {
222
- return editor . languageMode . rowRangeForCodeFoldAtBufferRow ( row ) ;
223
- } else {
224
- // $FlowFixMe
225
- const range = editor . tokenizedBuffer . getFoldableRangeContainingPoint (
226
- new Point ( row , Infinity ) ,
227
- editor . getTabLength ( )
228
- ) ;
229
- return range ? [ range . start . row , range . end . row ] : null ;
230
- }
221
+ // $FlowFixMe
222
+ const range = editor . tokenizedBuffer . getFoldableRangeContainingPoint (
223
+ new Point ( row , Infinity ) ,
224
+ editor . getTabLength ( )
225
+ ) ;
226
+ return range ? [ range . start . row , range . end . row ] : null ;
231
227
}
232
228
export const EmptyMessage = ( ) => {
233
229
return (
You can’t perform that action at this time.
0 commit comments