lib/ruby_lsp/requests/support/common.rb in ruby-lsp-0.17.17 vs lib/ruby_lsp/requests/support/common.rb in ruby-lsp-0.18.0
- old
+ new
@@ -97,10 +97,10 @@
path: entry.file_path,
fragment: "L#{loc.start_line},#{loc.start_column + 1}-#{loc.end_line},#{loc.end_column + 1}",
)
definitions << "[#{entry.file_name}](#{uri})"
- content << "\n\n#{entry.comments.join("\n")}" unless entry.comments.empty?
+ content << "\n\n#{entry.comments}" unless entry.comments.empty?
end
additional_entries_text = if max_entries && entries.length > max_entries
additional = entries.length - max_entries
" | #{additional} other#{additional > 1 ? "s" : ""}"