Skip to content

Commit 336ff52

Browse files
authored
fix: add missing parameter to make_given_range_params (#1508)
1 parent aa1a9ef commit 336ff52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/lspsaga/codeaction/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function act:send_request(main_buf, options, callback)
175175
assert(type(options.range) == 'table', 'code_action range must be a table')
176176
local start = assert(options.range.start, 'range must have a `start` property')
177177
local end_ = assert(options.range['end'], 'range must have a `end` property')
178-
params = lsp.util.make_given_range_params(start, end_, offset_encoding)
178+
params = lsp.util.make_given_range_params(start, end_, nil, offset_encoding)
179179
elseif mode == 'v' or mode == 'V' then
180180
local range = range_from_selection(0, mode)
181181
params = lsp.util.make_given_range_params(range.start, range['end'])

0 commit comments

Comments
 (0)