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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user