Skip to content

Commit

Permalink
fix: add missing parameter to make_given_range_params (#1508)
Browse files Browse the repository at this point in the history
  • Loading branch information
iovis authored Dec 10, 2024
1 parent aa1a9ef commit 336ff52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lspsaga/codeaction/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function act:send_request(main_buf, options, callback)
assert(type(options.range) == 'table', 'code_action range must be a table')
local start = assert(options.range.start, 'range must have a `start` property')
local end_ = assert(options.range['end'], 'range must have a `end` property')
params = lsp.util.make_given_range_params(start, end_, offset_encoding)
params = lsp.util.make_given_range_params(start, end_, nil, offset_encoding)
elseif mode == 'v' or mode == 'V' then
local range = range_from_selection(0, mode)
params = lsp.util.make_given_range_params(range.start, range['end'])
Expand Down

0 comments on commit 336ff52

Please sign in to comment.