Skip to content

Commit eed5d59

Browse files
llogickTechatrix
authored andcommitted
Limit generating top level imports folding ranges to .zig files only
1 parent 26446bf commit eed5d59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/folding_range.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ pub fn generateFoldingRanges(allocator: std.mem.Allocator, tree: *const Ast, enc
182182
// TODO add folding range normal comments
183183

184184
// Folding range for top level imports
185-
{
185+
if (tree.mode == .zig) {
186186
var start_import: ?Ast.Node.Index = null;
187187
var end_import: ?Ast.Node.Index = null;
188188

0 commit comments

Comments
 (0)