Skip to content
Snippets Groups Projects

Fix incorrect Batched suggestions applications

2 unresolved threads
1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
@@ -20,10 +20,6 @@ def add_suggestion(new_suggestion)
suggestions << new_suggestion
end
def sorted_suggestions
@sorted_suggestions ||= suggestions.sort_by(&:from_line_index)
end
def line_conflict?
strong_memoize(:line_conflict) do
_line_conflict?
@@ -42,6 +38,10 @@ def file_path
attr_accessor :suggestions
def sorted_suggestions
@sorted_suggestions ||= suggestions.sort_by(&:from_line_index)
end
def blob
first_suggestion&.diff_file&.new_blob
end
Loading