Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Jun 7, 2023
1 parent 1d58efb commit 6e5c806
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/ruby_lsp/requests/folding_ranges.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def on_visit(node)
emit_partial_range
end

private
# private

sig { params(node: T.nilable(SyntaxTree::Node)).void }
def visit(node)
Expand Down Expand Up @@ -212,7 +212,9 @@ def partial_range_kind(node)
def emit_partial_range
return if @partial_range.nil?

@response << @partial_range.to_range if @partial_range.multiline?
if @partial_range.multiline?
@response << @partial_range.to_range
end
@partial_range = nil
end

Expand Down

0 comments on commit 6e5c806

Please sign in to comment.