Skip to content

Commit

Permalink
Merge pull request #47 from lukas-reineke/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-reineke authored May 21, 2022
2 parents 210c4c5 + f3ba4e9 commit a5a54ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion doc/format.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


Author: Lukas Reineke <lukas@reineke.jp>
Version: 2.4.0
Version: 2.4.1

==============================================================================
CONTENTS *lsp-format*
Expand Down Expand Up @@ -135,6 +135,9 @@ force *lsp-format-force*
==============================================================================
5. CHANGELOG *lsp-format-changelog*

2.4.1
Fix `force` option when `sync` is true

2.4.0
Add `force` option

Expand Down
2 changes: 1 addition & 1 deletion lua/lsp-format/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ M._format = function(bufnr, client, format_options)
local timeout_ms = 2000
if format_options.sync then
local result = client.request_sync(method, params, timeout_ms, bufnr) or {}
M._handler(result.err, result.result, { client_id = client.id, bufnr = bufnr })
M._handler(result.err, result.result, { client_id = client.id, bufnr = bufnr, params = params })
else
client.request(method, params, M._handler, bufnr)
end
Expand Down

0 comments on commit a5a54ee

Please sign in to comment.