Multiline comment and suggestion (#66)

This MR adds the ability to leave multi-line comments and suggested changes to an MR. The features are only supported for `diffview` because we plan to deprecate `delta` as a reviewer soon.
This commit is contained in:
johnybx
2023-10-31 02:58:53 +01:00
committed by GitHub
parent f853c2f940
commit 3a67424fec
11 changed files with 689 additions and 161 deletions

View File

@@ -10,7 +10,7 @@ local M = {
local reviewer_map = {
delta = delta,
diffview = diffview
diffview = diffview,
}
M.init = function()
@@ -31,9 +31,12 @@ M.init = function()
-- • {interval} The old_line of the change
M.get_location = reviewer.get_location
-- Returns the current location (based on cursor) from the reviewer window in format:
-- file_name, {new_line, old_line}, error
-- Parameters:
-- • {range} LineRange if function was triggered from visual selection
-- Returns the current location (based on cursor) from the reviewer window as ReviewerInfo class
M.get_lines = reviewer.get_lines
-- Returns the content of the file in the current location in the reviewer window
end
return M