Skip to content

Commit

Permalink
fix: make sure make_range_params works on nightly (#704)
Browse files Browse the repository at this point in the history
This should also be safe for the current stable release as it checks to
see if this exists before setting it.

closes #703
  • Loading branch information
ckipp01 authored Dec 16, 2024
1 parent 6d4b3c3 commit abf4a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/metals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ M.organize_imports = function()
end
local metals_client = lsp_clients[1]

local params = lsp.util.make_range_params()
local params = lsp.util.make_range_params(nil, "utf-8")
params.context = { diagnostics = {}, only = { "source.organizeImports" } }

local response = metals_client.request_sync("textDocument/codeAction", params, 1000, 0)
Expand Down

0 comments on commit abf4a2b

Please sign in to comment.