File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1274,21 +1274,21 @@ def serve_folding_range(self, request: dict):
1274
1274
return None
1275
1275
# Construct folding_rage list
1276
1276
folding_ranges = []
1277
- # First treating scope objects...
1277
+ # First treat scope objects ...
1278
1278
for scope in file_obj .ast .scope_list :
1279
1279
n_mlines = len (scope .mlines )
1280
- # ...with intermediate folding lines (if, select) ...
1280
+ # ...with intermediate folding lines (if, select case) ...
1281
1281
if n_mlines > 0 :
1282
1282
self .add_range (folding_ranges , scope .sline - 1 , scope .mlines [0 ] - 2 )
1283
1283
for i in range (1 , n_mlines ):
1284
1284
self .add_range (
1285
1285
folding_ranges , scope .mlines [i - 1 ] - 1 , scope .mlines [i ] - 2
1286
1286
)
1287
1287
self .add_range (folding_ranges , scope .mlines [- 1 ] - 1 , scope .eline - 2 )
1288
- # ...and without
1288
+ # ...and without, ...
1289
1289
else :
1290
1290
self .add_range (folding_ranges , scope .sline - 1 , scope .eline - 2 )
1291
- # Then treat comment blocks
1291
+ # ...and finally treat comment blocks
1292
1292
folds = len (folding_start )
1293
1293
for i in range (0 , folds ):
1294
1294
self .add_range (folding_ranges , folding_start [i ] - 1 , folding_end [i ] - 1 )
You can’t perform that action at this time.
0 commit comments